ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
agap.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 #pragma once
15 
16 namespace adore
17 {
18 namespace view
19 {
20 
24 class AGap
25 {
26 public:
27  enum EGapState
28  {
30  OPEN,
31  CLOSED
32  };
38  virtual EGapState getState(double s, double t) =0;
39 
46  virtual double getLeadProgress(double t, double guard) =0;
47 
54  virtual double getChaseProgress(double t, double guard) =0;
55 
56 };
57 
58 }
59 }
defines a gap in traffic, into which a merge may be planned
Definition: agap.h:25
virtual double getLeadProgress(double t, double guard)=0
get a prediction of the lead progress at a certain time Lead vehicle is leading the gap....
EGapState
Definition: agap.h:28
@ OPEN
Definition: agap.h:30
@ CLOSED
Definition: agap.h:31
@ OPENING
Definition: agap.h:29
virtual EGapState getState(double s, double t)=0
get the state of the gap at a certain time, depending on ego position
virtual double getChaseProgress(double t, double guard)=0
get a prediction of the chase progress at a certain time Chase vehicle is chasing the gap....
Definition: areaofeffectconverter.h:20