Closed lsouchet closed 9 years ago
As far as I can see the 2D Nav Goal Tool is perfectly fine.
I would recommend to use a waitForTransform statement before calling lookupTransform. It takes a (really) small amount of time until tf has distributed the incoming updates. For details consult the wiki.
Hope this helps, if there's still a problem follow up questions (concerning your code) are probably better placed at ROS answers. ;)
I think this is intended behavior, as @hdeeken suggested you should use waitForTransform
before calling lookupTransform
if you don't want it to potentially raise that exception.
I'll let @tfoote make the call on this issue though.
@lsouchet This does look like expected behavior. I suggest that you read through the tf tutorials to understand what is happening. Especially the 4th about tf and Time to understand this error.
If this is a low throughput callback a waitForTransform is reasonable. If it's a high throughput callback you should use a tf::MessageFilter
Hello, I am trying to make a listener of tf that sends commands to my robot.
I plugged it to /move_base_simple/goal to use the rviz built in panel.
But when I try to send a command, the python node throws with this error:
Here is the output of the message in question:
And here is the code of my callback (note that I commented the try/except shit to let it throw):
There appears to be an issue about the timing between the message is published and the transform is processed but I don't understand why. Is is a real bug or something I did wrong?
Thanks in advance