ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ExtrapolationException. Very small time difference?

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

Hyon Lim gravatar image

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

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
2

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

Lorenz gravatar image

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

edit flag offensive delete link more
1

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

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

Question Tools

1 follower

Stats

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

Seen: 3,818 times

Last updated: Jul 27 '12