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

#include <turn_signal_observer.h>

Collaboration diagram for adore::fun::TurnSignalObserver:
Collaboration graph

Public Member Functions

 TurnSignalObserver ()
 
 ~TurnSignalObserver ()
 
void update (double t)
 
bool rightIndicatorTurnedOnWithinLastSecond (double current_time, double max_delay=1.0)
 
bool rightIndicatorTurnedOnManuallyWithinLastSecond (double current_time, double max_delay=1.0)
 
bool leftIndicatorTurnedOnManuallyWithinLastSecond (double current_time, double max_delay=1.0)
 
bool leftIndicatorTurnedOnWithinLastSecond (double current_time, double max_delay=1.0)
 
bool bothIndicatorsOn (double t=-1.0) const
 
bool newRightIndicatorOnEvent ()
 
bool newLeftIndicatorOnEvent ()
 
bool newManualLeftIndicatorOnEvent ()
 
bool newManualRightIndicatorOnEvent ()
 

Private Attributes

bool right_indicator_
 
bool left_indicator_
 
double last_change_left_indicator_
 
double last_change_right_indicator_
 
bool turned_on_manually_left_
 
bool turned_on_manually_right_
 
bool right_state_provided_
 
bool left_state_provided_
 
double turned_on_automatically_left_
 
double turned_on_automatically_right_
 
double max_powerup_delay_
 
double t0_
 
adore::fun::VehicleExtendedState extended_state_
 
adore::fun::AFactory::TVehicleExtendedStateReaderextended_state_reader_
 
AFactory::TIndicatorCommandReaderindicator_command_reader_
 

Constructor & Destructor Documentation

◆ TurnSignalObserver()

adore::fun::TurnSignalObserver::TurnSignalObserver ( )
inline
Here is the call graph for this function:

◆ ~TurnSignalObserver()

adore::fun::TurnSignalObserver::~TurnSignalObserver ( )
inline

Member Function Documentation

◆ bothIndicatorsOn()

bool adore::fun::TurnSignalObserver::bothIndicatorsOn ( double  t = -1.0) const
inline
Here is the caller graph for this function:

◆ leftIndicatorTurnedOnManuallyWithinLastSecond()

bool adore::fun::TurnSignalObserver::leftIndicatorTurnedOnManuallyWithinLastSecond ( double  current_time,
double  max_delay = 1.0 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ leftIndicatorTurnedOnWithinLastSecond()

bool adore::fun::TurnSignalObserver::leftIndicatorTurnedOnWithinLastSecond ( double  current_time,
double  max_delay = 1.0 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ newLeftIndicatorOnEvent()

bool adore::fun::TurnSignalObserver::newLeftIndicatorOnEvent ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ newManualLeftIndicatorOnEvent()

bool adore::fun::TurnSignalObserver::newManualLeftIndicatorOnEvent ( )
inline
Here is the call graph for this function:

◆ newManualRightIndicatorOnEvent()

bool adore::fun::TurnSignalObserver::newManualRightIndicatorOnEvent ( )
inline
Here is the call graph for this function:

◆ newRightIndicatorOnEvent()

bool adore::fun::TurnSignalObserver::newRightIndicatorOnEvent ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rightIndicatorTurnedOnManuallyWithinLastSecond()

bool adore::fun::TurnSignalObserver::rightIndicatorTurnedOnManuallyWithinLastSecond ( double  current_time,
double  max_delay = 1.0 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rightIndicatorTurnedOnWithinLastSecond()

bool adore::fun::TurnSignalObserver::rightIndicatorTurnedOnWithinLastSecond ( double  current_time,
double  max_delay = 1.0 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void adore::fun::TurnSignalObserver::update ( double  t)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ extended_state_

adore::fun::VehicleExtendedState adore::fun::TurnSignalObserver::extended_state_
private

◆ extended_state_reader_

adore::fun::AFactory::TVehicleExtendedStateReader* adore::fun::TurnSignalObserver::extended_state_reader_
private

◆ indicator_command_reader_

AFactory::TIndicatorCommandReader* adore::fun::TurnSignalObserver::indicator_command_reader_
private

◆ last_change_left_indicator_

double adore::fun::TurnSignalObserver::last_change_left_indicator_
private

◆ last_change_right_indicator_

double adore::fun::TurnSignalObserver::last_change_right_indicator_
private

◆ left_indicator_

bool adore::fun::TurnSignalObserver::left_indicator_
private

◆ left_state_provided_

bool adore::fun::TurnSignalObserver::left_state_provided_
private

◆ max_powerup_delay_

double adore::fun::TurnSignalObserver::max_powerup_delay_
private

◆ right_indicator_

bool adore::fun::TurnSignalObserver::right_indicator_
private

◆ right_state_provided_

bool adore::fun::TurnSignalObserver::right_state_provided_
private

◆ t0_

double adore::fun::TurnSignalObserver::t0_
private

◆ turned_on_automatically_left_

double adore::fun::TurnSignalObserver::turned_on_automatically_left_
private

◆ turned_on_automatically_right_

double adore::fun::TurnSignalObserver::turned_on_automatically_right_
private

◆ turned_on_manually_left_

bool adore::fun::TurnSignalObserver::turned_on_manually_left_
private

◆ turned_on_manually_right_

bool adore::fun::TurnSignalObserver::turned_on_manually_right_
private

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