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

input: 2 files, reference lines and borders output: border file More...

#include <r2s2borderbased.h>

Collaboration diagram for adore::if_r2s::R2S2BorderBasedConverter:
Collaboration graph

Public Types

typedef std::map< int, SectionTSectionMap
 
typedef std::map< int, TFunctionTypePairTDist2Function
 

Public Member Functions

 R2S2BorderBasedConverter ()
 
void toBorders (const TReferenceLineVector &reflines, const TLaneBorderVector &laneborders, env::BorderBased::BorderSet &targetset)
 converts sets of ReferenceLine and LaneBorder structs into adore borders More...
 
void convert (std::string referenceLineFile, std::string laneBorderFile, env::BorderBased::BorderSet &targetset)
 convert to borders More...
 
void convert (std::string referenceLineFile, std::string laneBorderFile, env::BorderBased::BorderSet &targetset, TSectionMap &sectionmap)
 convert to borders and get sectionmap with base data More...
 
void cleanup (TSectionMap &sectionmap)
 cleanup leftover functions in sectionmap More...
 
void setExtractOnlyReferenceLines (bool b)
 set option to only convert reference lines and ignore laneborders More...
 

Private Member Functions

void group (TReferenceLineVector rlm, TLaneBorderVector lbv, TSectionMap &sectionmap)
 
void convertToBorder (TSectionMap sectionmap, env::BorderBased::BorderSet &targetset)
 manage overall conversion process from sectionmap to borderset More...
 
env::BorderBased::BorderType::TYPE convertLaneBorderType (LaneBorder::TYPE type)
 converts from LaneBorder::TYPE to BorderType::TYPE More...
 
void sortFunctionsByDistance (std::vector< TFunctionTypePair > &functions, TDist2Function &dist2function, double s0, double s1)
 sort borders by their distance to base function which is required to be available through dist2function.at(0) More...
 
void createBorders (TDist2Function &dist2function, double s0, double s1, int max_points, adore::env::BorderBased::BorderSet &targetSet, bool inverted)
 borders for functions in dist2function from s0 to s1 More...
 
void do_convert (std::string referenceLineFile, std::string laneBorderFile, env::BorderBased::BorderSet &targetset, TSectionMap &sectionmap)
 actual conversion More...
 

Private Attributes

bool extractOnlyReferenceLines_
 

Detailed Description

input: 2 files, reference lines and borders output: border file

Member Typedef Documentation

◆ TDist2Function

◆ TSectionMap

Constructor & Destructor Documentation

◆ R2S2BorderBasedConverter()

adore::if_r2s::R2S2BorderBasedConverter::R2S2BorderBasedConverter ( )

Member Function Documentation

◆ cleanup()

void adore::if_r2s::R2S2BorderBasedConverter::cleanup ( TSectionMap sectionmap)

cleanup leftover functions in sectionmap

Parameters
sectionmap
Here is the caller graph for this function:

◆ convert() [1/2]

void adore::if_r2s::R2S2BorderBasedConverter::convert ( std::string  referenceLineFile,
std::string  laneBorderFile,
env::BorderBased::BorderSet targetset 
)

convert to borders

Parameters
referenceLineFile
laneBorderFile
targetset
Here is the call graph for this function:
Here is the caller graph for this function:

◆ convert() [2/2]

void adore::if_r2s::R2S2BorderBasedConverter::convert ( std::string  referenceLineFile,
std::string  laneBorderFile,
env::BorderBased::BorderSet targetset,
TSectionMap sectionmap 
)

convert to borders and get sectionmap with base data

Parameters
referenceLineFile
laneBorderFile
targetset
sectionmap
Here is the call graph for this function:

◆ convertLaneBorderType()

env::BorderBased::BorderType::TYPE adore::if_r2s::R2S2BorderBasedConverter::convertLaneBorderType ( LaneBorder::TYPE  type)
private

converts from LaneBorder::TYPE to BorderType::TYPE

Parameters
type
Returns
env::BorderBased::BorderType::TYPE
Here is the caller graph for this function:

◆ convertToBorder()

void adore::if_r2s::R2S2BorderBasedConverter::convertToBorder ( TSectionMap  sectionmap,
env::BorderBased::BorderSet targetset 
)
private

manage overall conversion process from sectionmap to borderset

Parameters
sectionmap
targetset
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createBorders()

void adore::if_r2s::R2S2BorderBasedConverter::createBorders ( TDist2Function dist2function,
double  s0,
double  s1,
int  max_points,
adore::env::BorderBased::BorderSet targetSet,
bool  inverted = false 
)
private

borders for functions in dist2function from s0 to s1

Parameters
dist2function
s0
s1
max_points
targetSet
inverted
Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_convert()

void adore::if_r2s::R2S2BorderBasedConverter::do_convert ( std::string  referenceLineFile,
std::string  laneBorderFile,
env::BorderBased::BorderSet targetset,
TSectionMap sectionmap 
)
private

actual conversion

Parameters
referenceLineFile
laneBorderFile
targetset
sectionmap
Here is the call graph for this function:
Here is the caller graph for this function:

◆ group()

void adore::if_r2s::R2S2BorderBasedConverter::group ( TReferenceLineVector  rlm,
TLaneBorderVector  lbv,
TSectionMap sectionmap 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setExtractOnlyReferenceLines()

void adore::if_r2s::R2S2BorderBasedConverter::setExtractOnlyReferenceLines ( bool  b)

set option to only convert reference lines and ignore laneborders

Parameters
b

◆ sortFunctionsByDistance()

void adore::if_r2s::R2S2BorderBasedConverter::sortFunctionsByDistance ( std::vector< TFunctionTypePair > &  functions,
TDist2Function dist2function,
double  s0,
double  s1 
)
private

sort borders by their distance to base function which is required to be available through dist2function.at(0)

Parameters
functions
dist2function
s0
s1
Here is the caller graph for this function:

◆ toBorders()

void adore::if_r2s::R2S2BorderBasedConverter::toBorders ( const TReferenceLineVector reflines,
const TLaneBorderVector laneborders,
env::BorderBased::BorderSet targetset 
)

converts sets of ReferenceLine and LaneBorder structs into adore borders

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

Member Data Documentation

◆ extractOnlyReferenceLines_

bool adore::if_r2s::R2S2BorderBasedConverter::extractOnlyReferenceLines_
private

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