How do I map a non-binary Occupancy Grid with several values to a cost map in ROS?
问题 I'm looking for a way to map a non-binary occupancy grid to a global cost map. The occupancy grid has the values -1 for undefined, 0 for non-collision and 1-100 for collision areas. There is a similar question here for which the given answer doesn't offer a concrete solution: https://answers.ros.org/question/335530/what-range-of-costs-does-ros-navigation-support/ For a better overview: I'm using ROS Melodic. My occupancy grid looks like this: Image of Occupancy grid My global_costmap_params