Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Graphing time series of sensor data with rqt_plot

This is a plugin to visualize two-dimensional data. As we want to see two-dimensional data, let's briefly switch to the distance sensor case study so that we can view the measured distance over time. The process is straightforward: launch the robot, list the topics, and then launch the plugin:

T1 $ roslaunch mygopigo easyDistance.launchT2 $ rostopic list | grep distance_sensorT3 $ rqt_plot

In the upper-left box, write the name of the topic you want to visualize, that is, /distance_sensor/distance as per T2. A window will pop up showing the distance to the obstacle over time:

The green line, ...

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

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content