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

Extrapolation Error looking up robot pose: Lookup would require extrapolation into the past. Requested time 5381.303000000 but the earliest data is at time 5381.316000000, when looking up transform from frame [base_footprint] to frame [map]

asked 2020-02-27 12:21:20 -0600

sinsinsinsin gravatar image

updated 2020-02-27 12:21:56 -0600

Hi

I am running cartographer_turtlebot with my own bag.

The mapping works, but the terminal outputs ERROR (in the rviz, you can see the submap just jump to some other place then jump back)

below is the ERROR

Extrapolation Error looking up robot pose: Lookup would require extrapolation into the past.  Requested time 5381.303000000 but the earliest data is at time 5381.316000000, when looking up transform from frame [base_footprint] to frame [map]

I checked the tf_tree and confirmed the tree connection is:

map -> odom -> base_footprint -> base_link so the base_footprint is connected to the map.

Why there is a error?

Thank you

edit retag flag offensive close merge delete

Comments

Is your rosbag publishing the /clock? If so, did you set use_sim_time with rosparam set use_sim_time true when running Carthographer?

Wilco Bonestroo gravatar image Wilco Bonestroo  ( 2020-02-27 14:30:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-28 05:26:32 -0600

edote gravatar image

I had this issue, calling waitForTransform() before lookupTransform() worked for me. The turtle takes some time to spawn, so the lookupTransform() doesn't see the turtle at the beginning. The function waitforTransform() waits for the first transform to appear.

You can find it here (just above 1.2 The Code Explained) : http://wiki.ros.org/tf/Tutorials/Writ...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-02-27 12:21:20 -0600

Seen: 2,371 times

Last updated: Feb 27 '20