Public Member Functions | Private Types | Private Member Functions | Private Attributes
flyer_controller::Controller Class Reference
Inheritance diagram for flyer_controller::Controller:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Controller ()
void onInit ()
std::string stateToString (ControllerTypes::ControllerState t)

Private Types

enum  OPERATIONAL_Substate { OP_READY, OP_ACTIVATING_MODE, OP_STANDBYING_MODE }

Private Member Functions

void commandCallback (const controller_cmdConstPtr &msg)
bool controlModesServiceCallback (control_modes::Request &request, control_modes::Response &response)
void controlModesStatusCallback (const flyer_controller::control_mode_statusConstPtr &msg, string source)
void diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat)
void execute_INITIALIZE ()
void execute_OPERATIONAL ()
bool execute_OPERATIONAL_ACTIVATING_MODE (bool reset, const string mode_to_activate)
void execute_OPERATIONAL_READY (OPERATIONAL_Substate &substate, string &new_mode)
bool execute_OPERATIONAL_STANDBYING_MODE (bool reset, const string mode_to_standby)
void execute_STANDBY ()
void getStandbyModes (vector< string > &modes)
void mainLoopCallback (const ros::TimerEvent &e)

Private Attributes

ros::Subscriber cmd_sub
bool command_pending
ros::ServiceServer control_modes_service
string current_mode
diagnostic_updater::Updater diag_updater
string info
string initial_active_mode
string initial_standby_mode
map< string, control_mode_status > latest_mode_status
boost::mutex mainloop_mutex
double mainloop_rate
ros::Timer mainloop_timer
map< string, ros::Publishermode_cmd_pubs
map< string, string > mode_node_map
map< string, ros::Subscribermode_status_subs
ros::NodeHandle nh
ros::NodeHandle nh_priv
map< string, string > node_mode_map
string pending_command
boost::mutex register_mutex
set< string > registered_modes
string standby_mode
ControllerState state
ros::Publisher status_pub

Detailed Description

Definition at line 70 of file controller.cpp.


Member Enumeration Documentation

Enumerator:
OP_READY 
OP_ACTIVATING_MODE 
OP_STANDBYING_MODE 

Definition at line 474 of file controller.cpp.


Constructor & Destructor Documentation

Definition at line 108 of file controller.cpp.


Member Function Documentation

void flyer_controller::Controller::commandCallback ( const controller_cmdConstPtr &  msg) [inline, private]

Definition at line 177 of file controller.cpp.

bool flyer_controller::Controller::controlModesServiceCallback ( control_modes::Request &  request,
control_modes::Response &  response 
) [inline, private]

Definition at line 193 of file controller.cpp.

void flyer_controller::Controller::controlModesStatusCallback ( const flyer_controller::control_mode_statusConstPtr &  msg,
string  source 
) [inline, private]

Definition at line 251 of file controller.cpp.

void flyer_controller::Controller::diagnostics ( diagnostic_updater::DiagnosticStatusWrapper &  stat) [inline, private]

Definition at line 166 of file controller.cpp.

Definition at line 307 of file controller.cpp.

Definition at line 479 of file controller.cpp.

bool flyer_controller::Controller::execute_OPERATIONAL_ACTIVATING_MODE ( bool  reset,
const string  mode_to_activate 
) [inline, private]

Definition at line 601 of file controller.cpp.

void flyer_controller::Controller::execute_OPERATIONAL_READY ( OPERATIONAL_Substate substate,
string &  new_mode 
) [inline, private]

Definition at line 529 of file controller.cpp.

bool flyer_controller::Controller::execute_OPERATIONAL_STANDBYING_MODE ( bool  reset,
const string  mode_to_standby 
) [inline, private]

Definition at line 677 of file controller.cpp.

Definition at line 406 of file controller.cpp.

void flyer_controller::Controller::getStandbyModes ( vector< string > &  modes) [inline, private]

Definition at line 293 of file controller.cpp.

void flyer_controller::Controller::mainLoopCallback ( const ros::TimerEvent e) [inline, private]

Definition at line 259 of file controller.cpp.

void flyer_controller::Controller::onInit ( ) [inline, virtual]

Implements nodelet::Nodelet.

Definition at line 114 of file controller.cpp.

Definition at line 146 of file controller.cpp.


Member Data Documentation

Definition at line 83 of file controller.cpp.

Definition at line 101 of file controller.cpp.

Definition at line 91 of file controller.cpp.

Definition at line 93 of file controller.cpp.

diagnostic_updater::Updater flyer_controller::Controller::diag_updater [private]

Definition at line 88 of file controller.cpp.

Definition at line 100 of file controller.cpp.

Definition at line 76 of file controller.cpp.

Definition at line 77 of file controller.cpp.

map<string, control_mode_status> flyer_controller::Controller::latest_mode_status [private]

Definition at line 98 of file controller.cpp.

Definition at line 103 of file controller.cpp.

Definition at line 78 of file controller.cpp.

Definition at line 86 of file controller.cpp.

Definition at line 81 of file controller.cpp.

map<string, string> flyer_controller::Controller::mode_node_map [private]

Definition at line 97 of file controller.cpp.

Definition at line 84 of file controller.cpp.

Definition at line 73 of file controller.cpp.

Definition at line 74 of file controller.cpp.

map<string, string> flyer_controller::Controller::node_mode_map [private]

Definition at line 96 of file controller.cpp.

Definition at line 102 of file controller.cpp.

Definition at line 104 of file controller.cpp.

Definition at line 95 of file controller.cpp.

Definition at line 94 of file controller.cpp.

Definition at line 99 of file controller.cpp.

Definition at line 80 of file controller.cpp.


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


flyer_controller
Author(s): Patrick Bouffard
autogenerated on Sun Jan 5 2014 11:37:54