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

Revision history [back]

It is true that a more specific error message would help, although I can see the problem from looking at your source code.

You're creating the transform listener object immediately before querying it for a transform, this will never work. The transform listener object needs time to collect a buffer full of transform messages before it will be able to respond to requests. It is recommended that a single tf.TransformListener is created for each node when they start up, and that object is used for all transform requests. A structure like this can be seen in the python tutorial.

Hope this helps.