ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
emptygap.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 #include <adore/view/agap.h>
16 
17 namespace adore
18 {
19 namespace env
20 {
25 {
26 public:
27  virtual adore::view::AGap::EGapState getState(double s, double t) override
28  {
30  }
31  virtual double getLeadProgress(double t, double guard) override
32  {
33  return guard;
34  }
35  virtual double getChaseProgress(double t, double guard) override
36  {
37  return guard;
38  }
39 };
40 }
41 }
defines a gap for testing purposes, which never has lead or chase vehicles.
Definition: emptygap.h:25
virtual adore::view::AGap::EGapState getState(double s, double t) override
get the state of the gap at a certain time, depending on ego position
Definition: emptygap.h:27
virtual double getLeadProgress(double t, double guard) override
get a prediction of the lead progress at a certain time Lead vehicle is leading the gap....
Definition: emptygap.h:31
virtual double getChaseProgress(double t, double guard) override
get a prediction of the chase progress at a certain time Chase vehicle is chasing the gap....
Definition: emptygap.h:35
defines a gap in traffic, into which a merge may be planned
Definition: agap.h:25
EGapState
Definition: agap.h:28
@ OPEN
Definition: agap.h:30
Definition: areaofeffectconverter.h:20