ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::env::BorderBased::StopLine Class Reference

This class provide information about stoplines. More...

#include <stopline.h>

Inheritance diagram for adore::env::BorderBased::StopLine:
Inheritance graph
Collaboration diagram for adore::env::BorderBased::StopLine:
Collaboration graph

Public Types

enum  State { UNKNOWN = 0 , STOP = 1 , CONFLICT = 2 , GO = 3 }
 the enum State holds the different possible states of a stopline More...
 

Public Member Functions

 StopLine ()
 Construct a new StopLine object. More...
 
 StopLine (const StopLine &other)
 Construct a new StopLine object. More...
 
 StopLine (const LanePosition &pos)
 Construct a new StopLine object. More...
 
 StopLine (const LanePosition &pos, State state, double tswitch=1.0e6)
 Construct a new StopLine object. More...
 
virtual const LanePositiongetLanePosition ()
 Get the LanePosition. More...
 
void translate (double dx, double dy, double dz)
 Translate the stop line. More...
 
void rotate (double angle, double x0=0, double y0=0)
 
double getSwitchingTime ()
 Get the switching time. More...
 
void setSwitchingTime (double t)
 Set the switching time. More...
 
- Public Member Functions inherited from adore::env::BorderBased::ALanePositionedObject
virtual ~ALanePositionedObject ()
 Destroy the ALanePositionedObject. More...
 

Public Attributes

enum adore::env::BorderBased::StopLine::State m_state
 
std::map< float, float > m_speedAdvisories
 
double m_tswitch
 
LanePosition m_position
 
int m_signalGroupID
 

Detailed Description

This class provide information about stoplines.

Member Enumeration Documentation

◆ State

the enum State holds the different possible states of a stopline

Enumerator
UNKNOWN 
STOP 
CONFLICT 
GO 

Constructor & Destructor Documentation

◆ StopLine() [1/4]

adore::env::BorderBased::StopLine::StopLine ( )
inline

Construct a new StopLine object.

◆ StopLine() [2/4]

adore::env::BorderBased::StopLine::StopLine ( const StopLine other)
inline

Construct a new StopLine object.

Parameters
othercopy that stopline

◆ StopLine() [3/4]

adore::env::BorderBased::StopLine::StopLine ( const LanePosition pos)
inline

Construct a new StopLine object.

Parameters
posLanePosition of the new stopline

◆ StopLine() [4/4]

adore::env::BorderBased::StopLine::StopLine ( const LanePosition pos,
State  state,
double  tswitch = 1.0e6 
)
inline

Construct a new StopLine object.

Parameters
posLanePosition of the new stopline
statestate of the new stopline
tswitchtime to state switch

Member Function Documentation

◆ getLanePosition()

virtual const LanePosition& adore::env::BorderBased::StopLine::getLanePosition ( )
inlinevirtual

Get the LanePosition.

Returns
const LanePosition& position of the stopline

Implements adore::env::BorderBased::ALanePositionedObject.

◆ getSwitchingTime()

double adore::env::BorderBased::StopLine::getSwitchingTime ( )
inline

Get the switching time.

Returns
double time when the next time switch occurs

◆ rotate()

void adore::env::BorderBased::StopLine::rotate ( double  angle,
double  x0 = 0,
double  y0 = 0 
)
inline
Here is the call graph for this function:

◆ setSwitchingTime()

void adore::env::BorderBased::StopLine::setSwitchingTime ( double  t)
inline

Set the switching time.

Parameters
ttime when the next state switch occurs

◆ translate()

void adore::env::BorderBased::StopLine::translate ( double  dx,
double  dy,
double  dz 
)
inline

Translate the stop line.

Parameters
dxmove the x-coordinate by this value
dymove the y-coordinate by this value
dzmove the z-coordinate by this value
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_position

LanePosition adore::env::BorderBased::StopLine::m_position

LanePosition of the stopline

◆ m_signalGroupID

int adore::env::BorderBased::StopLine::m_signalGroupID

◆ m_speedAdvisories

std::map<float,float> adore::env::BorderBased::StopLine::m_speedAdvisories

advised speed

◆ m_state

enum adore::env::BorderBased::StopLine::State adore::env::BorderBased::StopLine::m_state

◆ m_tswitch

double adore::env::BorderBased::StopLine::m_tswitch

time to next state change


The documentation for this class was generated from the following file: