Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

Getting ready

First, we are going to create each example program in the ROS package in our workspace individually. Alternatively, we could copy the chapter4_tutorials package from GitHub at https://github.com/kbipin/Robot-Operating-System-Cookbook.

We can debug a ROS C/C++ node with the gdb debugger by using the location of the node executable and running the node executable inside gdb with the following command:

$ cd devel/lib/chapter4_tutorials
$ gdb program1
roscore must be running before we start our node inside gdb since it will need the master server to be running. We have to use the catkin_make -DCMAKE_BUILD_TYPE=Debug command to build the ROS packages with the debug symbol.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content