Class CriticFunction
Defined in File critic_function.hpp
Inheritance Relationships
Derived Types
public mppi::critics::ConstraintCritic
(Class ConstraintCritic)public mppi::critics::CostCritic
(Class CostCritic)public mppi::critics::GoalAngleCritic
(Class GoalAngleCritic)public mppi::critics::GoalCritic
(Class GoalCritic)public mppi::critics::ObstaclesCritic
(Class ObstaclesCritic)public mppi::critics::PathAlignCritic
(Class PathAlignCritic)public mppi::critics::PathAlignLegacyCritic
(Class PathAlignLegacyCritic)public mppi::critics::PathAngleCritic
(Class PathAngleCritic)public mppi::critics::PathFollowCritic
(Class PathFollowCritic)public mppi::critics::PreferForwardCritic
(Class PreferForwardCritic)public mppi::critics::TwirlingCritic
(Class TwirlingCritic)public mppi::critics::VelocityDeadbandCritic
(Class VelocityDeadbandCritic)
Class Documentation
-
class CriticFunction
Abstract critic objective function to score trajectories.
Subclassed by mppi::critics::ConstraintCritic, mppi::critics::CostCritic, mppi::critics::GoalAngleCritic, mppi::critics::GoalCritic, mppi::critics::ObstaclesCritic, mppi::critics::PathAlignCritic, mppi::critics::PathAlignLegacyCritic, mppi::critics::PathAngleCritic, mppi::critics::PathFollowCritic, mppi::critics::PreferForwardCritic, mppi::critics::TwirlingCritic, mppi::critics::VelocityDeadbandCritic
Public Functions
-
CriticFunction() = default
Constructor for mppi::critics::CriticFunction.
-
virtual ~CriticFunction() = default
Destructor for mppi::critics::CriticFunction.
Configure critic on bringup.
- Parameters:
parent – WeakPtr to node
parent_name – name of the controller
name – Name of plugin
costmap_ros – Costmap2DROS object of environment
dynamic_parameter_handler – Parameter handler object
-
virtual void score(CriticData &data) = 0
Main function to score trajectory.
- Parameters:
data – Critic data to use in scoring
-
virtual void initialize() = 0
Initialize critic.
-
inline std::string getName()
Get name of critic.
Protected Attributes
-
bool enabled_
-
std::string name_
-
std::string parent_name_
-
rclcpp_lifecycle::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")}
-
CriticFunction() = default