Ask Your Question
2

What are good Kinect gmapping parameters?

asked 2013-01-29 14:47:21 -0600

updated 2016-10-24 08:37:37 -0600

ngrennan gravatar image

I noticed in the gmapping documentation, it says "This version is optimized for long-range laser scanners ... short range lasers ... will not work that well with the standard parameter settings.".

I was wondering what parameters people have been successfully using for Kinect-based navigation? (My results so far have been less than perfect)

Thanks, -Jon

Here is what the map looks like. My method was: drive into an empty space, and rotate in a circle, then move on to a new space:

image description

--- Edit ---

Here's what the map looks like when I make sure to always have a corner in the field of view when moving to a new part of the map. It's much, much better:

image description

edit retag flag offensive close merge delete

Comments

1

Actually I think if you are doing indoors stuff the short range of the kinect isn't really that much of a problem in comparison to the very limited field of view (55 deg vs. 180-270 deg of common lasers).

dornhege gravatar imagedornhege ( 2013-01-29 23:02:39 -0600 )edit

Ok, that makes sense. It seems to do a good job building a map when it sees two walls in the same field of view, but not when it has to rotate from one wall to the other.

Jon Stephan gravatar imageJon Stephan ( 2013-01-31 02:13:02 -0600 )edit

Yep, tried again making sure I always had a corner in view, and it does much better. Unfortunately, I think that means it probably won't be able to autonomously build a map, without some heavy-duty programming.

Jon Stephan gravatar imageJon Stephan ( 2013-02-05 09:31:56 -0600 )edit

It would really help if I could save the map half-way through and use that as the initial map when restarting because it takes so long to map the house and it often screws up half-way through. I think I'll open a new question.

Jon Stephan gravatar imageJon Stephan ( 2013-02-05 09:34:05 -0600 )edit

@domhege, if you post the answer "Use the default parameters, and make sure you always have a corner in the field of view", I'll mark that as the correct answer.

Jon Stephan gravatar imageJon Stephan ( 2013-02-05 09:35:48 -0600 )edit

By the way - I just upgraded the laptop on my robot (from a single core pentium to a dual core core i3), and it seems to do the mapping much better. I can be a little more careless about my driving and still get a pretty good map.

Jon Stephan gravatar imageJon Stephan ( 2013-03-08 16:15:51 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-01-31 06:33:14 -0600

dornhege gravatar image

updated 2013-02-05 22:41:46 -0600

If you can manage to always see at least one corner it should be way better. Aligning on one wall only is quite bad.

edit flag offensive delete link more

Comments

Yes, the default parameters work fine when keeping one corner in the field of view.

Jon Stephan gravatar imageJon Stephan ( 2013-02-06 00:05:34 -0600 )edit
1

answered 2013-01-30 05:24:47 -0600

I've used the Kinect with the default parameters in gmapping to successfully map out a large area. I did have to tweak the map by hand at the end to get it to be perfect. Could you post an image of your results so that we can see what "less than perfect" means?

In a couple of cases where map generation failed, it was more of a problem of bad odometry or doing crazy maneuvers on the robot.

edit flag offensive delete link more

Comments

What did you use to tweak the map?

I'm traveling, so can't post a map right now. My odom seems pretty good - the laser scan with persistence seems like a better map than what gmapping comes up with.

Jon Stephan gravatar imageJon Stephan ( 2013-01-31 02:15:40 -0600 )edit

I think the problem is that it seems like it only uses the odom as a starting point for the scan matching, and a fallback if that fails. I think it would come up with a better map if it used the odom as the scan's position if that gives a reasonable match.

Jon Stephan gravatar imageJon Stephan ( 2013-01-31 02:18:24 -0600 )edit

In other words, put more weight on the odom, and less weight on the scan matching.

Jon Stephan gravatar imageJon Stephan ( 2013-01-31 02:22:05 -0600 )edit

@Jon Stephan: You reasoning seems right. It is a bit odd that gmapping seems to be performing poorer that simply using odom. I can't comment on how the parameters should change. You might have to go through the original paper to figure it out. I tweaked the map in GIMP.

piyushk gravatar imagepiyushk ( 2013-01-31 04:56:23 -0600 )edit

I couldn't really make sense of that paper (and I'm an engineer by trade, so I would think I should be able to).

Jon Stephan gravatar imageJon Stephan ( 2013-02-01 02:15:10 -0600 )edit

hey guys, how would you put more weight on odom and less on scan matching with the gmapping params?

miguel gravatar imagemiguel ( 2015-09-29 15:25:54 -0600 )edit

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

Stats

Asked: 2013-01-29 14:47:21 -0600

Seen: 1,480 times

Last updated: Feb 06 '13