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

Guard to avoid accidental takeoff. More...

#include <takeoff_functors.h>

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

Public Member Functions

bool guard (UAVSystem &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< UAVSystem, 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 TakeoffTransitionGuardFunctor_< LogicStateMachineT >

Guard to avoid accidental takeoff.

Template Parameters
LogicStateMachineTLogic state machine used to process events

Member Function Documentation

template<class LogicStateMachineT >
bool TakeoffTransitionGuardFunctor_< LogicStateMachineT >::guard ( UAVSystem 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< UAVSystem, LogicStateMachineT >.


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