Base class for each of the states of a FiniteStateMachine.
#include <State.hpp>
|
| virtual bool | setup ()=0 |
| | Function executed just before the loop function, when the state is enabled. More...
|
| |
| virtual bool | loop ()=0 |
| | Function executed periodically when the state is active. More...
|
| |
| virtual bool | cleanup ()=0 |
| | Function excuted when this state is going to be stopped (due to an error or a transition) More...
|
| |
| virtual int | evaluateConditions ()=0 |
| | This function is called after each call to loop() in order to know the transition to make. More...
|
| |
|
const std::string & | getStateId () const |
| | Returns the string that identifies the state.
|
| |
|
|
static State * | getEndState () |
| |
|
|
std::string | state_id |
| | Name of the current state.
|
| |
◆ cleanup()
| virtual bool rd::State::cleanup |
( |
| ) |
|
|
pure virtual |
◆ evaluateConditions()
| virtual int rd::State::evaluateConditions |
( |
| ) |
|
|
pure virtual |
◆ loop()
| virtual bool rd::State::loop |
( |
| ) |
|
|
pure virtual |
◆ setup()
| virtual bool rd::State::setup |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- src/libraries/StateMachineLib/State.hpp
- src/libraries/StateMachineLib/State.cpp