17#ifndef __ARBITRATOR_INCLUDE_COST_SYSTEM_COST_FUNCTION_HPP__
18#define __ARBITRATOR_INCLUDE_COST_SYSTEM_COST_FUNCTION_HPP__
20#include <rclcpp/rclcpp.hpp>
23#include <carma_ros2_utils/carma_lifecycle_node.hpp>
52 void init(std::shared_ptr<carma_ros2_utils::CarmaLifecycleNode> nh);
71 carma_ros2_utils::ClientPtr<carma_planning_msgs::srv::ComputePlanCost>
cost_system_sc_;
Generic interface representing a means of computing cost for plans in the search graph.
Implementation of the CostFunction interface.
void init(std::shared_ptr< carma_ros2_utils::CarmaLifecycleNode > nh)
CostSystemCostFunction()
Constructor for FixedPriorityCostFunction.
carma_ros2_utils::ClientPtr< carma_planning_msgs::srv::ComputePlanCost > cost_system_sc_
double compute_cost_per_unit_distance(const carma_planning_msgs::msg::ManeuverPlan &plan)
Compute the unit cost over distance of a given maneuver plan.
double compute_total_cost(const carma_planning_msgs::msg::ManeuverPlan &plan)
Compute the unit cost over distance of a given maneuver plan.