ASCO Aerial Autonomy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
EventAgnosticActionFunctor< RobotSystemT, LogicStateMachineT > Struct Template Referenceabstract

Action functor that does not require the event triggering it. More...

#include <base_functors.h>

Public Member Functions

virtual void run (RobotSystemT &robot_system)=0
 Override this run function for different sub classes. This function performs the logic checking for each state. More...
 
template<class EventT , class FSM , class SourceState , class TargetState >
void operator() (EventT const &, FSM &logic_state_machine, SourceState &, TargetState &)
 operator () Internally calls run function More...
 
virtual ~EventAgnosticActionFunctor ()
 virtual destructor to get polymorphism More...
 

Detailed Description

template<class RobotSystemT, class LogicStateMachineT>
struct EventAgnosticActionFunctor< RobotSystemT, LogicStateMachineT >

Action functor that does not require the event triggering it.

This action functor performs the same action irrespective of the event triggering it. For example takeoff, land actions

Template Parameters
RobotSystemTThe robot system used in the action

Constructor & Destructor Documentation

template<class RobotSystemT, class LogicStateMachineT>
virtual EventAgnosticActionFunctor< RobotSystemT, LogicStateMachineT >::~EventAgnosticActionFunctor ( )
inlinevirtual

virtual destructor to get polymorphism

Member Function Documentation

template<class RobotSystemT, class LogicStateMachineT>
template<class EventT , class FSM , class SourceState , class TargetState >
void EventAgnosticActionFunctor< RobotSystemT, LogicStateMachineT >::operator() ( EventT const &  ,
FSM &  logic_state_machine,
SourceState &  ,
TargetState &   
)
inline

operator () Internally calls run function

Parameters
logic_state_machineBackend of logic State Machine. can send events using this.
template<class RobotSystemT, class LogicStateMachineT>
virtual void EventAgnosticActionFunctor< RobotSystemT, LogicStateMachineT >::run ( RobotSystemT &  robot_system)
pure virtual

The documentation for this struct was generated from the following file: