Class GridCollisionChecker
Defined in File collision_checker.hpp
Inheritance Relationships
Base Type
public nav2_costmap_2d::FootprintCollisionChecker< nav2_costmap_2d::Costmap2D * >
Class Documentation
A costmap grid collision checker.
Public Functions
A constructor for nav2_smac_planner::GridCollisionChecker for use when regular bin intervals are appropriate.
- Parameters:
costmap – The costmap to collision check against
num_quantizations – The number of quantizations to precompute footprint
node – Node to extract clock and logger from orientations for to speed up collision checking
A constructor for nav2_smac_planner::GridCollisionChecker for use when irregular bin intervals are appropriate.
Set the footprint to use with collision checker
- Parameters:
costmap – The costmap to collision check against
angles – The vector of possible angle bins to precompute for orientations for to speed up collision checking, in radians
footprint – The footprint to collision check against
radius – Whether or not the footprint is a circle and use radius collision checking
Check if in collision with costmap and footprint at pose.
- Parameters:
x – X coordinate of pose to check against
y – Y coordinate of pose to check against
theta – Angle bin number of pose to check against (NOT radians)
traverse_unknown – Whether or not to traverse in unknown space
- Returns:
boolean if in collision or not.
Check if in collision with costmap and footprint at pose.
- Parameters:
i – Index to search collision status of
traverse_unknown – Whether or not to traverse in unknown space
- Returns:
boolean if in collision or not.
Get cost at footprint pose in costmap.
- Returns:
the cost at the pose in costmap
Get the angles of the precomputed footprint orientations.
- Returns:
the ordered vector of angles corresponding to footprints
Protected Attributes