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

This is a struct that contains a position defined by a BorderID and a progress on that border. More...

#include <laneposition.h>

Collaboration diagram for adore::env::BorderBased::LanePosition:
Collaboration graph

Public Member Functions

 LanePosition ()
 Construct a new LanePosition object. More...
 
 LanePosition (const BorderID &id, double progress)
 Construct a new LanePosition. More...
 
 LanePosition (const LanePosition &pos)
 Construct a new LanePosition. More...
 
void translate (double dx, double dy, double dz)
 Translate the LanePosition by translating the BorderID. More...
 
void rotate (double angle, double x0=0, double y0=0)
 
bool operator== (const LanePosition &other) const
 Check two LanePositions for equality. More...
 
std::string toString () const
 Extract the information of the LanePosition to a string. More...
 

Public Attributes

BorderID m_rightID
 
double m_progress
 

Detailed Description

This is a struct that contains a position defined by a BorderID and a progress on that border.

Constructor & Destructor Documentation

◆ LanePosition() [1/3]

adore::env::BorderBased::LanePosition::LanePosition ( )
inline

Construct a new LanePosition object.

◆ LanePosition() [2/3]

adore::env::BorderBased::LanePosition::LanePosition ( const BorderID id,
double  progress 
)
inline

Construct a new LanePosition.

Parameters
idBorderID to speify the Position
progressProgress to specify the Position relative to the border

◆ LanePosition() [3/3]

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

Construct a new LanePosition.

Parameters
poscopy this LanePosition

Member Function Documentation

◆ operator==()

bool adore::env::BorderBased::LanePosition::operator== ( const LanePosition other) const
inline

Check two LanePositions for equality.

Parameters
othersecond LanePosition for the comparison
Returns
true if the LanePositions are equal
false if the LanePositions are different

◆ rotate()

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

◆ toString()

std::string adore::env::BorderBased::LanePosition::toString ( ) const
inline

Extract the information of the LanePosition to a string.

Returns
std::string that holds the information
Here is the call graph for this function:

◆ translate()

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

Translate the LanePosition by translating the BorderID.

Parameters
dxmove x-coordinate by this value
dymove y-coordinate by this value
dzmove 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_progress

double adore::env::BorderBased::LanePosition::m_progress

progress

◆ m_rightID

BorderID adore::env::BorderBased::LanePosition::m_rightID

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