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

How to clear the traces of the dynamic obstacle in a costmap?

asked 2017-11-17 00:53:07 -0500

vishnu gravatar image

updated 2017-11-17 00:54:15 -0500

Hi,

I am trying to get an instantaneous occupancy grid by using laser scanner (in stageros) and get the locations and dimensions of the obstacles. With the help of costmap_2d package, I am able to generate the occupancy grid but there is an issue with the moving obstacles. When only the main vehicle is moving and there are no dynamic obstacles, clearing is happening properly. But when there is a moving obstacle, the moving obstacle's occupancy information is not being updated and hence the traces are left behind.

Please refer to this video

I have set marking and clearing values to be true, and observation_persistence is also 0.0. I can't think of anything beyond these three parameters. Are there any other parameters I need to set? What could be the solution?

Please, help.

Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-11-20 04:32:27 -0500

IvanV gravatar image

Probably your problem is that you don't have anything beyond the dynamic obstacle, so costmap doesn't get any valid laser reading to "clear" the previously perceived obstacle. Remember that costmap needs to raytrace something beyond an occupied cell to clean it. Try adding some wall to your world.

edit flag offensive delete link more

Comments

1

@IvanV Thanks for the response. Adding a wall behind the obstacles certainly worked, but in this scenario, I cannot have it all the time. I found a workaround that I created a service to clear costmap (equivalent to the sevice clearCostmaps in move_base).

vishnu gravatar image vishnu  ( 2017-12-11 02:05:06 -0500 )edit

@vishnu how u solved it? can you give some details. I'm quite new to this and facing almost the same problem

CHIN gravatar image CHIN  ( 2019-02-01 01:10:59 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2017-11-17 00:53:07 -0500

Seen: 928 times

Last updated: Nov 20 '17