Plotting scalar data
Scalar data can easily be plotted with some generic tools already available in ROS. Scalar data cannot be plotted, rather each scalar field has to be plotted separately. This is the reason we talk about scalar data because most nonscalar structures are better represented with ad hoc visualizers, some of which we will see later; for instance, images, poses, and orientation/attitude.
Creating a time series plot with rxplot
In ROS, scalar data can be plotted as a time series over the time provided by the timestamps of the messages. Then, we will plot our scalar data in the y axis. The tool to do so is
rxplot. It has a powerful argument syntax that allows us to specify several fields of a structured message (in a concise manner ...