Hello everybody! This is a map in RVIZ.
we can see there is a shift from left to right in the map. The shift lead to a wrong result. I have been test the odometry data, it's ok. And the tf between /odom and /base_link is ok. Where would be the problem cause this wrong result?
Thank you for your attention.

I make a experiment as follow.

However, the result is:

If the robot have enough time for running, the trajectory would be a circle. Unbelievable!
If you have a structured environment (looks like it) and well behaving odometry - it should work.
So my guess is, the odometry is not OK. What did you do, when you said you tested it? Can you run the tests is this document: Navigation Tuning Guide, especially section 2.2.
move straight forward:


rotation: turn left 36degree


rotation: turn left 18degree


This is the bag file which I'm create in my robot: https://skydrive.live.com/?cid=be9affb6b505ae53&sc=documents#!/?cid=be9affb6b505ae53&permissionsChanged=1&id=BE9AFFB6B505AE53%21115 (the file is about 15M, after several time to upload failed I put the file in skydrive.)
This is the map in Rviz.

This is the map which replay used the bag file.

So, at least one problem is that you're getting a lot of ground hits. At about 4.5m from the robot, your laser is seeing the floor. That kind of thing will cause problems with both mapping and localization. Try tilting your laser up a little bit, maybe with a small shim. Just a small adjustment should do it. Post another bag with the shimmed laser, and I'll have a look.
But I have to admit that it should be possible to filter out those ground hits with the ~maxRange and ~maxUrange parameters in gmapping, and I was unable to make that work. So there may be something else going on.
The bag file named mydata02.bag. Here is the link: https://skydrive.live.com/?cid=be9affb6b505ae53&sc=documents#cid=BE9AFFB6B505AE53&id=BE9AFFB6B505AE53!115&sc=documents
This is the map in Rviz.

This is the map which replay used the bag file.

Asked: 2011-06-18 13:39:35 -0500
Seen: 418 times
Last updated: Jul 05 '11
Corrected Odometry from GMapping / Karto?
Playing back logfiles with tf data for offline SLAM
Why the SLAM have more than one maps in RVIZ? [closed]
the tf between /map and /odom is not static?
slam in gmapping auto turnaround
How to change fake laser scan direction of rotation
2D SLAM with gmapping and openni_kinect
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.