ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
atrajectory_evaluator.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2017-2020 German Aerospace Center (DLR).
3  * Eclipse ADORe, Automated Driving Open Research https://eclipse.org/adore
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License 2.0 which is available at
7  * http://www.eclipse.org/legal/epl-2.0.
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  * Thomas Lobig - initial API and implementation
13  ********************************************************************************/
14 
15 #pragma once
16 
18 #include <vector>
19 #include <list>
20 
21 namespace adore
22 {
23  namespace fun
24  {
29  using PlanningResultMap = std::unordered_map<int,adore::fun::PlanningResult>;
30 
32  {
33  protected:
34 
35 
36  public:
40  // TODO maybe it's better to leave these pure virtual and set them = 0
41  virtual std::vector<double> evaluateToVector(const PlanningResultMap & planning_results, const std::vector<double> & weights) {return std::vector<double>();};
42  virtual std::vector<double> evaluateToVector(const PlanningResultMap & planning_results) { return std::vector<double>();};
43  virtual int evaluateToBest(const PlanningResultMap & planning_results, const std::vector<double> & weights) {return -1;};
44  virtual int evaluateToBest(const PlanningResultMap & planning_results) {return -1;};
45 
47  {
48 
49  }
50  };
51 
52  }
53 }
Definition: atrajectory_evaluator.h:32
virtual std::vector< double > evaluateToVector(const PlanningResultMap &planning_results)
Definition: atrajectory_evaluator.h:42
virtual int evaluateToBest(const PlanningResultMap &planning_results)
Definition: atrajectory_evaluator.h:44
virtual int evaluateToBest(const PlanningResultMap &planning_results, const std::vector< double > &weights)
Definition: atrajectory_evaluator.h:43
ATrajectoryEvaluator()
Definition: atrajectory_evaluator.h:46
virtual std::vector< double > evaluateToVector(const PlanningResultMap &planning_results, const std::vector< double > &weights)
Definition: atrajectory_evaluator.h:41
std::unordered_map< int, adore::fun::PlanningResult > PlanningResultMap
Definition: atrajectory_evaluator.h:29
Definition: areaofeffectconverter.h:20