21 std::vector<std::pair<carma_planning_msgs::msg::ManeuverPlan, double>>
BeamSearchStrategy::prioritize_plans(std::vector<std::pair<carma_planning_msgs::msg::ManeuverPlan, double>> plans)
const
23 std::sort(plans.begin(),
25 [] (
const std::pair<carma_planning_msgs::msg::ManeuverPlan, double>& a,
const std::pair<carma_planning_msgs::msg::ManeuverPlan, double>& b)
27 return a.second < b.second;
std::vector< std::pair< carma_planning_msgs::msg::ManeuverPlan, double > > prioritize_plans(std::vector< std::pair< carma_planning_msgs::msg::ManeuverPlan, double > > plans) const
Prioritize the plans and eliminate those outside the beam width.