Public Member Functions | Protected Member Functions | Protected Attributes
flyer_controller::ControlMode Class Reference

#include <control_mode.h>

Inheritance diagram for flyer_controller::ControlMode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ControlMode ()
std::string stateToString (ControlModeTypes::ControlModeState t)
 ~ControlMode ()

Protected Member Functions

virtual void controlModeCmdCallback (const control_mode_cmdConstPtr &msg)
void diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat)
 Publishes diagnostics and status.
virtual void onInit ()
void operCmdCallback (const starmac_msgs::OperatorCommandsConstPtr &msg)
virtual void outputControl ()
void outputControlTimerCallback (const ros::TimerEvent &e)
virtual void reportStatusTimerCallback (const ros::TimerEvent &e)
void requestRegistration (const std::string &mode_name, double wait_time=0)
void requestRegistration2 (const ros::TimerEvent &event, const std::string &mode_name, double wait_time=0)
void startDataFlow ()
virtual void stateCallback (const nav_msgs::OdometryConstPtr &msg)

Protected Attributes

long int control_count
ros::Subscriber control_mode_cmd_sub
ros::Publisher control_mode_status_pub
double control_output_rate
diagnostic_updater::Updater diag_updater
bool event_driven
bool got_first_joy
bool got_first_state
std::string info
double latest_alt_cmd
starmac_msgs::OperatorCommands latest_opercmd
nav_msgs::Odometry latest_state
ros::NodeHandle nh
ros::NodeHandle nh_priv
ros::Subscriber opercmd_sub
ros::Timer output_controls_timer
ros::Publisher output_pub
bool ready
ros::Timer reg_timer
ros::Timer report_status_timer
bool seen_max_alt
bool seen_min_alt
ControlModeTypes::ControlModeState state
long int state_count
ros::Subscriber state_sub
bool state_updated
double status_report_rate

Detailed Description

Definition at line 67 of file control_mode.h.


Constructor & Destructor Documentation

Definition at line 80 of file control_mode.cpp.

Definition at line 144 of file control_mode.cpp.


Member Function Documentation

void flyer_controller::ControlMode::controlModeCmdCallback ( const control_mode_cmdConstPtr &  msg) [protected, virtual]
void flyer_controller::ControlMode::diagnostics ( diagnostic_updater::DiagnosticStatusWrapper &  stat) [protected]

Publishes diagnostics and status.

Definition at line 89 of file control_mode.cpp.

void flyer_controller::ControlMode::onInit ( ) [protected, virtual]

Definition at line 201 of file control_mode.cpp.

void flyer_controller::ControlMode::outputControl ( ) [protected, virtual]

Definition at line 236 of file control_mode.cpp.

void flyer_controller::ControlMode::requestRegistration ( const std::string &  mode_name,
double  wait_time = 0 
) [protected]

Definition at line 101 of file control_mode.cpp.

void flyer_controller::ControlMode::requestRegistration2 ( const ros::TimerEvent event,
const std::string &  mode_name,
double  wait_time = 0 
) [protected]

Definition at line 107 of file control_mode.cpp.

Definition at line 149 of file control_mode.cpp.

void flyer_controller::ControlMode::stateCallback ( const nav_msgs::OdometryConstPtr &  msg) [protected, virtual]

Definition at line 209 of file control_mode.cpp.

Definition at line 40 of file control_mode.cpp.


Member Data Documentation

Definition at line 100 of file control_mode.h.

Definition at line 81 of file control_mode.h.

Definition at line 78 of file control_mode.h.

Definition at line 74 of file control_mode.h.

diagnostic_updater::Updater flyer_controller::ControlMode::diag_updater [protected]

Definition at line 88 of file control_mode.h.

Definition at line 75 of file control_mode.h.

Definition at line 98 of file control_mode.h.

Definition at line 95 of file control_mode.h.

std::string flyer_controller::ControlMode::info [protected]

Definition at line 91 of file control_mode.h.

Definition at line 113 of file control_mode.h.

Definition at line 92 of file control_mode.h.

nav_msgs::Odometry flyer_controller::ControlMode::latest_state [protected]

Definition at line 94 of file control_mode.h.

Definition at line 70 of file control_mode.h.

Definition at line 71 of file control_mode.h.

Definition at line 82 of file control_mode.h.

Definition at line 86 of file control_mode.h.

Definition at line 79 of file control_mode.h.

Definition at line 93 of file control_mode.h.

Definition at line 114 of file control_mode.h.

Definition at line 85 of file control_mode.h.

Definition at line 96 of file control_mode.h.

Definition at line 97 of file control_mode.h.

Definition at line 90 of file control_mode.h.

Definition at line 99 of file control_mode.h.

Definition at line 83 of file control_mode.h.

Definition at line 115 of file control_mode.h.

Definition at line 73 of file control_mode.h.


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


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