Action Functor for a given event, robot system, state machine.
More...
#include <base_functors.h>
|
| virtual void | run (EventT const &event, RobotSystemT &robot_system)=0 |
| | Override this run function for different sub classes. This function performs the logic checking for each state. More...
|
| |
| template<class FSM , class SourceState , class TargetState > |
| void | operator() (EventT const &event, FSM &logic_state_machine, SourceState &, TargetState &) |
| | operator () Internally calls run function More...
|
| |
| virtual | ~ActionFunctor () |
| | Virtual destructor to obtain polymorphism. More...
|
| |
template<class EventT, class RobotSystemT, class LogicStateMachineT>
struct ActionFunctor< EventT, RobotSystemT, LogicStateMachineT >
Action Functor for a given event, robot system, state machine.
This class provides run function for state transitions Derived states have to implement the specific run function behavior using this base class.
- Template Parameters
-
| EventT | Event triggering this action |
| RobotSystemT | The robot system used in the action |
| LogicStateMachineT | The logic state machine used to trigger events |
template<class EventT, class RobotSystemT, class LogicStateMachineT>
Virtual destructor to obtain polymorphism.
template<class EventT, class RobotSystemT, class LogicStateMachineT>
template<class FSM , class SourceState , class TargetState >
| void ActionFunctor< EventT, RobotSystemT, LogicStateMachineT >::operator() |
( |
EventT const & |
event, |
|
|
FSM & |
logic_state_machine, |
|
|
SourceState & |
, |
|
|
TargetState & |
|
|
) |
| |
|
inline |
operator () Internally calls run function
- Parameters
-
| logic_state_machine | Backend of logic State Machine. can send events using this. |
| event | Event triggering the action |
template<class EventT, class RobotSystemT, class LogicStateMachineT>
| virtual void ActionFunctor< EventT, RobotSystemT, LogicStateMachineT >::run |
( |
EventT const & |
event, |
|
|
RobotSystemT & |
robot_system |
|
) |
| |
|
pure virtual |
The documentation for this struct was generated from the following file: