Ask Your Question

[ROS2] Finding the executable and source code for a node

asked 2019-06-03 04:05:43 -0500

wan_da gravatar image

updated 2019-06-03 20:57:17 -0500

I am trying to write an AppArmor profile for a ROS2 node, specifically, /cartographer_node, which was included in one of the packages for TurtleBot3 ROS2 (can be installed in this tutorial here).

However, I am having trouble finding the specific file that the node is executed from. In fact, I am also having trouble finding the source code. Is it possible for someone with experience in playing around with TurtleBot3 ROS2 to help me locate the file? Thank you so much.

If not, would someone help me find the executable for any of the demo nodes? I could perhaps work my way from there.

Edit: I found the symbolic link to the executable in ~/<TURTLEBOT3 WORKSPACE>/install/cartographer_ros/lib/cartographer_ros, and from there I found the actual executable in the build folder. However I still couldn't find the source code.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-03 04:37:47 -0500

gvdhoorn gravatar image

If you know which package the binary is hosted in and the package has been released through the ROS buildfarm, you can use to search for it.

See for the page showing the Crystal version.

On that page there is a link to the source repository called Checkout URI in the Repository Summary section of the page (right under the Package Summary section on the left of the page).

For cartographer_ros that shows ros2/cartographer_ros.git for me.

Following that link -- and changing to the crystal branch -- leads me to the source code for all nodes in that package here.

edit flag offensive delete link more


Oh, so it is that folder. Thank you very much.

wan_da gravatar image wan_da  ( 2019-06-03 20:56:32 -0500 )edit

It is which folder?

gvdhoorn gravatar image gvdhoorn  ( 2019-06-04 02:19:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-06-03 04:05:43 -0500

Seen: 250 times

Last updated: Jun 03 '19