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

Revision history [back]

You have an array of transforms in that message. So you could do something like msg->transforms[0].transform.translation.x. Or you could put that in a for loop and print out each transform in the array of transforms. Since they are doubles (not float) you also probably want to change %f to %lf.