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

Can you publish only obstacles from a costmap

asked 2014-01-17 11:01:25 -0500

Matt_Derry gravatar image

updated 2014-01-28 17:19:04 -0500

ngrennan gravatar image

I'm wondering if it is possible to publish only the cells (points) that are occupied in a given costmap_2d object using the newer layered costmap approach in Hydro? This was how the nav_msgs/GridCells worked on the <costmap>/obstacles topic of old and it was a useful feature.

I suppose it would not be terribly difficult to write a node that subscribes to the /costmap topic now and converts the occupancy grid into a GridCells message of occupied cells, but I'm just curious if that functionality is built in to the current implementation of costmap_2d or not. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-01-17 12:01:33 -0500

David Lu gravatar image

It is not currently built in. You are correct that you could write another node, since the information for the gridcells is a subset of the information in the costmap.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-01-17 11:01:25 -0500

Seen: 446 times

Last updated: Jan 17 '14