Using rqt_console and rqt_logger_level to modify the logging level on the fly

ROS provides a series of tools to manage logging messages. In ROS Kinetic, we have two separate GUIs: rqt_logger_level to set the logging level of the nodes or named loggers and rqt_console to visualize, filter, and analyze the logging messages.

In order to test this, we are going to use example3. Run roscore and rqt_console to see the logging messages:

    $ rosrun rqt_console rqt_console
  

The following window will open:

Now, run the node:

    $ rosrun chapter3_tutorials example3  

You will start seeing the logging messages, as the following screenshot shows. Note that ...

Get ROS Programming: Building Powerful Robots now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.