|
| virtual bool | run (RobotSystemT &robot_system, LogicStateMachineT &logic_state_machine)=0 |
| | Override this run function for different sub classes. This function performs the logic checking for each state and processes events on the state machine. It returns false if an action is processed/ true otherwise. More...
|
| |
| template<class EventT , class FSM , class SourceState , class TargetState > |
| bool | operator() (EventT const &, FSM &logic_state_machine, SourceState &, TargetState &) |
| | operator () Internally calls run function More...
|
| |
| virtual | ~InternalActionFunctor () |
| | virtual destructor to get polymorphism More...
|
| |
template<class RobotSystemT, class LogicStateMachineT>
struct InternalActionFunctor< RobotSystemT, LogicStateMachineT >
Internal action that returns whether it processed an event.
This action functor performs logic checks and processes events on the logic state machine. It also returns if it processed events or not. This is used with ShortingActionSequence to chain internal actions and stop executing actions once an action processes events with logic state machine
Returns true if no event processed. false if some event processed
- Template Parameters
-
| RobotSystemT | The robot system used in the guard |
| LogicStateMachineT | The logic state machine used to retrieve robot system |
template<class RobotSystemT, class LogicStateMachineT>
template<class EventT , class FSM , class SourceState , class TargetState >
| bool InternalActionFunctor< RobotSystemT, LogicStateMachineT >::operator() |
( |
EventT const & |
, |
|
|
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. |