Ask Your Question

modifying a known map gmapping

asked 2012-06-28 06:58:27 -0500

Rydel gravatar image

I was wondering if it's possible to create a partial map using the navigation stack and then reloading the map later to complete it. Correct me if I am wrong but it seems you can load previously known maps to the amcl demo but that program does not build on the map, trying the same command to the gmapping demo doesnt seem to work:

$ roslaunch turtlebot_navigation gmapping_demo.launch map_file:=/tmp/my_map.yaml

How does one complete a partial map? Also is it possible to edit the map.pgm file in something like gpaint to correct small errors?

edit retag flag offensive close merge delete



yes you can do small corrections on the map. check out this video it is an edited map and robot can do navigation

cagatay gravatar image cagatay  ( 2012-06-28 07:05:25 -0500 )edit

awesome, now I just need to figure out how to load in a partially completed map into the gmapping demo

Rydel gravatar image Rydel  ( 2012-06-28 07:30:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-06-28 07:31:23 -0500

Eric Perko gravatar image

You are correct that AMCL does not build maps, it only localizes within an existing map. GMapping does build maps while localizing (SLAM: Simultaneous Localization and Mapping).

There is currently no way to "resume mapping" when using gmapping. See for a detailed explanation. Basically, the map image and yaml file do not have enough information for GMapping to resume from.

It is definitely possible to edit the map.pgm file in an image editor like gimp (or I guess gpaint but I've never used it). You should make sure you preserve the image size and resolution (or adjust the map.yaml parameters accordingly). See for some more discussion on editing the map. Note that this will affect AMCL but you still cannot edit a map and then resume mapping (since, as noted above, gmapping can't resume from the .pgm/.yaml map).

edit flag offensive delete link more


dang, thanks for the response

Rydel gravatar image Rydel  ( 2012-06-28 07:36:33 -0500 )edit

SO what are the missing parameters? I am interested in this as part of continuing mapping ( say, after docking for recharge). So the start orientation and location would be known. Why would it not be possible to continue after that?

Dino gravatar image Dino  ( 2016-10-30 20:37:05 -0500 )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



Asked: 2012-06-28 06:58:27 -0500

Seen: 5,641 times

Last updated: Jun 28 '12