ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
vehicleextendedstate.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 #pragma once
16 
17 namespace adore
18 {
19  namespace fun
20  {
26  {
27  public:
28  enum GearState
29  {
31  };
32  private:
40  public:
42  {
43  gearState_ = Drive;
44  indicatorLeftOn_=false;
45  indicatorRightOn_=false;
49  checkpointClearance_ = false;
50  }
52  return this->gearState_;
53  }
54  void setGearState(GearState gearState) {
55  this->gearState_ = gearState;
56  }
57 
58 
59  bool getIndicatorLeftOn() const{
60  return this->indicatorLeftOn_;
61  }
62  void setIndicatorLeftOn(bool indicatorLeftOn) {
63  this->indicatorLeftOn_ = indicatorLeftOn;
64  }
65 
66 
67  bool getIndicatorRightOn() const{
68  return this->indicatorRightOn_;
69  }
70  void setIndicatorRightOn(bool indicatorRightOn) {
71  this->indicatorRightOn_ = indicatorRightOn;
72  }
73 
74 
77  }
78  void setAutomaticControlAccelerationOn(bool automaticControlAccelerationOn) {
79  this->automaticControlAccelerationOn_ = automaticControlAccelerationOn;
80  }
81 
82 
85  }
86  void setAutomaticControlAccelerationActive(bool automaticControlAccelerationActive) {
87  this->automaticControlAccelerationActive_ = automaticControlAccelerationActive;
88  }
89 
90 
92  return this->automaticControlSteeringOn_;
93  }
94  void setAutomaticControlSteeringOn(bool automaticControlSteeringOn) {
95  this->automaticControlSteeringOn_ = automaticControlSteeringOn;
96  }
97 
98  bool getAutomaticControlOn() const
99  {
101  }
102 
104  return this->checkpointClearance_;
105  }
106  void setCheckpointClearance(bool checkpointClearance) {
107  this->checkpointClearance_ = checkpointClearance;
108  }
109 
110  };
111  }
112 }
Definition: vehicleextendedstate.h:26
bool getIndicatorLeftOn() const
Definition: vehicleextendedstate.h:59
bool getAutomaticControlAccelerationOn() const
Definition: vehicleextendedstate.h:75
void setGearState(GearState gearState)
Definition: vehicleextendedstate.h:54
bool automaticControlAccelerationActive_
Definition: vehicleextendedstate.h:37
void setCheckpointClearance(bool checkpointClearance)
Definition: vehicleextendedstate.h:106
void setAutomaticControlAccelerationActive(bool automaticControlAccelerationActive)
Definition: vehicleextendedstate.h:86
bool checkpointClearance_
Definition: vehicleextendedstate.h:39
GearState
Definition: vehicleextendedstate.h:29
@ Drive
Definition: vehicleextendedstate.h:30
@ Park
Definition: vehicleextendedstate.h:30
@ Neutral
Definition: vehicleextendedstate.h:30
@ Reverse
Definition: vehicleextendedstate.h:30
bool getCheckpointClearance() const
Definition: vehicleextendedstate.h:103
bool indicatorRightOn_
Definition: vehicleextendedstate.h:35
GearState gearState_
Definition: vehicleextendedstate.h:33
bool automaticControlSteeringOn_
Definition: vehicleextendedstate.h:38
bool getAutomaticControlOn() const
Definition: vehicleextendedstate.h:98
VehicleExtendedState()
Definition: vehicleextendedstate.h:41
void setIndicatorRightOn(bool indicatorRightOn)
Definition: vehicleextendedstate.h:70
bool indicatorLeftOn_
Definition: vehicleextendedstate.h:34
void setAutomaticControlAccelerationOn(bool automaticControlAccelerationOn)
Definition: vehicleextendedstate.h:78
void setIndicatorLeftOn(bool indicatorLeftOn)
Definition: vehicleextendedstate.h:62
void setAutomaticControlSteeringOn(bool automaticControlSteeringOn)
Definition: vehicleextendedstate.h:94
bool automaticControlAccelerationOn_
Definition: vehicleextendedstate.h:36
bool getAutomaticControlSteeringOn() const
Definition: vehicleextendedstate.h:91
bool getAutomaticControlAccelerationActive() const
Definition: vehicleextendedstate.h:83
GearState getGearState() const
Definition: vehicleextendedstate.h:51
bool getIndicatorRightOn() const
Definition: vehicleextendedstate.h:67
Definition: areaofeffectconverter.h:20