Is there a way to subscribe to tf data?
Up to now, I have used tf as described in the tutorial Writing a tf listener: Whenever I need some positions transformed, I just use lookupTransform.
I am considering using tf data to control a robot and would like the robot to react whenever new tf information becomes available, i.e. subscribe to tf data. Is this possible at all?
The only possible way I see at the moment is having a polling loop as shown in the tutorial. This is bad because it introduces latency (especially if I choose a low rate) and wastes cpu time (especially if I choose a high rate).
Is there really no different option?