ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
6

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

Comments

2

yes you can do small corrections on the map. http://www.youtube.com/watch?v=29vGhoXGv_k 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
11

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 http://answers.ros.org/question/9448/loading-a-prior-map-with-gmapping/#13721 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 http://answers.ros.org/question/12217/effects-of-manually-editing-gmapping-maps/#18030 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

Comments

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

Any updates on this matter?

rezenders gravatar image rezenders  ( 2021-05-12 15:26:41 -0500 )edit

Question Tools

3 followers

Stats

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

Seen: 6,598 times

Last updated: Jun 28 '12