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

Connects a logic state machine to the GUI over a ROS interface. More...

#include <state_machine_gui_connector.h>

Public Member Functions

 StateMachineGUIConnector (ros::NodeHandle &nh, EventManagerT &event_manager, LogicStateMachineT &logic_state_machine)
 Constructor Creates subscriber to event callbacks to connect GUI to state machine. More...
 
bool isEventManagerConnected ()
 Returns whether the GUI connector is connected to an event publisher. More...
 
bool isPoseCommandConnected ()
 Returns whether the GUI connector is connected to an pose command publisher. More...
 

Detailed Description

template<class EventManagerT, class LogicStateMachineT>
class StateMachineGUIConnector< EventManagerT, LogicStateMachineT >

Connects a logic state machine to the GUI over a ROS interface.

Template Parameters
EventManagerTevent manager type used to trigger events to state machine
LogicStateMachineTlogic state machine type used to trigger pose events

Constructor & Destructor Documentation

template<class EventManagerT , class LogicStateMachineT >
StateMachineGUIConnector< EventManagerT, LogicStateMachineT >::StateMachineGUIConnector ( ros::NodeHandle &  nh,
EventManagerT &  event_manager,
LogicStateMachineT &  logic_state_machine 
)
inline

Constructor Creates subscriber to event callbacks to connect GUI to state machine.

Parameters
nhNodeHandle to create subscribers
event_managerEvent manager to trigger events based on name alone
logic_state_machineState machine to trigger events directly

Member Function Documentation

template<class EventManagerT , class LogicStateMachineT >
bool StateMachineGUIConnector< EventManagerT, LogicStateMachineT >::isEventManagerConnected ( )
inline

Returns whether the GUI connector is connected to an event publisher.

Returns
Returns true if connected
template<class EventManagerT , class LogicStateMachineT >
bool StateMachineGUIConnector< EventManagerT, LogicStateMachineT >::isPoseCommandConnected ( )
inline

Returns whether the GUI connector is connected to an pose command publisher.

Returns
Returns true if connected

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