XBotInterface
2.4.1
XBotInterface provides a generic API to model and control a robot.
|
By inheriting from the State class, the user of the FSM defines a base class for all custom states. More...
#include <StateMachine.h>
Public Member Functions | |
virtual std::string | get_name () const =0 |
virtual void | run (double time, double period) |
virtual void | exit () |
void | react (const Event &e) |
Protected Member Functions | |
SharedDataType & | shared_data () |
XBot::LoggerClass & | console () |
template<typename MessageType > | |
bool | transit (const std::string &next_state_name, const MessageType &msg) |
bool | transit (const std::string &next_state_name) |
std::string | get_previous_state_name () const |
template<typename EventType > | |
void | send_event (const EventType &e) |
Friends | |
class | StateMachine< StateType, SharedDataType > |
By inheriting from the State class, the user of the FSM defines a base class for all custom states.
The first template parameter is the base class for user-defined states, according to the Curiously Recurring Template Pattern (CRTP). The second template parameter (optional) is a custom class for holding data which is shared among all states.
|
inlineprotected |
|
inlinevirtual |
|
pure virtual |
|
inlineprotected |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
friend |