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

action for checking arm status. More...

#include <arm_functors.h>

Inheritance diagram for ArmStatusInternalActionFunctor_< LogicStateMachineT >:
Inheritance graph
[legend]
Collaboration diagram for ArmStatusInternalActionFunctor_< LogicStateMachineT >:
Collaboration graph
[legend]

Public Member Functions

bool run (ArmSystem &robot_system, LogicStateMachineT &logic_state_machine)
 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...
 
- Public Member Functions inherited from InternalActionFunctor< ArmSystem, LogicStateMachineT >
bool operator() (EventT const &, FSM &logic_state_machine, SourceState &, TargetState &)
 operator () Internally calls run function More...
 
virtual ~InternalActionFunctor ()
 virtual destructor to get polymorphism More...
 

Detailed Description

template<class LogicStateMachineT>
struct ArmStatusInternalActionFunctor_< LogicStateMachineT >

action for checking arm status.

Aborts if arm did not power on.

Returns true if arm is powered on/ false if powered off

Template Parameters
LogicStateMachineTLogic state machine used to process events

Member Function Documentation

template<class LogicStateMachineT >
bool ArmStatusInternalActionFunctor_< LogicStateMachineT >::run ( ArmSystem robot_system,
LogicStateMachineT &  logic_state_machine 
)
inlinevirtual

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.

Parameters
robot_systemProvides sensor data and allows for controlling hardware
logic_state_machineBackend of logic State Machine. can send events using this.

Implements InternalActionFunctor< ArmSystem, LogicStateMachineT >.


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