upkie 6.1.0
Open-source wheeled biped robots
|
#include <StateMachine.h>
Public Member Functions | |
StateMachine (AgentInterface &interface) noexcept | |
Initialize state machine. More... | |
void | process_event (const Event &event) noexcept |
Process a new event. More... | |
const State & | state () const noexcept |
Get current state. | |
bool | is_over_after_this_cycle () const noexcept |
Whether we transition to the terminal state at the next end-cycle event. | |
Spine state machine.
The overall specification of the state machine is summarized in the following diagram:
See Spine state machine for an overview of this state machine.
|
explicitnoexcept |
Initialize state machine.
[in] | interface | Interface to communicate with the agent. |
|
noexcept |
Process a new event.
[in] | event | New event. |