I have a [rplidar A2](https://www.slamtec.com/en/Lidar/A2), I want to use it to provide localization information for my robot. I designed a track like the photo below, and the lidar will be moved 1 meter along the track every time I test.

If the `hector_mapping` localization information is accurate, the trajectory observed in `rviz` will have a high degree of coincidence with the the x-axis. However, I tested it many times and got the following trajectories, the result shows that the localization error is relatively large.



And this is the output of `slam_out_pose`(The ideal value should be around (1,0), and he scan angle of the lidar is 360 degrees):

Is there a way to improve the localization accuracy of `hector_mapping`?
↧