ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
trafficobject.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  * Daniel Heß - initial API and implementation
13  ********************************************************************************/
14 
15 
16 #pragma once
17 #include <vector>
18 
19 namespace adore
20 {
21  namespace view
22  {
27  {
28  public:
29  typedef int TTrackingID;
30  typedef long long int TV2XStationID;
31  private:
36  double currentSpeed_;
39  double entranceSpeed_;
40  double entranceTime_;
41  double exitTime_;
42  double exitProgress_;
43  double length_;
44  public:
49  {
50  return trackingID_;
51  }
56  {
57  return v2xStationID_;
58  }
62  double getCurrentProgress()const
63  {
64  return currentProgress_;
65  }
69  double getCurrentSpeed()const
70  {
71  return currentSpeed_;
72  }
76  double getCurrentAcceleration() const
77  {
78  return currentAcceleration_;
79  }
83  double getEntranceProgress()const
84  {
85  return entranceProgress_;
86  }
90  double getEntranceSpeed()const
91  {
92  return entranceSpeed_;
93  }
97  double getEntranceTime()const
98  {
99  return entranceTime_;
100  }
104  double getExitTime()const
105  {
106  return exitTime_;
107  }
111  double getExitProgress()const
112  {
113  return exitProgress_;
114  }
118  double getLength()const
119  {
120  return length_;
121  }
125  double getObservationTime()const
126  {
127  return observationTime_;
128  }
129  public:
131  {
132  trackingID_ = value;
133  }
135  {
136  v2xStationID_ = value;
137  }
138  void setCurrentProgress(double value)
139  {
140  currentProgress_ = value;
141  }
142  void setCurrentSpeed(double value)
143  {
144  currentSpeed_ = value;
145  }
146  void setCurrentAcceleration(double value)
147  {
148  currentAcceleration_ = value;
149  }
150  void setEntranceProgress(double value)
151  {
152  entranceProgress_ = value;
153  }
154  void setEntranceSpeed(double value)
155  {
156  entranceSpeed_ = value;
157  }
158  void setEntranceTime(double value)
159  {
160  entranceTime_ = value;
161  }
162  void setExitTime(double value)
163  {
164  exitTime_ = value;
165  }
166  void setExitProgress(double value)
167  {
168  exitProgress_ = value;
169  }
170  void setLength(double value)
171  {
172  length_ = value;
173  }
174  void setObservationTime(double value)
175  {
176  observationTime_ = value;
177  }
178  };
179 
183  typedef std::vector<TrafficObject> TrafficQueue;
184 
185  }
186 }
std::vector< TrafficObject > TrafficQueue
Definition: trafficobject.h:183
Definition: areaofeffectconverter.h:20
Definition: trafficobject.h:27
TV2XStationID getV2XStationID() const
Definition: trafficobject.h:55
void setCurrentProgress(double value)
Definition: trafficobject.h:138
double exitTime_
Definition: trafficobject.h:41
double getExitProgress() const
Definition: trafficobject.h:111
double length_
Definition: trafficobject.h:43
long long int TV2XStationID
Definition: trafficobject.h:30
double currentSpeed_
Definition: trafficobject.h:36
void setExitProgress(double value)
Definition: trafficobject.h:166
double currentAcceleration_
Definition: trafficobject.h:37
void setCurrentAcceleration(double value)
Definition: trafficobject.h:146
double entranceSpeed_
Definition: trafficobject.h:39
void setExitTime(double value)
Definition: trafficobject.h:162
void setEntranceProgress(double value)
Definition: trafficobject.h:150
double getCurrentSpeed() const
Definition: trafficobject.h:69
void setObservationTime(double value)
Definition: trafficobject.h:174
void setTrackingID(TTrackingID value)
Definition: trafficobject.h:130
TTrackingID getTrackingID() const
Definition: trafficobject.h:48
double getLength() const
Definition: trafficobject.h:118
void setLength(double value)
Definition: trafficobject.h:170
double getExitTime() const
Definition: trafficobject.h:104
TTrackingID trackingID_
Definition: trafficobject.h:32
void setEntranceTime(double value)
Definition: trafficobject.h:158
void setCurrentSpeed(double value)
Definition: trafficobject.h:142
TV2XStationID v2xStationID_
Definition: trafficobject.h:33
double entranceProgress_
Definition: trafficobject.h:38
double getEntranceProgress() const
Definition: trafficobject.h:83
void setV2XStationID(TV2XStationID value)
Definition: trafficobject.h:134
double getCurrentProgress() const
Definition: trafficobject.h:62
double getObservationTime() const
Definition: trafficobject.h:125
double exitProgress_
Definition: trafficobject.h:42
double entranceTime_
Definition: trafficobject.h:40
int TTrackingID
Definition: trafficobject.h:29
double getEntranceSpeed() const
Definition: trafficobject.h:90
double observationTime_
Definition: trafficobject.h:34
void setEntranceSpeed(double value)
Definition: trafficobject.h:154
double getCurrentAcceleration() const
Definition: trafficobject.h:76
double getEntranceTime() const
Definition: trafficobject.h:97
double currentProgress_
Definition: trafficobject.h:35