AutonomyLab / create_robot

ROS driver for iRobot Create 1 and 2.
http://www.autonomylab.org/create_autonomy
BSD 3-Clause "New" or "Revised" License
198 stars 165 forks source link

Transform from Map -> Base Footprint uses a weird time transform #88

Closed jacobwaller closed 3 years ago

jacobwaller commented 3 years ago

Not sure if my issue here is with slam-toolbox or with create_robot, but it seems like my transform from map -> base_footprint is broken.

Oddly enough, the individual transforms from Map -> Odom & Odom -> Base_Footprint work great, but going from Map -> Base_Footprint gives me the error: [INFO] [1619986350.507533125] [tf2_echo]: Waiting for transform map -> base_footprint: Lookup would require extrapolation into the past. Requested time 0.200000 but the earliest data is at time 1619986346.813953, when looking up transform from frame [base_footprint] to frame [map]

Using the foxy-ci branch here. Here's an image of the relevant part of my transform map: Screenshot from 2021-05-02 15-31-01

Wondering if anyone has seen something like this before

jacobwaller commented 3 years ago

To solve this error, I just had to call nav2 with the argument use_sim_time:=false

Now that I've done this, everything seems to be working completely fine.