Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content