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

The rosmsg command

rosmsg provides information about the types of message used by topics during runtime. To give you a practical example, we select the distance_sensor/distance topic and get the following information about it:

$ rostopic info distance_sensor/distance

This command tells us that the topic has a message type of sensor_msgs/Range. Then, rosmsg informs us of the message structure:

$ rosmsg info sensor_msgs/Range

The output of this command is what we showed and explained in the Setting up the msg_range object subsection of the Case study 1 – writing a ROS package – distance sensor section. In the next chapter, we will provide extended explanations about the new message types we will be using in the GoPiGo3 ROS package.

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