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

Revision history [back]

It's looking like the costmap_2d node is completely wrong for this task, unless I'm just missing a parameter or two that would get the desired behavior.

I think the solution will be a custom node that publishes an OccupancyGrid and subscribes to the footprint, and uses an opencv function to draw the footprint onto the grid when it updates and this will get the desired obstacle clearing behavior.

It's looking like the costmap_2d node is completely wrong for this task, unless I'm just missing a parameter or two that would get the desired behavior.

I think the solution will be a custom node that publishes an OccupancyGrid and subscribes to the footprint, and uses an opencv function to draw the footprint onto the grid when it updates and this will get the desired obstacle clearing behavior.


update

Just tried this again and I was able to take a pgm with all black pixels, a static map config with negate: 0, and combination_method: 0 :

``` plugins: - {name: static, type: "costmap_2d::StaticLayer"} - {name: cleared, type: "costmap_2d::ObstacleLayer"}

cleared: track_unknown_space: true combination_method: 0 ```

image description

It's looking like the costmap_2d node is completely wrong for this task, unless I'm just missing a parameter or two that would get the desired behavior.

I think the solution will be a custom node that publishes an OccupancyGrid and subscribes to the footprint, and uses an opencv function to draw the footprint onto the grid when it updates and this will get the desired obstacle clearing behavior.


update

Just tried this again and I was able to take a pgm with all black pixels, a static map config with negate: 0, and combination_method: 0 :

```

plugins:
  - {name: static, type: "costmap_2d::StaticLayer"}
  - {name: cleared, type: "costmap_2d::ObstacleLayer"}

"costmap_2d::ObstacleLayer"}

cleared: track_unknown_space: true combination_method: 0 ```

image description

It's looking like the costmap_2d node is completely wrong for this task, unless I'm just missing a parameter or two that would get the desired behavior.

I think the solution will be a custom node that publishes an OccupancyGrid and subscribes to the footprint, and uses an opencv function to draw the footprint onto the grid when it updates and this will get the desired obstacle clearing behavior.


update

Just tried this again and I was able to take a pgm with all black pixels, a static map config with negate: 0, and the obstacle layer has combination_method: 0 :

plugins:
  - {name: static, type: "costmap_2d::StaticLayer"}
  - {name: cleared, type: "costmap_2d::ObstacleLayer"}

cleared:
  track_unknown_space: true
  combination_method: 0

image description