Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
|
Generic interface representing a means of computing cost for plans in the search graph. More...
#include <cost_function.hpp>
Public Member Functions | |
virtual double | compute_total_cost (const carma_planning_msgs::msg::ManeuverPlan &plan)=0 |
Compute the cost of a given maneuver plan. More... | |
virtual double | compute_cost_per_unit_distance (const carma_planning_msgs::msg::ManeuverPlan &plan)=0 |
Compute the unit cost over distance of a given maneuver plan. More... | |
virtual | ~CostFunction () |
Virtual destructor provided for memory safety. More... | |
Generic interface representing a means of computing cost for plans in the search graph.
Definition at line 29 of file cost_function.hpp.
|
inlinevirtual |
Virtual destructor provided for memory safety.
Definition at line 49 of file cost_function.hpp.
|
pure virtual |
Compute the unit cost over distance of a given maneuver plan.
plan | The plan to evaluate |
Implemented in arbitrator::CostSystemCostFunction, and arbitrator::FixedPriorityCostFunction.
|
pure virtual |
Compute the cost of a given maneuver plan.
plan | The plan to evaluate |
Implemented in arbitrator::CostSystemCostFunction, and arbitrator::FixedPriorityCostFunction.