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

How to make global planner avoid certain regions when planning?

asked 2018-01-19 11:08:16 -0500

HM Mehrab gravatar image

Hi, the laser scanner (RPLIDAR A2) on my robot is located very high from ground (almost 6 feet). In the area where the robot will operate, there is a region that is bounded by walls with height of about 4 feet. When I map the area, these obstacles are not detected by the laser scanner and so are specified as free space and the global planner makes paths through this region. How can I tell the global planner to avoid this region?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-19 11:41:09 -0500

jayess gravatar image

updated 2018-01-19 12:10:00 -0500

An easy way to do that (I've done this in the past with success) is to draw black lines, squares, or some shape over the areas of the map that you don't want your planner to make paths through.

Update:

I had the opposite problem as you. Low laser catching only table/desk legs. The planner would plan through the table/desks because the legs were far enough apart for my robot to navigate between them except the tables/desks where in the way. I put black rectangles where the tables/desks are and localization still worked along with the planner no longer planning paths through the tables/desks.

edit flag offensive delete link more

Comments

Will that mess with localization though? If I paint the region black, but the laser scanner reports that there is no obstacle, won't AMCL / Laser Scan Matcher get confused?

HM Mehrab gravatar image HM Mehrab  ( 2018-01-19 12:01:26 -0500 )edit

I guess the answer is: it depends. Make a copy of your map and yaml file. Add the black boxes in the copy of your map and see if it works.

jayess gravatar image jayess  ( 2018-01-19 12:10:38 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-19 11:08:16 -0500

Seen: 163 times

Last updated: Jan 19 '18