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 had this issue, calling waitForTransform() before lookupTransform() worked for me. The turtle takes some time to spawn, so the lookupTransform() doesn't see the turtle at the beginning. The function waitforTransform() waits for the first transform to appear.

You can find it here (just above 1.2 The Code Explained) : http://wiki.ros.org/tf/Tutorials/Writing%20a%20tf%20listener%20%28C%2B%2B%29