O'Reilly logo

Robot Operating System Cookbook by Kumar Bipin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it…

We will start our discussion by running the program4 and program5 nodes using the following command:

$ roslaunch chapter4_tutorials program4_5.launch
  1. 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.

  1.  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
  1. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required