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

directed borders, ordered from center line to outer border More...

#include <r2sauxiliary.h>

Collaboration diagram for adore::if_r2s::Section:
Collaboration graph

Classes

class  FunctionMap
 storage class to access different functions by their domain intervals More...
 

Public Member Functions

 Section ()
 
void setReferenceLine (ReferenceLine rl)
 setter More...
 
void addLaneBorder (LaneBorder lb)
 add lane border to section, determine its valid range More...
 
std::set< double > getIntervals ()
 getter More...
 
std::vector< TFunctionTypePairgetRightFunctionsAtParameter (double x)
 get functions that are valid at given parameter More...
 
std::vector< TFunctionTypePairgetLeftFunctionsAtParameter (double x)
 get functions that are valid at given parameter More...
 
TGeometryFunctiongetReferenceLineFunction ()
 getter More...
 
void cleanup ()
 delete objects in pointers More...
 
void mend ()
 try to repair mistakes that occured during function generation More...
 
FunctionMap getFunctionMapRight ()
 getter More...
 
FunctionMap getFunctionMapLeft ()
 getter More...
 
bool isOneway ()
 
 ~Section ()
 

Private Member Functions

TGeometryFunctiongeometry2function (TR2SGeometry geometry)
 easy conversion from a coordinate vector to a LLinearPiecewiseFunction More...
 

Private Attributes

FunctionMap functionMapRight_
 storage for functions in the same directions as the reference line More...
 
FunctionMap functionMapLeft_
 storage for functions originally in the opposite direction as the reference line, stored in functions in the same direction as reference line More...
 
bool oneway_
 
TGeometryFunctionreferenceLine_
 
std::set< double > intervals_
 

Detailed Description

directed borders, ordered from center line to outer border

Constructor & Destructor Documentation

◆ Section()

adore::if_r2s::Section::Section ( )
inline

◆ ~Section()

adore::if_r2s::Section::~Section ( )
inline

Member Function Documentation

◆ addLaneBorder()

void adore::if_r2s::Section::addLaneBorder ( LaneBorder  lb)
inline

add lane border to section, determine its valid range

Parameters
lb
Here is the call graph for this function:

◆ cleanup()

void adore::if_r2s::Section::cleanup ( )
inline

delete objects in pointers

Here is the call graph for this function:

◆ geometry2function()

TGeometryFunction* adore::if_r2s::Section::geometry2function ( TR2SGeometry  geometry)
inlineprivate

easy conversion from a coordinate vector to a LLinearPiecewiseFunction

Parameters
geometry
Returns
TGeometryFunction*
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFunctionMapLeft()

FunctionMap adore::if_r2s::Section::getFunctionMapLeft ( )
inline

getter

Returns
FunctionMap

◆ getFunctionMapRight()

FunctionMap adore::if_r2s::Section::getFunctionMapRight ( )
inline

getter

Returns
FunctionMap

◆ getIntervals()

std::set<double> adore::if_r2s::Section::getIntervals ( )
inline

getter

Returns
std::set<double>

◆ getLeftFunctionsAtParameter()

std::vector<TFunctionTypePair> adore::if_r2s::Section::getLeftFunctionsAtParameter ( double  x)
inline

get functions that are valid at given parameter

Parameters
x
Returns
std::vector<TFunctionTypePair>
Here is the call graph for this function:

◆ getReferenceLineFunction()

TGeometryFunction* adore::if_r2s::Section::getReferenceLineFunction ( )
inline

getter

Returns
TGeometryFunction*

◆ getRightFunctionsAtParameter()

std::vector<TFunctionTypePair> adore::if_r2s::Section::getRightFunctionsAtParameter ( double  x)
inline

get functions that are valid at given parameter

Parameters
x
Returns
std::vector<TFunctionTypePair>
Here is the call graph for this function:

◆ isOneway()

bool adore::if_r2s::Section::isOneway ( )
inline

◆ mend()

void adore::if_r2s::Section::mend ( )
inline

try to repair mistakes that occured during function generation

Here is the call graph for this function:

◆ setReferenceLine()

void adore::if_r2s::Section::setReferenceLine ( ReferenceLine  rl)
inline

setter

Parameters
rl
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ functionMapLeft_

FunctionMap adore::if_r2s::Section::functionMapLeft_
private

storage for functions originally in the opposite direction as the reference line, stored in functions in the same direction as reference line

◆ functionMapRight_

FunctionMap adore::if_r2s::Section::functionMapRight_
private

storage for functions in the same directions as the reference line

◆ intervals_

std::set<double> adore::if_r2s::Section::intervals_
private

◆ oneway_

bool adore::if_r2s::Section::oneway_
private

◆ referenceLine_

TGeometryFunction* adore::if_r2s::Section::referenceLine_
private

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