March 2018
Intermediate to advanced
1396 pages
42h 14m
English
In order to debug a C/C++ node with the gdb debugger, all we need to know is the location of the node executable. With the ROS Kinetic and catkin packages, the node executable is placed inside the devel/lib/<package> folder within the workspace. For example, in order to run the example1 node from the chapter3_tutorials package in gdb, we have to proceed as follows, starting from the workspace folder (/home/<user>/book_ws):
$ cd devel/lib/chapter3_tutorials
If you have run catkin_make install, you can also navigate to the install/lib/chapter3_tutorials directory using the following command:
$ cd install/lib/chapter3_tutorials
Now we can run the node executable inside gdb with the following command: ...