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

Incorporate dynamic obstacles to map found by camera

asked 2020-09-19 11:50:15 -0500

evdo gravatar image

Hello, i use 2d Lidar sensors for mapping the area but during the run, some new virtual obstacles are being included like barrier stripes and the robot must not drive over them. I created a custom detector with a camera that returns a bounding box of the barrier stripe and I want to include the detected points as obstacles in the existed map. How am I supposed to do this? thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-09-19 21:49:49 -0500

JackB gravatar image

updated 2020-09-22 08:52:57 -0500

A global planner is responsible for finding a feasible path from a start location to a goal location ros global planner. A local planner is responsible for generating the velocity commands that will actually (essentially) execute the drive motions required to follow the global path plan ros local planner. In this context, you can have two cost maps, one global costmap (which the global planner uses) and a local costmap (which the local planner uses). The local costmap can take account of dynamic objects in the area closest to the robot (like in the range of the lidar scanner) and allow the local planner to plan to avoid the obstacles.

For your case, I would suggest instead of using a custom object detector, just to get started you use the default planner and costmap structure. Clearpath provides really nice launch and config files which do exactly this. See move_base.launch and the config files it uses to set up the global and local navigation stacks. Once you have done this you may consider how to incorporate your custom detected obstacles into the local costmap.

The teb_local_planner is one version of a local planner that does take into account local dynamic obstacles (Tutorial1 and Tutorial2). But personally I think its important you get an understanding of the basic local and global nav stack layout before you do anything more complicated like TEB, but that is just my opinion.

edit flag offensive delete link more

Comments

@evdo did this help answer your question or can you provide us with how you solved it?

JackB gravatar image JackB  ( 2020-09-21 21:26:55 -0500 )edit

hello, thanks for the help I'll consider processing these files you told me. I have found the teb_local_planner package, do you think that this package suits in my occasion?

evdo gravatar image evdo  ( 2020-09-22 02:11:24 -0500 )edit

That is one version of a local planner. It does take explicitly into account local dynamic obstacles (Tutorial1 and Tutorial2). But personally I think its important you get an understanding of the basic local and global nav stack layout before you do anything more complicated like TEB, but that is just my opinion.

JackB gravatar image JackB  ( 2020-09-22 07:40:40 -0500 )edit

Thanks for your help I'll follow your advice!

evdo gravatar image evdo  ( 2020-09-22 08:49:28 -0500 )edit

I move my last comment to part of the answer, if you think this answers your question mark it as accepted. If not please follow up with your own solution when you find it. Good luck!

JackB gravatar image JackB  ( 2020-09-22 08:54:15 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-09-19 11:50:15 -0500

Seen: 264 times

Last updated: Sep 22 '20