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

ROS has a great number of functions and macros to display log messages which support various verbosity levels, conditions, STL streams, throttling, and other special features. We are going to learn about these in this section.

We will start with a simple information message that prints the messages onto the console:

ROS_INFO( ""ROS INFO message."" );

As a result of running a program with the preceding message, the following outputs are shown on the screen:

[INFO] [1456880231.839068150]: ROS INFO message.

As we can see, all of the messages are printed with their verbosity and current timestamp followed by the actual message, which is both within square brackets. Moreover, this function also allows parameter arguments, just like ...

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