ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
cooperativeusersprediction.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  * Reza Dariani- initial API and implementation
13  ********************************************************************************/
14 #pragma once
15 #include <vector>
16 //
17 
18 namespace adore
19 {
20  namespace env
21  {
22 
24  {
25  public:
26 
27  int id;
28  double toletated_distance_behind; //MCM based
29  double toletated_distance_ahead; //MCM based
30  unsigned int target_automation_level; //MCM based
31  int lane_position; //MCM based
32  double vehicleLength; //MCM based
33  double vehicleWidth; //MCM based
35  struct
36  {
37  std::vector<double> x; //MCM based
38  std::vector<double> y; //MCM based
39  std::vector<double> v; //MCM based
40  std::vector<double> t0; //MCM based
41  std::vector<double> t1; //MCM based
42  std::vector<double> psi; //MCM based
43  std::vector<double> a;
45  void setId(int id) {this->id = id;}
46  void setLanePosition( int lane_position) {this->lane_position = lane_position;}
47  void setTargetAutomationLevel(unsigned int target_automation_level) {this->target_automation_level = target_automation_level;}
48  void setToletatedDistanceBehind(double toletated_distance_behind) {this->toletated_distance_behind = toletated_distance_behind;}
49  void setToletatedDistanceAhead(double toletated_distance_ahead) {this->toletated_distance_ahead = toletated_distance_ahead;}
50  void setVehicleLength(double vehicleLength) {this->vehicleLength = vehicleLength;}
51  void setVehicleWidth(double vehicleWidth) {this->vehicleWidth = vehicleWidth;}
52  void clear()
53  {
54  currentTrajectory.x.clear();
55  currentTrajectory.y.clear();
56  currentTrajectory.v.clear();
57  currentTrajectory.t0.clear();
58  currentTrajectory.t1.clear();
59  currentTrajectory.a.clear();
60  currentTrajectory.psi.clear();
61 
62  }
63 
64 
65 
66 
67 
68 
69  };
70  typedef std::vector<CooperativeUserPrediction> CooperativeUsersList;
71 
72 
73 
74 
75  }
76 }
std::vector< CooperativeUserPrediction > CooperativeUsersList
Definition: cooperativeusersprediction.h:70
Definition: areaofeffectconverter.h:20
Definition: cooperativeusersprediction.h:24
std::vector< double > v
Definition: cooperativeusersprediction.h:39
std::vector< double > a
Definition: cooperativeusersprediction.h:43
struct adore::env::CooperativeUserPrediction::@0 currentTrajectory
void setTargetAutomationLevel(unsigned int target_automation_level)
Definition: cooperativeusersprediction.h:47
void setLanePosition(int lane_position)
Definition: cooperativeusersprediction.h:46
void setVehicleWidth(double vehicleWidth)
Definition: cooperativeusersprediction.h:51
int lane_position
Definition: cooperativeusersprediction.h:31
std::vector< double > psi
Definition: cooperativeusersprediction.h:42
double toletated_distance_behind
Definition: cooperativeusersprediction.h:28
double vehicleLength
Definition: cooperativeusersprediction.h:32
std::vector< double > t1
Definition: cooperativeusersprediction.h:41
unsigned int target_automation_level
Definition: cooperativeusersprediction.h:30
int id
Definition: cooperativeusersprediction.h:27
double toletated_distance_ahead
Definition: cooperativeusersprediction.h:29
double vehicleWidth
Definition: cooperativeusersprediction.h:33
void clear()
Definition: cooperativeusersprediction.h:52
void setId(int id)
Definition: cooperativeusersprediction.h:45
void setToletatedDistanceBehind(double toletated_distance_behind)
Definition: cooperativeusersprediction.h:48
void setToletatedDistanceAhead(double toletated_distance_ahead)
Definition: cooperativeusersprediction.h:49
double communicationDelay
Definition: cooperativeusersprediction.h:34
std::vector< double > t0
Definition: cooperativeusersprediction.h:40
void setVehicleLength(double vehicleLength)
Definition: cooperativeusersprediction.h:50
std::vector< double > x
Definition: cooperativeusersprediction.h:37
std::vector< double > y
Definition: cooperativeusersprediction.h:38