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)

Visualizing and plotting scalar data

ROS already has generic tools to plot scalar data. These tools can also be used for plotting non-scalar data, but each scalar field needs to be plotted separately in order to show less information. Alternately, ROS has powerful visualization tools for non-scalar or vector data, which we will discuss in the next section.

Getting ready

In this section, we will learn that scalar data can be plotted as a time series, where time is provided by the timestamps of the messages. We can use the y axis to plot scalar data versus timestamps along the x axis. ROS has a GUI tool called rqt_plot, which will do this for us.

To see rqt_plot in action, we will use the program4 node which publishes scalar...