RMW desert 1.0
|
Public Member Functions | |
DesertGuardCondition () | |
Create a guard condition. | |
void | trigger () |
Trigger the guard condition. | |
bool | has_triggered () |
Check if the guard condition has triggered. | |
bool | get_has_triggered () |
Check if the guard condition has triggered. | |
bool DesertGuardCondition::get_has_triggered | ( | ) |
Check if the guard condition has triggered.
The get_has_triggered function returns a bool value with the status of the guard condition and resets the internal state to false.
bool DesertGuardCondition::has_triggered | ( | ) |
Check if the guard condition has triggered.
The has_triggered function returns a bool value with the status of the guard condition. Its internal state is not modified.
void DesertGuardCondition::trigger | ( | ) |
Trigger the guard condition.
The trigger function sets the status of the atomic bool variable _has_triggered to save the new status of the guard condition.