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

Mapping with Turtlebot and the stairways [closed]

asked 2015-06-12 03:15:52 -0500

pexison gravatar image

Hi,

I am trying to generate a map of the second floor of my house. The problem is, that with the SLAM Mapping for Turtlebot, i can't put a mark or something that says "Don't go there or you will fall down". I am able to the map but I don't know how to avoid the stairways. There is any way to add the danger zone, or the don't go there zone to the map?

PS: I want to use the map to make an map based navigation test.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by pexison
close date 2015-07-27 03:00:36.888694

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-06-12 04:16:03 -0500

daenny gravatar image

So one easy and quick way you could do to mark of "danger zones" is to edit the created map in gimp and just "close" the opening by painting black pixels to create a barrier. You should not make a complete line, just 1 pixel every 20cm (depending on your map resolution), since a whole line could mess up your AMCL localization, since it would expect a whal where there is none. That is of course a hack, and there is still a small chance that the robot drives through it, namely when it gets close and since the painted obstacles do not show up in the local costmap, the local planner might decide to drive through it. But the global planner usually takes care that you do not drive too close to the zones when creating the path. This of course only works if you create the map with gmapping and use it in AMCL at a later stage, not directly with gmapping.

edit flag offensive delete link more

Comments

"This of course only works if you create the map with gmapping and use it in AMCL at a later stage, not directly with gmapping." So I am able to use the edited map with an client (ie. wrote on C++ or python) that sends goals to the navigation stack (and avoid the stairways)?

pexison gravatar image pexison  ( 2015-06-12 05:49:35 -0500 )edit

Yes, so the steps are: Create the map with gmapping, save with map_saver ( http://learn.turtlebot.com/2015/02/01... ) and edit in gimp. Launch AMCL with edited map. ( http://learn.turtlebot.com/2015/02/01... ) and try to send goals first from within RVIZ and later you can use your own client.

daenny gravatar image daenny  ( 2015-06-12 10:38:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-12 03:15:52 -0500

Seen: 394 times

Last updated: Jun 12 '15