Skip to Content
ROS Programming: Building Powerful Robots
book

ROS Programming: Building Powerful Robots

by Anil Mahtani, Luis Sanchez, Enrique Fernandez, Aaron Martinez, Lentin Joseph
March 2018
Intermediate to advanced content levelIntermediate to advanced
1396 pages
42h 14m
English
Packt Publishing
Content preview from ROS Programming: Building Powerful Robots

Setting the debug message level

ROS supports the following logging levels (in increasing order of relevance):

  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL

These levels are part of the function used to output messages, so it's something you can easily experiment with, simply by using the syntax below:

ROS_<LEVEL>[_<OTHER>] 

Each message is printed with a particular color. The colors are as follows:

DEBUG in green 
INFO in white 
WARN in yellow 
ERROR in red 
FATAL in purple 

Each message level is meant to be used for a different purpose. Here, we suggest the uses for each of the levels:

  • DEBUG: Use them only when debugging; this information should not be displayed in a deployed application, as it's only for testing purposes
  • INFO: These should be standard messages ...
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

Programming Robots with ROS

Programming Robots with ROS

Morgan Quigley, Brian Gerkey, William D. Smart
Machine Learning Design Patterns

Machine Learning Design Patterns

Valliappa Lakshmanan, Sara Robinson, Michael Munn

Publisher Resources

ISBN: 9781788627436Supplemental Content