tf::TransformListener results in Lookup would require extrapolation into the future. Requested time 'x' but the latest data is at time 'y', when looking up transform from frame [odom] to frame [base_footprint]
Hello everyone.
I have been tyring to meddle with tf::TransformListiner
and see how it works. but every time I try to run my example, I get :
Lookup would require extrapolation into the future. Requested time 2873.875000000 but the latest data is at time 2873.867000000, when looking up transform from frame [odom] to frame [base_footprint]
I tried to set the "/amcl/transform_tolerance"
to some other values (ranging from 1/10 seconds to 0.01) to no avail.
This seems to have been caused by running both gazebo turtlebot3 simulation alongside rviz2 on my system (in a vmware workstation) and seems its struggling because my CPU cant handle such load and thus it introduced a small latency and messed up everything.
apart from using a more powerful PC which at the moment is not possible, what should I do ? I have read about FilterMessages`, but honestly don't know which one to use and how, since I'm not directly dealing with topics here.
note : I'm using C++ by the way in case it matters.
Any help is greatly appreciated and thank you all very much in advance.
What do you mean by "rviz2"?
That's a typo, my RViz version was 1.12.17