Robotics StackExchange | Archived questions

extracting project metadata

Does ROS2 provide a tool or an API for parsing project files in order to extract metadata such as: - project name - package names - node names - launch file names

shouldn't be too difficult to writes such a tool in python for python projects, but in order to support multiple project languages, this becomes tedious real fast...

thanks.

Asked by shalevm on 2023-05-15 10:03:41 UTC

Comments

For anything more than simple parsing of package.xml, you could perhaps take a look at git-afsantos/haros. It's not perfect, but should be able to extract things like nodes, launch files, etc.

ROS 2 support is 'new', so not sure how mature it is.

Asked by gvdhoorn on 2023-05-15 13:26:35 UTC

thanks @gvdhoorn!

Asked by shalevm on 2023-05-15 22:48:12 UTC

Answers