Ask Your Question

How to make an accurate map?

asked 2017-09-05 21:08:45 -0500

rozoalex gravatar image

It seems like the slam algorithm is really tricky. I tried in my living room and it works fine(demo: and , there are happening roughly the same time). However I tried in some rooms in my school, since I want to do a demo of navigation for students, it doesn't work well. I tried in a room with hard floor and a room with rough carpet. Both them doesn't give good map. I wonder if the slam algorithm itself doesn't work well for a simple small confined square shaped room, because it can't have a good prediction about its' location if all corners looks similar. The two rooms I tried are all standard college small classroom. The shapes are square and with lots of chairs in the middle.

What would be the best environment to demo slam? (I guess the best is hard floor room that's a little more complicated like this ) Are there good resources regarding to this problem?


edit retag flag offensive close merge delete


Slam tends to do well in environments where the sensor can see the walls, and the walls and obstacles have some unique features. Putting a few large boxes in the middle of your classroom may help provide unique features.

ahendrix gravatar image ahendrix  ( 2017-09-05 23:46:54 -0500 )edit

I would suggest you to use Hector SLAM which gives better maps for indoors.

bvbdort gravatar image bvbdort  ( 2017-09-06 05:05:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-06 01:24:41 -0500

jayess gravatar image

You don't say in your question, but from your video it looks like you're using gmapping. If you're driving your robot around like you are in the your second video while trying to map then you are driving and turning too fast. You need to drive and turn slow. You should also try going over any areas that don't look correct a couple of times, that may help.

Also, any chairs, desks, or tables may not completely turn up in your map because the laser can only see the legs and not tabletops/desktops. So, this may add to you're map looking incorrect as well. When I mapped out our lab I manually drew in the desks.

Check out this answer for some more information. As @gvdhoorn points out in a comment to that answer, gmapping is quite old and you may want to try using other mapping components such as Google Cartographer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-09-05 21:08:45 -0500

Seen: 813 times

Last updated: Sep 06 '17