Robotics StackExchange | Archived questions

Collision Check with costmap_2d::Costmap_2D

Hello all,

Currently I am working on a project where I would check a pose for collision based on my global map. I found that baselocalplanner::CostmapModel can be utilized. When I tried to implement, I used getmap service from mapserver. However, the msg is a navmsgs::OccupancyGrid type. I need a Costmap2D project to construct baselocalplanner::CostmapModel. Is there any method to convert OccupancyGrid to Costmap2D?

I read this page: http://wiki.ros.org/costmap_2d/Tutorials/Creating%20a%20New%20Layer

It seems like it still needs a Costmap_2D object to updateCost().

What is the best way to approach this?

Sincerely,

Sean

Asked by sean112 on 2020-02-27 18:06:44 UTC

Comments

Answers