ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your catch is obviously not working.
When you initialize a TransformListener it needs time to build up it's cache of the transform tree. It's a race condition between your transform tree fully arriving and your callback being triggered.
If the catch was working I would expect it to work after a few cycles once the buffer has been populated.
I highly recommend you read through the tf tutorials: http://wiki.ros.org/tf/Tutorials