#include <trafficlight.h>
Public Member Functions | |
TrafficLightStatus (TrafficLightColor currentcolor=TrafficLightColor::UNDEFINED_COLOR, long validUntilTimestamp=0) | |
TrafficLightColor | getCurrentColor () const |
void | setCurrentColor (TrafficLightColor color) |
void | setValidUntilTimestamp (long timestamp) |
long | getValidUntilTimestamp () const |
std::string | toString () |
Static Public Member Functions | |
static void | GenerateSpeedAdvisories (adore::env::TrafficLightStatus &state, float speedLimit=10.0f) |
Public Attributes | |
std::map< float, float > | distanceSpeedTuples |
Private Attributes | |
TrafficLightColor | m_currentColor |
long | m_validUntilTimestamp |
holds traffic light state and validity timestamp
|
inline |
|
inlinestatic |
generates speedadvisories based on the durations defined in the TrafficLight exception: 50 m/s is defined as the velocity value that shall inform the driver that there is no possibility to reach the traffic light while tl is in green state.
tl | reference to the traffic light that shall hold the speed advisories |
speedLimit | preference for vmax - default is 10 m/s |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::map<float,float> adore::env::TrafficLightStatus::distanceSpeedTuples |
|
private |
|
private |