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

#include <controlledconnection.h>

Inheritance diagram for adore::env::ControlledConnectionSet:
Inheritance graph
Collaboration diagram for adore::env::ControlledConnectionSet:
Collaboration graph

Classes

struct  BoxGen
 
struct  Comparator
 

Public Types

typedef LocalBoxSet< ControlledConnection, BoxGen, ComparatorTLocalBoxSet
 
typedef adore::mad::AFeed< ControlledConnectionTConFeed
 

Public Member Functions

 ControlledConnectionSet (TConFeed *connection_feed, TConFeed *checkpoint_feed=nullptr)
 Constructor for ControlledConnectionSet stores pointer to update feeds. More...
 
 ~ControlledConnectionSet ()
 
virtual void update (double radius, double X, double Y)
 
TLocalBoxSet::itpair getConnectionsInRegion (double x0, double y0, double x1, double y1)
 
int size () const
 
TLocalBoxSet::itpair getAllConnections ()
 

Private Attributes

std::vector< TConFeed * > feeds_
 
TLocalBoxSet data_
 
double max_value_
 

Detailed Description

A set of ControlledConnection, maintained in an R-Tree for spatial access

Member Typedef Documentation

◆ TConFeed

◆ TLocalBoxSet

Constructor & Destructor Documentation

◆ ControlledConnectionSet()

adore::env::ControlledConnectionSet::ControlledConnectionSet ( TConFeed connection_feed,
TConFeed checkpoint_feed = nullptr 
)
inline

Constructor for ControlledConnectionSet stores pointer to update feeds.

Parameters
connection_feedrequired, traffic light information updates
checkpoint_feedoptional, connect to internal checkpoint updates: Use checkpoints only if required. For example a traffic prediction module must not connect to vehicle internal checkpoints.

◆ ~ControlledConnectionSet()

adore::env::ControlledConnectionSet::~ControlledConnectionSet ( )
inline

Member Function Documentation

◆ getAllConnections()

TLocalBoxSet::itpair adore::env::ControlledConnectionSet::getAllConnections ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getConnectionsInRegion()

TLocalBoxSet::itpair adore::env::ControlledConnectionSet::getConnectionsInRegion ( double  x0,
double  y0,
double  x1,
double  y1 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

int adore::env::ControlledConnectionSet::size ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

virtual void adore::env::ControlledConnectionSet::update ( double  radius,
double  X,
double  Y 
)
inlinevirtual

Update method accesses the controlled connection feed (trafficlight)
to maintain a set of information about controlled connections in the vicinity of the vehicle. Information for connections with distance bigger than radius to (X,Y) is discarded.

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

Member Data Documentation

◆ data_

TLocalBoxSet adore::env::ControlledConnectionSet::data_
private

◆ feeds_

std::vector<TConFeed*> adore::env::ControlledConnectionSet::feeds_
private

◆ max_value_

double adore::env::ControlledConnectionSet::max_value_
private

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