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

Does AMCL still work in an edited map?

asked 2020-06-10 07:00:11 -0500

kopop8 gravatar image

I have a global map of a big room but edited the .pgm file and added a wall so that the robot doesn't drive under a table.

My question is does AMCL use this map to correct the localisation of the robot and can it fuck up because it thinks there needs to be a wall under the table when there is none?

Thanks for reading.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-06-10 07:56:08 -0500

bob-ROS gravatar image

updated 2020-06-10 20:07:21 -0500

Depends on your settings, the particles of AMCL are in general in a quite small radius (if the rest of the map is decent, good odometry, etc). You don't need a perfect map for AMCL, it will be worse but likely by not by much. You could probably make your static layer use a different occupancy grid from the one used by AMCL.

See http://wiki.ros.org/costmap_2d/hydro/staticmap

edit flag offensive delete link more

Comments

Thanks for the quick answer! So it's not a good idea to edit a map and draw aisles in a big empty room for example?

kopop8 gravatar image kopop8  ( 2020-06-10 08:20:57 -0500 )edit
1

I will make it worse for sure, but you can circumvent this problem by just having the edited map being used for the path planning, while the original being just by AMCL for localization.

bob-ROS gravatar image bob-ROS  ( 2020-06-10 08:34:42 -0500 )edit

Thank you so much!! I will do that! :)

kopop8 gravatar image kopop8  ( 2020-06-10 08:43:07 -0500 )edit
1

To be more specific: the /map topic is generally used for the AMCL map as well as the occupancy grid for the global costmap's static layer. Create an additional map server so you have e.g. /map_edited that the layers subscribes to instead.

bob-ROS gravatar image bob-ROS  ( 2020-06-10 09:00:28 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-10 07:00:11 -0500

Seen: 193 times

Last updated: Jun 10 '20