|
Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|


Public Member Functions | |
| void | initialize () override |
| Initialize critic. | |
| void | score (CriticData &data) override |
| Evaluate cost related to obstacle avoidance. More... | |
Public Member Functions inherited from mppi::critics::CriticFunction | |
| CriticFunction ()=default | |
| Constructor for mppi::critics::CriticFunction. | |
| virtual | ~CriticFunction ()=default |
| Destructor for mppi::critics::CriticFunction. | |
| void | on_configure (nav2::LifecycleNode::WeakPtr parent, const std::string &parent_name, const std::string &name, std::shared_ptr< nav2_costmap_2d::Costmap2DROS > costmap_ros, ParametersHandler *param_handler) |
| Configure critic on bringup. More... | |
| std::string | getName () |
| Get name of critic. | |
Protected Member Functions | |
| bool | inCollision (float cost) const |
| Checks if cost represents a collision. More... | |
| CollisionCost | costAtPose (float x, float y, float theta) |
| cost at a robot pose More... | |
| float | distanceToObstacle (const CollisionCost &cost) |
| Distance to obstacle from cost. More... | |
| float | findCircumscribedCost (std::shared_ptr< nav2_costmap_2d::Costmap2DROS > costmap) |
| Find the min cost of the inflation decay function for which the robot MAY be in collision in any orientation. More... | |
Protected Attributes | |
| nav2_costmap_2d::FootprintCollisionChecker< nav2_costmap_2d::Costmap2D * > | collision_checker_ {nullptr} |
| bool | consider_footprint_ {true} |
| float | collision_cost_ {0} |
| float | inflation_scale_factor_ {0} |
| float | inflation_radius_ {0} |
| float | possible_collision_cost_ |
| float | collision_margin_distance_ |
| float | near_goal_distance_ |
| float | circumscribed_cost_ {0} |
| float | circumscribed_radius_ {0} |
| unsigned int | power_ {0} |
| float | repulsion_weight_ |
| float | critical_weight_ {0} |
| std::string | inflation_layer_name_ |
Protected Attributes inherited from mppi::critics::CriticFunction | |
| bool | enabled_ |
| std::string | name_ |
| std::string | parent_name_ |
| nav2::LifecycleNode::WeakPtr | parent_ |
| std::shared_ptr< nav2_costmap_2d::Costmap2DROS > | costmap_ros_ |
| nav2_costmap_2d::Costmap2D * | costmap_ {nullptr} |
| ParametersHandler * | parameters_handler_ |
| rclcpp::Logger | logger_ {rclcpp::get_logger("MPPIController")} |
Definition at line 37 of file obstacles_critic.hpp.
|
inlineprotected |
cost at a robot pose
| x | X of pose |
| y | Y of pose |
| theta | theta of pose |
Definition at line 220 of file obstacles_critic.cpp.
References nav2_costmap_2d::FootprintCollisionChecker< CostmapT >::footprintCostAtPose(), nav2_costmap_2d::FootprintCollisionChecker< CostmapT >::pointCost(), and nav2_costmap_2d::FootprintCollisionChecker< CostmapT >::worldToMap().
Referenced by score().


|
inlineprotected |
Distance to obstacle from cost.
| cost | Costmap cost |
Definition at line 105 of file obstacles_critic.cpp.
Referenced by score().

|
protected |
Find the min cost of the inflation decay function for which the robot MAY be in collision in any orientation.
| costmap | Costmap2DROS to get minimum inscribed cost (e.g. 128 in inflation layer documentation) |
Definition at line 70 of file obstacles_critic.cpp.
Referenced by initialize(), and score().

|
inlineprotected |
Checks if cost represents a collision.
| cost | Costmap cost |
Definition at line 202 of file obstacles_critic.cpp.
Referenced by score().

|
overridevirtual |
Evaluate cost related to obstacle avoidance.
| costs | [out] add obstacle cost values to this tensor |
Implements mppi::critics::CriticFunction.
Definition at line 120 of file obstacles_critic.cpp.
References costAtPose(), distanceToObstacle(), findCircumscribedCost(), and inCollision().
