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

Check arm is enabled before picking objects. More...

#include <arm_functors.h>

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

Public Member Functions

bool guard (ArmSystem &robot_system_)
 Override this run function for different sub classes. This function performs the logic checking for each state. More...
 
- Public Member Functions inherited from EventAgnosticGuardFunctor< ArmSystem, LogicStateMachineT >
bool operator() (EventT const &, FSM &logic_state_machine, SourceState &, TargetState &)
 operator () Internally calls run function More...
 
virtual ~EventAgnosticGuardFunctor ()
 virtual destructor to get polymorphism More...
 

Detailed Description

template<class LogicStateMachineT>
struct ArmEnabledGuardFunctor_< LogicStateMachineT >

Check arm is enabled before picking objects.

Template Parameters
LogicStateMachineTLogic state machine used to process events

Member Function Documentation

template<class LogicStateMachineT >
bool ArmEnabledGuardFunctor_< LogicStateMachineT >::guard ( ArmSystem robot_system)
inlinevirtual

Override this run function for different sub classes. This function performs the logic checking for each state.

Parameters
robot_systemProvides sensor data and allows for controlling hardware

Implements EventAgnosticGuardFunctor< ArmSystem, LogicStateMachineT >.


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