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

I guess this is a timing issue, since you set up the tf listener and the immediately look up the transform, no tf data will have been received yet.

Try to use waitForTransform before the first lookup.

Also, you are not spinning, but IIRC the transform listener has its own threaded message queue for the tf topic, so that should be ok in this case.