Book Image

Robot Operating System Cookbook

By : Kumar Bipin
Book Image

Robot Operating System Cookbook

By: Kumar Bipin

Overview of this book

This book will leverage the power of ROS with an introduction to its core and advanced concepts through exciting recipes. You will get acquainted with the use of different synchronous and asynchronous communication methods, including messages, services, and actions. You will learn how to use the various debugging and visualization tools used in development and how to interface sensors and actuators with the ROS framework. Firstly, you will get to grips with ROS simulation frameworks, such as Gazebo and RotorS for modeling and simulating any physical robot and virtual environment. You will also cover mobile robotics, micro-aerial vehicles, and robotic arms, which are the leading branches of robotic applications. Robot Operating System Cookbook will also guide you in the development of an autonomous navigation framework for both mobile robots and micro-aerial vehicles. Finally, you will explore ROS-Industrial, an open source project that extends the advanced capabilities of ROS software to manufacturing industries.
Table of Contents (12 chapters)

Logging and visualizing ROS messages

In software development, it is always good practice to include messages that indicate what the program is doing with clarity without compromising the efficiency of the software. The ROS framework provides a set of APIs to enable these features, which is built on top of log4cxx, a log4j logger library.

In short, we have several levels of messages, and all of them have a negligible footprint on performance and can be masked by the current verbosity level during compile time or even in runtime. Moreover, they are fully integrated with other ROS tools for visualization.

Getting ready

ROS has a great number of functions and macros to display log messages which support various verbosity levels...