ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Message Format or Description

asked 2014-08-07 14:13:21 -0500

Naz gravatar image

Hello everyone,

Is there a way we can know the description of the data that is logged for each topic ?

For example the data logged to the topic /navsat/fix contains altitude ,longitude and latitude and also many other fields. Is there a way we can understand what these other fields are ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-08-07 14:25:29 -0500

ahubers gravatar image

Do you mean like knowing the rest of the fields of that message type? that can be done through rosmsg show <message>, as described here here. If you wish to know the message type of the topic, the you can run rostopic type <topic>, or in your case, rostopic type /navsat/fix.

The source .msg file will also often contain documentation describing each field.

edit flag offensive delete link more


Thank you , where exactly is the source .msg file for each datatype , I need a detailed description of different datatypes.

Naz gravatar image Naz  ( 2014-08-07 14:46:28 -0500 )edit

Each message type is specified by its package name and then the message name, e.g, geometry_msgs/Pose refers to Pose.msg in the geometry_msgs package. Hence navigating to the package first and looking for the .msg file should be fruitful. You can learn more here

ahubers gravatar image ahubers  ( 2014-08-07 14:56:35 -0500 )edit

Question Tools

1 follower


Asked: 2014-08-07 14:13:21 -0500

Seen: 322 times

Last updated: Aug 07 '14