Editing gmapping caused a problem

asked 2016-06-29 10:09:40 -0500

b2meer gravatar image

I have edited my gmapping node to always publish zero transform from map to odom (reason being that map -- > odom keeps violently changing when I spin my lidar which causes the robot to jump around in rviz). Now when i start gmapping, everything works fine, but after some time, as I move my robot using teleop, I see the scan lines of lidar are displaced from the actual lidar frame as it shows in rviz. Means, the lidar frame and all other frames are in their proper place relative to base_link as appears in rviz, but the origin of scan lines (which make up the map) appear to be somewhere else, not on the lidar's frame.

Any ideas on why the origin of scan lines is displaced from their actual origin ? Thanks

edit retag flag offensive close merge delete


Providing info on the lidar and robot, parameters, and including screen shots of the maps so we have a better understanding of the problem would help.

billy gravatar image billy  ( 2016-07-03 22:32:19 -0500 )edit