Dear all,
I would like to put in place a callback each time a new value of a given source frame in a given target frame is available.
You can do this with a listener (waitForTransform() + lookupTransforms()) but I find this is a rather dirty solution. So what I would like to do is use something like a tf::MessageFilter. The problem is tf::MessageFilter does not work for tf2_msgs::TFMessage (the message type for topic /tf).
- Any idea of the best practise to do that?
- Also, why isn't this the default solution to work with transforms? This is what most people most likely want to do, no?
Thanks,
Antoine.
Originally posted by arennuit on ROS Answers with karma: 955 on 2014-08-14
Post score: 1
Original comments
Comment by NEngelhard on 2014-08-14:
"This is what most people most likely want to do, no?" I'm not sure about that. Some of my tf-sending nodes do that with a frequency of a kHz, but i just need the position maybe once every 20secs when I need the position of a camera. And even in this case, I only need the interpolated position.
Comment by arennuit on 2014-08-14:
@FooBar: Obviously I did not mean everyone had to use the above mentioned method ;) In some situations (like yours) it is clearly not relevant ;)