ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Position messages are PoseStamped kind of messages. You can subscribe to the /uav1/ground_truth_to_tf/pose topic to get quadrotor's position. Then you can display its axes values using a callback function.
void callback_u1(const geometry_msgs::PoseStamped& ps) { ROS_INFO_STREAM(ps.pose.position.x); ROS_INFO_STREAM(ps.pose.position.y); ROS_INFO_STREAM(ps.pose.position.z); }