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

Logic to abort if controller status is critical. More...

#include <hovering_functors.h>

Inheritance diagram for ControllerStatusInternalActionFunctor_< LogicStateMachineT, ControllerConnector, check_completed >:
Inheritance graph
[legend]
Collaboration diagram for ControllerStatusInternalActionFunctor_< LogicStateMachineT, ControllerConnector, check_completed >:
Collaboration graph
[legend]

Public Member Functions

bool run (UAVSystem &robot_system, LogicStateMachineT &logic_state_machine)
 check if controller status is critical and abort; similarly if controller status is completed raise completed More...
 
- Public Member Functions inherited from InternalActionFunctor< UAVSystem, 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, class ControllerConnector, bool check_completed = true>
struct ControllerStatusInternalActionFunctor_< LogicStateMachineT, ControllerConnector, check_completed >

Logic to abort if controller status is critical.

Template Parameters
LogicStateMachineTLogic state machine used to process events
ControllerConnectorController connector whose status the functor checks
check_completedIf false, ignores check on controller completion

Member Function Documentation

template<class LogicStateMachineT , class ControllerConnector , bool check_completed = true>
bool ControllerStatusInternalActionFunctor_< LogicStateMachineT, ControllerConnector, check_completed >::run ( UAVSystem robot_system,
LogicStateMachineT &  logic_state_machine 
)
inlinevirtual

check if controller status is critical and abort; similarly if controller status is completed raise completed

Parameters
robot_systemrobot system to get sensor data
logic_state_machinelogic state machine to trigger events

Implements InternalActionFunctor< UAVSystem, LogicStateMachineT >.


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