We will start our discussion by running the program4 and program5 nodes using the following command:
$ roslaunch chapter4_tutorials program4_5.launch
- To plot a message using rqt_plot
We must have information about the type and structure of the messages; we can use rosmg show <msg type> to get this.
- Run the following command to get the plot for the message in the /temperature topic, which is of the Int32 type of scalar data:
$ rosrun rqt_plot rqt_plot /temperature/data
- Select the message topic by the menu from the rqt_plot GUI after starting rqt_plot:
$ rosrun rqt_plot rqt_plot
While the node is running and when rqt_plot is started, we will see a plot that changes over time with the incoming messages from the /temperature ...