ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Debugging ROS nodes in c++

asked 2017-10-26 05:34:21 -0500

Spartan_007 gravatar image

updated 2017-10-28 00:42:34 -0500

Hi, I have been using ROS for a while. Whenever, I pull some packages from github for understanding the work or to follow it , I found that a lot of the header files are linked to popular and useful packages (e.g. tf, tf2_ros etc. ). Due to my sole understanding, I find the need to edit some of these files which are not actually there in the package that I cloned from github. But I am not sure how to do it. It will be extremely helpful to me and will save lot of my time if someone could help me in understanding how to debug and play with any package in such a situation and make a good use it as required for my application.

edit retag flag offensive close merge delete


Can I use something like this for modifying required packages?

Spartan_007 gravatar image Spartan_007  ( 2017-10-28 01:38:36 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-28 12:47:41 -0500

psammut gravatar image

What you can do is download the source of the packages in question, put them in your catkin workspace and compile them, just like you compile source for your packages by running catkin_make. Then source the of your workspace and your environment should use the package that you compiled, not the installed one. You can verify this by typing roscd package_name and it should take you to the directory in question.

I do this when I want to slightly modify packages that other stuff uses. You can also uninstall the binaries to make sure they don't conflict with your source-built one.

edit flag offensive delete link more


ok, thanks.

Spartan_007 gravatar image Spartan_007  ( 2017-10-28 19:18:37 -0500 )edit

Question Tools

1 follower


Asked: 2017-10-26 05:34:21 -0500

Seen: 836 times

Last updated: Oct 28 '17