Robotics StackExchange | Archived questions

TF: request latest transform -> interpolation into the future

As stated in the tutorial the following code

listener.waitForTransform( 'X', 'Y', rospy.Time(), rospy.Duration(5))
(a,b) = listener.lookupTransform( 'X', 'Y', rospy.Time())

should wait until any transformation between X and Y available is and then return it. But instead I get ExtrapolationException: Lookup would require extrapolation into the future.

What do I have to do to get just the latest available transformation?

The problem occurs when I publish joint values and then try to get a transformation published by the robotstatepublisher. Everythin is on the same pc.

Asked by GeorgH on 2015-10-07 11:59:16 UTC

Comments

Answers