Ask Your Question

ExtrapolationException. Very small time difference?

asked 2012-07-27 01:06:45 -0500

Hyon Lim gravatar image

updated 2012-07-27 02:29:58 -0500

dornhege gravatar image

Currently, I'm using IMU(Xsens) + Laser(Hokuyo). Sometimes, below is problem. As you see, 0.04sec time difference. (Few sample difference). How can I solve this problem?

Note that all nodes are on same machine.

terminate called after throwing an instance of 'tf::ExtrapolationException' what(): Lookup would require extrapolation into the future. Requested time 1343387030.103303000 but the latest data is at time 1343387030.065800000, when looking up transform from frame [/laser] to frame [/base_stabilized]

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-07-27 02:22:03 -0500

Lorenz gravatar image

Just use waitForTransform or tf::MessageFilter. Also, make sure you went through this tutorial.

edit flag offensive delete link more

answered 2012-07-27 02:21:44 -0500

dornhege gravatar image

The easy way would be to use 0 as the time, this will get you the latest data, instead of the data at the time (which might be in the future/no received yet).

Alternatively, use tf waitForTransform.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-07-27 01:06:45 -0500

Seen: 3,445 times

Last updated: Jul 27 '12