|
ASCO Aerial Autonomy
|
Example Logic state machine that stores triggered event. More...
#include <sample_logic_state_machine.h>


Public Member Functions | |
| SampleLogicStateMachine_ (RobotSystemT &robot_system) | |
| Constructor that takes robot system. More... | |
| template<class Event > | |
| void | process_event (const Event &event) |
| Generic process event that stores the event type. More... | |
| void | process_event (const PositionYaw &event) |
| process pose event message More... | |
| std::type_index | getProcessEventTypeId () |
| retrieve the event type_index of last processed event More... | |
| PositionYaw | getPoseEvent () |
| retrieve poseyaw event message More... | |
Public Member Functions inherited from BaseStateMachine< RobotSystemT > | |
| std::type_index | get_no_transition_event_index () const |
| Returns the index of the event that did not trigger any transition. More... | |
| BaseStateMachine (RobotSystemT &robot_system) | |
| Constructor with arguments to store robot system. More... | |
| template<class FSM , class Event > | |
| void | no_transition (Event const &e, FSM &, int state_index) |
| Print event typeid if no action present for the corresponding event. More... | |
Additional Inherited Members | |
Public Attributes inherited from BaseStateMachine< RobotSystemT > | |
| RobotSystemContainer < RobotSystemT > | robot_system_container_ |
| robot system container used by states to get sensor data and send commands Use the operator function robot_system_container_() to retrieve robot system in Action, Guard Functors. Other classes cannot access the robot system More... | |
Protected Attributes inherited from BaseStateMachine< RobotSystemT > | |
| std::type_index | no_transition_event_index_ = typeid(NULL) |
| type index to store the event that did not trigger any transition More... | |
Example Logic state machine that stores triggered event.
| RobotSystemT | The robot system that is used by states to perform actions |
|
inline |
Constructor that takes robot system.
| robot_system | provides actions to select controllers, get/set Goals. |
|
inline |
retrieve poseyaw event message
|
inline |
retrieve the event type_index of last processed event
|
inline |
Generic process event that stores the event type.
| Event | Event type |
| event | Event instance sent in to process |
|
inline |
process pose event message
| event | message that is stored |
1.8.6