ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
activationstateobserver.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2017-2021 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 #pragma once
15 #include <adore/fun/afactory.h>
16 
17 namespace adore
18 {
19 namespace fun
20 {
22  {
23  private:
25  public:
27  {
28  vehicle_extended_state_reader_ = FunFactoryInstance::get()->getVehicleExtendedStateReader();
29  }
31  {
33  }
35  {
37  {
38  return false;
39  }
42  return xx.getAutomaticControlOn() //< Freigabe im Fahrzeuginterface für Längs und Quer erhalten
43  && xx.getAutomaticControlAccelerationActive();// Bestätigung der Freigabe durch Benutzer/Gaspedal erfolgt
44  }
45 
46  };
47 }
48 }
Definition: activationstateobserver.h:22
AFactory::TVehicleExtendedStateReader * vehicle_extended_state_reader_
Definition: activationstateobserver.h:24
~ActivationStateObserver()
Definition: activationstateobserver.h:30
bool isAutomaticControlEnabled()
Definition: activationstateobserver.h:34
ActivationStateObserver()
Definition: activationstateobserver.h:26
static adore::fun::AFactory * get()
Definition: afactory.h:170
Definition: vehicleextendedstate.h:26
bool getAutomaticControlOn() const
Definition: vehicleextendedstate.h:98
bool getAutomaticControlAccelerationActive() const
Definition: vehicleextendedstate.h:83
Definition: com_patterns.h:68
virtual void getData(T &value)=0
virtual bool hasData() const =0
Definition: areaofeffectconverter.h:20