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.
Visualizing and plotting scalar data
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...