Collision Check with costmap_2d::Costmap_2D

asked 2020-02-27 17:06:44 -0500

sean112 gravatar image

updated 2020-02-27 17:07:27 -0500

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 base_local_planner::CostmapModel can be utilized. When I tried to implement, I used getmap service from map_server. However, the msg is a nav_msgs::OccupancyGrid type. I need a Costmap_2D project to construct base_local_planner::CostmapModel. Is there any method to convert OccupancyGrid to Costmap_2D?

I read this page: http://wiki.ros.org/costmap_2d/Tutori...

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

What is the best way to approach this?

Sincerely,

Sean

edit retag flag offensive close merge delete