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

Visualizing scan data from the remote laptop

The final step is to get the RViz laser scan data on the desktop of the laptop. This is what we will accomplish in this section.

In the following paragraphs, the letter r in the code snippets stands for the Terminals in the robot, while T refers to the Terminals in the laptop.

Follow these steps to build the ROS environment:

  1. First, launch the processes in the robot using the unified launch file that we built in the previous section:
r1 $ roslaunch ydlidar gopigo3_ydlidar.launch
  1. From the laptop, find the content of the last message that was published in the /scan topic:
T1 $ rostopic echo /scan -n1    header:     seq: 2118    stamp:       secs: 1570384635      nsecs: 691668000      frame_id: "laser_frame" angle_min: ...
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