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

The PrecedenceRule defines a precedence relationship between two routes. Vehicles on the low_ priority route have to yield, while vehicles on the high_ priority route may proceed. More...

#include <precedence.h>

Collaboration diagram for adore::env::PrecedenceRule:
Collaboration graph

Public Member Functions

 PrecedenceRule ()
 
void set (const std::string &s, bool coordinates_in_UTM=true)
 reads PrecedenceRule's two PriorityRoutes from the input string exemplary valid string "0.0,3.5,1.7;1.2,6.6,1.7 > 0.45,1.1,1.3;17,18,19": first=high_ exemplary valid string "0.0,3.5,1.7;1.2,6.6,1.7 < 0.45,1.1,1.3;17,18,19": first=low_ exemplary valid string "0.0,3.5,1.7;1.2,6.6,1.7": unary, higher then all crossing More...
 
bool equals (const PrecedenceRule &other) const
 
PriorityRoute::boost_box getBoostBox ()
 

Public Attributes

PriorityRoute low_
 
PriorityRoute high_
 
bool unary_
 

Detailed Description

The PrecedenceRule defines a precedence relationship between two routes. Vehicles on the low_ priority route have to yield, while vehicles on the high_ priority route may proceed.

Constructor & Destructor Documentation

◆ PrecedenceRule()

adore::env::PrecedenceRule::PrecedenceRule ( )
inline

Member Function Documentation

◆ equals()

bool adore::env::PrecedenceRule::equals ( const PrecedenceRule other) const
inline
Here is the call graph for this function:

◆ getBoostBox()

PriorityRoute::boost_box adore::env::PrecedenceRule::getBoostBox ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set()

void adore::env::PrecedenceRule::set ( const std::string &  s,
bool  coordinates_in_UTM = true 
)
inline

reads PrecedenceRule's two PriorityRoutes from the input string exemplary valid string "0.0,3.5,1.7;1.2,6.6,1.7 > 0.45,1.1,1.3;17,18,19": first=high_ exemplary valid string "0.0,3.5,1.7;1.2,6.6,1.7 < 0.45,1.1,1.3;17,18,19": first=low_ exemplary valid string "0.0,3.5,1.7;1.2,6.6,1.7": unary, higher then all crossing

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

Member Data Documentation

◆ high_

PriorityRoute adore::env::PrecedenceRule::high_

route with high priority, does not have to yield to low_

◆ low_

PriorityRoute adore::env::PrecedenceRule::low_

route with low priority, has to yield to high_

◆ unary_

bool adore::env::PrecedenceRule::unary_

route with high priority has precedence over any other route, if unary_ is true. In that case, low_ is not used.


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