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

#include <trafficcontroldevice.h>

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

Public Types

enum  TCDType {
  TRAFFIC_LIGHT = 0 , TRAFFIC_LIGHT_PEDESTRIAN = 1 , RIGHT_OF_WAY = 2 , STOP_SIGN = 3 ,
  SPEED_LIMIT_10 = 4 , SPEED_LIMIT_20 = 5 , SPEED_LIMIT_30 = 6 , SPEED_LIMIT_40 = 7 ,
  SPEED_LIMIT_50 = 8 , SPEED_LIMIT_60 = 9 , SPEED_LIMIT_70 = 10 , SPEED_LIMIT_80 = 11 ,
  SPEED_LIMIT_90 = 12 , SPEED_LIMIT_100 = 13 , SPEED_LIMIT_120 = 14 , SPEED_LIMIT_130 = 15 ,
  SPEED_LIMIT_NON = 16 , CITY_LIMIT_SIGN = 17 , MOTOR_WAY_SIGN = 18 , UNKNOWN = 99
}
 
enum  TCDClass { C_TRAFFIC_LIGHT = 0 , C_PRECEDENCE = 1 , C_SPEED_LIMIT = 2 , C_UNKNOWN = 99 }
 

Public Member Functions

TCDClass getTCDClass ()
 generalization of tcd types More...
 
double getNumericValue1 ()
 Some tcd's have one or more numeric value affixed to them, e.g. speed limits have one. More...
 
 TrafficControlDevice ()
 
 TrafficControlDevice (const TrafficControlDevice &other)
 
void translate (double dx, double dy, double dz)
 
void rotate (double angle, double x0=0, double y0=0)
 
int getID () const
 
void setID (int id)
 
void setType (TCDType type)
 
TCDType getType () const
 
void setOrientation (double orientation)
 
double getOrientation () const
 
void setCoordinate (BorderBased::Coordinate coordinate)
 
BorderBased::Coordinate getCoordinate () const
 

Private Attributes

TCDType type_
 
int id_
 
double orientation_
 
BorderBased::Coordinate coordinate_
 

Member Enumeration Documentation

◆ TCDClass

Enumerator
C_TRAFFIC_LIGHT 
C_PRECEDENCE 
C_SPEED_LIMIT 
C_UNKNOWN 

◆ TCDType

Enumerator
TRAFFIC_LIGHT 
TRAFFIC_LIGHT_PEDESTRIAN 
RIGHT_OF_WAY 
STOP_SIGN 
SPEED_LIMIT_10 
SPEED_LIMIT_20 
SPEED_LIMIT_30 
SPEED_LIMIT_40 
SPEED_LIMIT_50 
SPEED_LIMIT_60 
SPEED_LIMIT_70 
SPEED_LIMIT_80 
SPEED_LIMIT_90 
SPEED_LIMIT_100 
SPEED_LIMIT_120 
SPEED_LIMIT_130 
SPEED_LIMIT_NON 
CITY_LIMIT_SIGN 
MOTOR_WAY_SIGN 
UNKNOWN 

Constructor & Destructor Documentation

◆ TrafficControlDevice() [1/2]

adore::env::TrafficControlDevice::TrafficControlDevice ( )
inline

◆ TrafficControlDevice() [2/2]

adore::env::TrafficControlDevice::TrafficControlDevice ( const TrafficControlDevice other)
inline

Member Function Documentation

◆ getCoordinate()

BorderBased::Coordinate adore::env::TrafficControlDevice::getCoordinate ( ) const
inline
Here is the caller graph for this function:

◆ getID()

int adore::env::TrafficControlDevice::getID ( ) const
inline
Here is the caller graph for this function:

◆ getNumericValue1()

double adore::env::TrafficControlDevice::getNumericValue1 ( )
inline

Some tcd's have one or more numeric value affixed to them, e.g. speed limits have one.

Returns
first numeric value

◆ getOrientation()

double adore::env::TrafficControlDevice::getOrientation ( ) const
inline

◆ getTCDClass()

TCDClass adore::env::TrafficControlDevice::getTCDClass ( )
inline

generalization of tcd types

Returns
enum type value for tcd class: allows to treat similar types of tcds similarly.

◆ getType()

TCDType adore::env::TrafficControlDevice::getType ( ) const
inline
Here is the caller graph for this function:

◆ rotate()

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

◆ setCoordinate()

void adore::env::TrafficControlDevice::setCoordinate ( BorderBased::Coordinate  coordinate)
inline
Here is the caller graph for this function:

◆ setID()

void adore::env::TrafficControlDevice::setID ( int  id)
inline
Here is the caller graph for this function:

◆ setOrientation()

void adore::env::TrafficControlDevice::setOrientation ( double  orientation)
inline
Here is the caller graph for this function:

◆ setType()

void adore::env::TrafficControlDevice::setType ( TCDType  type)
inline
Here is the caller graph for this function:

◆ translate()

void adore::env::TrafficControlDevice::translate ( double  dx,
double  dy,
double  dz 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ coordinate_

BorderBased::Coordinate adore::env::TrafficControlDevice::coordinate_
private

◆ id_

int adore::env::TrafficControlDevice::id_
private

◆ orientation_

double adore::env::TrafficControlDevice::orientation_
private

◆ type_

TCDType adore::env::TrafficControlDevice::type_
private

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