Class implementing a finite state machine with states inheriting from the user-defined class StateType, which must provided as the first template parameter.
More...
#include <StateMachine.h>
|
| StateMachine () |
|
bool | init (const std::string &initial_state_name) |
|
template<typename MessageType > |
bool | init (const std::string &initial_state_name, const MessageType &msg) |
|
bool | register_state (std::shared_ptr< StateType > state) |
|
template<typename EventType > |
bool | send_event (const EventType &event) |
|
bool | run (double time, double period) |
|
std::shared_ptr< const StateType > | get_current_state () const |
|
SharedDataType & | shared_data () |
|
template<typename StateType, typename SharedDataType = SharedDataBase>
class XBot::FSM::StateMachine< StateType, SharedDataType >
Class implementing a finite state machine with states inheriting from the user-defined class StateType, which must provided as the first template parameter.
The second template parameter (optional) represents a custom class for holding shared data among states.
◆ StateMachine()
template<typename StateType , typename SharedDataType = SharedDataBase>
◆ get_current_state()
template<typename StateType , typename SharedDataType = SharedDataBase>
◆ init() [1/2]
template<typename StateType , typename SharedDataType = SharedDataBase>
◆ init() [2/2]
template<typename StateType , typename SharedDataType = SharedDataBase>
template<typename MessageType >
bool XBot::FSM::StateMachine< StateType, SharedDataType >::init |
( |
const std::string & |
initial_state_name, |
|
|
const MessageType & |
msg |
|
) |
| |
|
inline |
◆ register_state()
template<typename StateType , typename SharedDataType = SharedDataBase>
◆ run()
template<typename StateType , typename SharedDataType = SharedDataBase>
◆ send_event()
template<typename StateType , typename SharedDataType = SharedDataBase>
template<typename EventType >
◆ shared_data()
template<typename StateType , typename SharedDataType = SharedDataBase>
◆ State< StateType, SharedDataType >
template<typename StateType , typename SharedDataType = SharedDataBase>
friend class State< StateType, SharedDataType > |
|
friend |
The documentation for this class was generated from the following file:
- /home/travis/build/ADVRHumanoids/forest_ws/src/XBotInterface/include/XBotInterface/StateMachine.h