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

Revision history [back]

click to hide/show revision 1
initial version

Hi Mutu,

A geometry_msgs::Pose actually contains a geometry_msgs::Point as you can read in the documentation.

to get the pose just type:

geometry_msgs::Point pt = waypoints[i].position;

for the index i that you want. Do note that you lose the orientation information that is also contained in the pose.