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

Owns all of the autonomous system components and is responsible for thread management. Also owns a common system handler object to handle creation of state machine and connecting it to GUI. More...

#include <uav_system_handler.h>

Public Member Functions

 UAVSystemHandler (UAVSystemHandlerConfig &config)
 Constructor. More...
 
 UAVSystemHandler (const UAVSystemHandler &)=delete
 Delete copy constructor. More...
 
parsernode::common::quaddata getUAVData ()
 Get UAV state. More...
 
bool isConnected ()
 Forward common handler connected function for testing is GUI is connected to this node or not. More...
 

Detailed Description

template<class LogicStateMachineT, class EventManagerT>
class UAVSystemHandler< LogicStateMachineT, EventManagerT >

Owns all of the autonomous system components and is responsible for thread management. Also owns a common system handler object to handle creation of state machine and connecting it to GUI.

Template Parameters
LogicStateMachineTLogic state machine to use
EventManagerTEvent manager to use

Constructor & Destructor Documentation

template<class LogicStateMachineT , class EventManagerT >
UAVSystemHandler< LogicStateMachineT, EventManagerT >::UAVSystemHandler ( UAVSystemHandlerConfig &  config)
inline

Constructor.

Parameters
nhNodeHandle to use for event and command subscription
configProto configuration parameters
template<class LogicStateMachineT , class EventManagerT >
UAVSystemHandler< LogicStateMachineT, EventManagerT >::UAVSystemHandler ( const UAVSystemHandler< LogicStateMachineT, EventManagerT > &  )
delete

Delete copy constructor.

Member Function Documentation

template<class LogicStateMachineT , class EventManagerT >
parsernode::common::quaddata UAVSystemHandler< LogicStateMachineT, EventManagerT >::getUAVData ( )
inline

Get UAV state.

Returns
The UAV state
template<class LogicStateMachineT , class EventManagerT >
bool UAVSystemHandler< LogicStateMachineT, EventManagerT >::isConnected ( )
inline

Forward common handler connected function for testing is GUI is connected to this node or not.

Returns
true if connected

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