38 const std::string target_field =
"MinimumNavigationCostOnLane";
41 for (
auto [
id, plan] : planning_results)
45 double plan_cost = plan.objective_values[target_field];
46 if (plan_cost < best_cost)
49 best_cost = plan_cost;
52 catch(
const std::exception& e)
54 std::cerr << e.what() <<
"PlanningResult without value for "<<target_field<<
" \n";
Definition: atrajectory_evaluator.h:32
Definition: evaluator_nav_cost.h:27
int evaluateToBest(const PlanningResultMap &planning_results) override
Definition: evaluator_nav_cost.h:36
EvaluatorNavCost()
Definition: evaluator_nav_cost.h:62
double const MAX_NAV_COST
Definition: evaluator_nav_cost.h:30
std::unordered_map< int, adore::fun::PlanningResult > PlanningResultMap
Definition: atrajectory_evaluator.h:29
Definition: areaofeffectconverter.h:20