Class Costmap
Defined in File costmap.hpp
Class Documentation
Class for a single layered costmap initialized from an occupancy grid representing the map.
Public Types
Public Functions
A constructor for nav2_util::Costmap.
- Parameters:
node – Ptr to a node
trinary_costmap – Whether the costmap should be trinary
track_unknown_space – Whether to track unknown space in costmap
lethal_threshold – The lethal space cost threshold to use
unknown_cost_value – Internal costmap cell value for unknown space
Set the static map of this costmap.
- Parameters:
occupancy_grid – Occupancy grid to populate this costmap with
Set the test costmap type of this costmap.
- Parameters:
testCostmapType – Type of stored costmap to use
Get a costmap message from this object.
- Parameters:
specifications – Parameters of costmap
- Returns:
Costmap msg of this costmap
Get a metadata message from this object.
- Returns:
Costmap metadata of this costmap
Get whether some coordinates are free.
- Returns:
bool if free
Get whether some index in the costmap is free.
- Returns:
bool if free
Public Static Attributes