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

Simulating cleaning map in ROS

asked 2021-10-24 03:30:18 -0500

ashwin gravatar image

updated 2021-10-26 09:00:38 -0500

lucasw gravatar image

I am trying to simulate a roomba using ROS. For planning the path and to figure out what area to clean next, I would like to maintain a map where the known cells are the ones visited by the robot and the grey ones are yet to be visited. Obviously feeding laser scans to slam won't generate such a map. My initial attempt was to add a fake lidar to the bot and restrict it's range to denote the cleaning area but when I remapped this data to gmapping the boudaries were labelled as obstacles which is undesired.

How can I efficiently create an OccupancyGrid for a cleaning robot where the known areas in the map denote the areas which the bot has cleaned?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-24 08:33:57 -0500

Mike Scheutzow gravatar image

updated 2021-10-24 09:01:25 -0500

What you are describing is functionality that is out of scope for move_base or the costmaps that it maintains. I would create a new ros node that operates conceptually at a higher level than move_base.

The job of this new node is to choose the next goal to give to move_base. It maintains its own map, with a grid of visited locations (populated by monitoring the robot pose.) This node will also need to know where the walls and prohibited zones are so it doesn't request an impossible-to-reach goal.

P.S. you will make the problem more difficult if you also try to mix in gmapping functionality. I would keep these two features separate until you are have more experience with ros.

edit flag offensive delete link more

Comments

Thank you! For anyone stuck on the same problem, this might be a good starting point. It was for me :)

ashwin gravatar image ashwin  ( 2021-11-03 12:54:54 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-10-24 03:30:18 -0500

Seen: 221 times

Last updated: Oct 24 '21