ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Use slash /
for name resolution, i.e. to go deeper into the objects and structures.
In your case it should be something like:
$ rostopic echo /odom/pose/pose/position
It should return x
, y
and z
all of type float64
.
That is because Odometry message has field pose
which is of type geometry_msgs/PoseWithCovariance
, which has another pose
of type geometry_msgs/Pose
and then there are two fields -- position
and orientation
.