Hi, I am using the mrpt_rbpf_slam for my bachelor thesis and I often get the following message:
"Failed to get transform target_frame (odom) to source_frame (base_link)"
I added the TransformException messages to the log and get the following information:
"Lookup would require extrapolation into the future. Requested time 1510749857.878693103 but the latest data is at time 1510749857.877105724, when looking up transform from frame [base_link] to frame [odom]"
After looking at the source code of the method "PfslamWrapper::waitForTransform" I found out, that the "timeout" parameter is never used in the method. Instead the parameter "polling_sleepduration" is used as the "timeout" parameter for the method "listenerTF.waitForTransform" with a duration of 0.01. That duration is a little bit short. So I fixed that and the message is gone!
Hi, I am using the mrpt_rbpf_slam for my bachelor thesis and I often get the following message:
"Failed to get transform target_frame (odom) to source_frame (base_link)"
I added the TransformException messages to the log and get the following information:
"Lookup would require extrapolation into the future. Requested time 1510749857.878693103 but the latest data is at time 1510749857.877105724, when looking up transform from frame [base_link] to frame [odom]"
After looking at the source code of the method "PfslamWrapper::waitForTransform" I found out, that the "timeout" parameter is never used in the method. Instead the parameter "polling_sleepduration" is used as the "timeout" parameter for the method "listenerTF.waitForTransform" with a duration of 0.01. That duration is a little bit short. So I fixed that and the message is gone!
Fixed method: