0
$\begingroup$

an external localization package is performing localization between the map and base_link frames. There is a lidar attached to the laser frame, which is connected to the base_link, and it is also publishing data. There is a discrepancy between the map and laser frame. When I select "map" as the fixed frame in Rviz, I receive the "Message removed because it is too old" error from the lidar topic. When I set the fixed frame to base_link or the scan frame, the scan data starts to arrive, and the same error begins to come from other topics related to the map. The Tf tree is as follows. Can you assist with this?

Laser Scan Error image TF Tree

TF Tree After setting

$\endgroup$

1 Answer 1

0
$\begingroup$

All the computers in your ros system need to have the OS provide an accurate time-of-day clock. This is accomplished by enabling the NTP service on each computer.

$\endgroup$
2
  • $\begingroup$ The clock of the other computer was wrong. I adjusted the time, and the error disappeared. I added the new TF tree among the question photos, is there any anomaly in the tree? $\endgroup$
    – aoz_rob
    Commented Nov 3, 2023 at 7:37
  • $\begingroup$ The 2nd TF tree looks OK. $\endgroup$
    – Mike973
    Commented Nov 3, 2023 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.