RMW desert 1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DesertGuardCondition Class Reference

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.
 

Member Function Documentation

◆ get_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.

Returns
True if the guard condition has triggered otherwise false

◆ has_triggered()

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.

Returns
True if the guard condition has triggered otherwise false

◆ trigger()

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.


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