Can't get transform from /base_link to /odom although it's definitely there.
Hi folks,
this is a very weird issue. I'm trying to post a goal to move_base but need a transform to get the right movement vector for my robot. That transform is definitely available. I can do this
$ rosrun tf tf_echo /base_link /odom
At time 1379711306.536
- Translation: [-0.281, -1.081, 0.000]
- Rotation: in Quaternion [0.000, 0.000, -0.004, 1.000]
in RPY [0.000, 0.000, -0.008]
however when I try to get that transform from within a ROS node it's not available (timeout after a duration of 3 seconds). Here's the source code of my goal sending example node:
And three seconds after rosrun'ing the node I get the error message "Transform /base_link /odom not found".
Here's the corresponding tf graph:
EDIT: image removed; faaaaar too huge!
Can somebody help me figure out how and why this can happen?
EDIT 2: It is a time issue. After replacing all references to ros::Time::now() with ros::Time(0) it works. Does it have to be like that? Or is it just fighting symptomes of a different cause?
Thanks a lot!
Cheers, Hendrik