ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
void leftEndpointCallback(const baxter_core_msgs::EndpointStateConstPtr& _msg) { // The pose is within the _msg object ROS_INFO_STREAM("pose: " << _msg->pose); ROS_INFO_STREAM("pose.position.x: " << _msg->pose.pose.position.x); ROS_INFO_STREAM("pose.position.y: " << _msg->pose.pose.position.y); ROS_INFO_STREAM("pose.position.z: " << _msg->pose.pose.position.z); }
YOU HAVE TO ADD pose.pose.position.x;
2 | No.2 Revision |
void leftEndpointCallback(const baxter_core_msgs::EndpointStateConstPtr& _msg) { // The pose is within the _msg object ROS_INFO_STREAM("pose: " << _msg->pose); ROS_INFO_STREAM("pose.position.x: " << _msg->pose.pose.position.x); ROS_INFO_STREAM("pose.position.y: " << _msg->pose.pose.position.y); ROS_INFO_STREAM("pose.position.z: " << _msg->pose.pose.position.z); }
YOU HAVE TO ADD pose.pose.position.x;
3 | No.3 Revision |
Yout have to add pose.pose.position.x;
void leftEndpointCallback(const baxter_core_msgs::EndpointStateConstPtr& _msg)
{
// The pose is within the _msg object
ROS_INFO_STREAM("pose: " << _msg->pose);
ROS_INFO_STREAM("pose.position.x: " << _msg->pose.pose.position.x);
ROS_INFO_STREAM("pose.position.y: " << _msg->pose.pose.position.y);
ROS_INFO_STREAM("pose.position.z: " << _msg->pose.pose.position.z);
}}
YOU HAVE TO ADD pose.pose.position.x;