Public Member Functions | Private Member Functions | Private Attributes
starmac_robots_asctec::AscTecAdapter Class Reference

List of all members.

Public Member Functions

 AscTecAdapter ()

Private Member Functions

asctec_msgs::CtrlInput assemble_command (double roll, double pitch, double yaw_rate, int thrust, bool enable_roll, bool enable_pitch, bool enable_yaw, bool enable_thrust)
void cfgCallback (starmac_robots_asctec::AscTecAdapterConfig &config, uint32_t level)
int computeThrust (double alt_cmd, ros::Duration &dt)
double computeYawRate (double yaw_cmd, ros::Duration &dt)
void controlInputCallback (const flyer_controller::control_mode_outputConstPtr &msg)
void deadmanCallback (const ros::TimerEvent &e)
void diagnostics (diagnostic_updater::DiagnosticStatusWrapper &stat)
void getLatestYPR (double &yaw, double &pitch, double &roll)
void imuCallback (const asctec_msgs::IMUCalcDataConstPtr &msg)
void initDiagnostics ()
void initDynamicReconfigure ()
void initParameters ()
void initPublishers ()
void initSubscribers ()
void initTimers ()
bool isSafeToReconfigure ()
void landNowCallback (const std_msgs::BoolConstPtr &msg)
void llStatusCallback (asctec_msgs::LLStatus msg)
void motorEnableCallback (std_msgs::Bool msg)
void rotateRollAndPitch (const double roll_cmd, const double pitch_cmd, double &roll_cmd_rotated, double &pitch_cmd_rotated)
void setAltControllerParams (double KP, double KI, double KD, double Ilimit)
void setYawControllerParams (double KP, double KI, double KD, double Ilimit)
void stateCallback (nav_msgs::Odometry msg)

Private Attributes

double accel_bias
double alt_d_term
double alt_dd_term
double alt_i_term
double alt_Ilimit
double alt_KD
double alt_KDD
double alt_KI
double alt_KP
double alt_p_term
control_toolbox::Pid alt_pid
double alt_slew_rate_limit
bool battery_low_warning_sent
ros::Subscriber control_input_sub
bool deadman
ros::Duration deadman_timeout
ros::Timer deadman_timer
diagnostic_updater::Updater diag_updater
dynamic_reconfigure::Server
< starmac_robots_asctec::AscTecAdapterConfig > 
dyn_reconfig_srv
ros::Publisher estop_pub
bool estop_sent
diagnostic_updater::FrequencyStatus freq_status
bool got_first_state
ros::Publisher imu_pub
ros::Subscriber imu_sub
bool land_now
double land_now_min_thrust_ratio
ros::Subscriber land_now_sub
unsigned int land_now_thrust_decrease_rate
ros::Time last_imu_time
ros::Time last_ll_status_time
ros::Time last_motor_enable_time
ros::Time last_state_time
double last_z_accel
double latest_battery_voltage
asctec_msgs::LLStatus latest_ll_status
bool latest_motor_enable
nav_msgs::Odometry latest_state
ros::Subscriber ll_status_sub
ros::Duration max_control_input_age
double max_freq
ros::Duration max_ll_status_age
ros::Duration max_motor_enable_age
ros::Duration max_state_age
int max_thrust
double min_battery_voltage
double min_freq
ros::Subscriber motor_enable_sub
ros::NodeHandle nh
ros::NodeHandle nh_priv
int nominal_thrust
asctec_msgs::CtrlInput null_input
ros::Publisher output
double pitch_slew_rate_limit
double pitch_trim
flyer_controller::control_mode_output prev_control_input_msg
ros::Time prev_control_input_time
double roll_slew_rate_limit
double roll_trim
ros::Subscriber state_sub
bool thrust_autoadjust
double thrust_mult
double yaw_Ilimit
double yaw_KD
double yaw_KI
double yaw_KP
double yaw_offset
control_toolbox::Pid yaw_pid
double yaw_rate_limit
double yaw_slew_rate_limit
asctec_msgs::CtrlInput zero_thrust_full_left_yaw

Detailed Description

Definition at line 85 of file asctec_adapter.cpp.


Constructor & Destructor Documentation

Definition at line 170 of file asctec_adapter.cpp.


Member Function Documentation

asctec_msgs::CtrlInput starmac_robots_asctec::AscTecAdapter::assemble_command ( double  roll,
double  pitch,
double  yaw_rate,
int  thrust,
bool  enable_roll,
bool  enable_pitch,
bool  enable_yaw,
bool  enable_thrust 
) [inline, private]

Definition at line 687 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::cfgCallback ( starmac_robots_asctec::AscTecAdapterConfig &  config,
uint32_t  level 
) [inline, private]

Definition at line 307 of file asctec_adapter.cpp.

int starmac_robots_asctec::AscTecAdapter::computeThrust ( double  alt_cmd,
ros::Duration dt 
) [inline, private]

Definition at line 608 of file asctec_adapter.cpp.

double starmac_robots_asctec::AscTecAdapter::computeYawRate ( double  yaw_cmd,
ros::Duration dt 
) [inline, private]

Definition at line 659 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::controlInputCallback ( const flyer_controller::control_mode_outputConstPtr &  msg) [inline, private]

Definition at line 478 of file asctec_adapter.cpp.

Definition at line 701 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::diagnostics ( diagnostic_updater::DiagnosticStatusWrapper &  stat) [inline, private]

Definition at line 334 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::getLatestYPR ( double &  yaw,
double &  pitch,
double &  roll 
) [inline, private]

Definition at line 674 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::imuCallback ( const asctec_msgs::IMUCalcDataConstPtr &  msg) [inline, private]

Definition at line 404 of file asctec_adapter.cpp.

Definition at line 217 of file asctec_adapter.cpp.

Definition at line 226 of file asctec_adapter.cpp.

Definition at line 234 of file asctec_adapter.cpp.

Definition at line 274 of file asctec_adapter.cpp.

Definition at line 291 of file asctec_adapter.cpp.

Definition at line 282 of file asctec_adapter.cpp.

Definition at line 760 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::landNowCallback ( const std_msgs::BoolConstPtr &  msg) [inline, private]

Definition at line 454 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::llStatusCallback ( asctec_msgs::LLStatus  msg) [inline, private]

Definition at line 459 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::motorEnableCallback ( std_msgs::Bool  msg) [inline, private]

Definition at line 370 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::rotateRollAndPitch ( const double  roll_cmd,
const double  pitch_cmd,
double &  roll_cmd_rotated,
double &  pitch_cmd_rotated 
) [inline, private]

Definition at line 599 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::setAltControllerParams ( double  KP,
double  KI,
double  KD,
double  Ilimit 
) [inline, private]

Definition at line 322 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::setYawControllerParams ( double  KP,
double  KI,
double  KD,
double  Ilimit 
) [inline, private]

Definition at line 328 of file asctec_adapter.cpp.

void starmac_robots_asctec::AscTecAdapter::stateCallback ( nav_msgs::Odometry  msg) [inline, private]

Definition at line 386 of file asctec_adapter.cpp.


Member Data Documentation

Definition at line 119 of file asctec_adapter.cpp.

Definition at line 159 of file asctec_adapter.cpp.

Definition at line 160 of file asctec_adapter.cpp.

Definition at line 158 of file asctec_adapter.cpp.

Definition at line 105 of file asctec_adapter.cpp.

Definition at line 103 of file asctec_adapter.cpp.

Definition at line 104 of file asctec_adapter.cpp.

Definition at line 102 of file asctec_adapter.cpp.

Definition at line 101 of file asctec_adapter.cpp.

Definition at line 157 of file asctec_adapter.cpp.

control_toolbox::Pid starmac_robots_asctec::AscTecAdapter::alt_pid [private]

Definition at line 146 of file asctec_adapter.cpp.

Definition at line 114 of file asctec_adapter.cpp.

Definition at line 167 of file asctec_adapter.cpp.

Definition at line 131 of file asctec_adapter.cpp.

Definition at line 140 of file asctec_adapter.cpp.

Definition at line 100 of file asctec_adapter.cpp.

Definition at line 137 of file asctec_adapter.cpp.

diagnostic_updater::Updater starmac_robots_asctec::AscTecAdapter::diag_updater [private]

Definition at line 91 of file asctec_adapter.cpp.

dynamic_reconfigure::Server<starmac_robots_asctec::AscTecAdapterConfig> starmac_robots_asctec::AscTecAdapter::dyn_reconfig_srv [private]

Definition at line 96 of file asctec_adapter.cpp.

Definition at line 127 of file asctec_adapter.cpp.

Definition at line 163 of file asctec_adapter.cpp.

diagnostic_updater::FrequencyStatus starmac_robots_asctec::AscTecAdapter::freq_status [private]

Definition at line 94 of file asctec_adapter.cpp.

Definition at line 164 of file asctec_adapter.cpp.

Definition at line 128 of file asctec_adapter.cpp.

Definition at line 134 of file asctec_adapter.cpp.

Definition at line 162 of file asctec_adapter.cpp.

Definition at line 121 of file asctec_adapter.cpp.

Definition at line 135 of file asctec_adapter.cpp.

Definition at line 120 of file asctec_adapter.cpp.

Definition at line 145 of file asctec_adapter.cpp.

Definition at line 143 of file asctec_adapter.cpp.

Definition at line 142 of file asctec_adapter.cpp.

Definition at line 144 of file asctec_adapter.cpp.

Definition at line 161 of file asctec_adapter.cpp.

Definition at line 165 of file asctec_adapter.cpp.

Definition at line 149 of file asctec_adapter.cpp.

Definition at line 139 of file asctec_adapter.cpp.

Definition at line 148 of file asctec_adapter.cpp.

Definition at line 133 of file asctec_adapter.cpp.

Definition at line 155 of file asctec_adapter.cpp.

Definition at line 93 of file asctec_adapter.cpp.

Definition at line 154 of file asctec_adapter.cpp.

Definition at line 153 of file asctec_adapter.cpp.

Definition at line 156 of file asctec_adapter.cpp.

Definition at line 117 of file asctec_adapter.cpp.

Definition at line 166 of file asctec_adapter.cpp.

Definition at line 92 of file asctec_adapter.cpp.

Definition at line 130 of file asctec_adapter.cpp.

Definition at line 88 of file asctec_adapter.cpp.

Definition at line 89 of file asctec_adapter.cpp.

Definition at line 115 of file asctec_adapter.cpp.

asctec_msgs::CtrlInput starmac_robots_asctec::AscTecAdapter::null_input [private]

Definition at line 151 of file asctec_adapter.cpp.

Definition at line 126 of file asctec_adapter.cpp.

Definition at line 112 of file asctec_adapter.cpp.

Definition at line 122 of file asctec_adapter.cpp.

flyer_controller::control_mode_output starmac_robots_asctec::AscTecAdapter::prev_control_input_msg [private]

Definition at line 152 of file asctec_adapter.cpp.

Definition at line 141 of file asctec_adapter.cpp.

Definition at line 111 of file asctec_adapter.cpp.

Definition at line 123 of file asctec_adapter.cpp.

Definition at line 132 of file asctec_adapter.cpp.

Definition at line 118 of file asctec_adapter.cpp.

Definition at line 116 of file asctec_adapter.cpp.

Definition at line 109 of file asctec_adapter.cpp.

Definition at line 108 of file asctec_adapter.cpp.

Definition at line 107 of file asctec_adapter.cpp.

Definition at line 106 of file asctec_adapter.cpp.

Definition at line 124 of file asctec_adapter.cpp.

control_toolbox::Pid starmac_robots_asctec::AscTecAdapter::yaw_pid [private]

Definition at line 147 of file asctec_adapter.cpp.

Definition at line 110 of file asctec_adapter.cpp.

Definition at line 113 of file asctec_adapter.cpp.

Definition at line 150 of file asctec_adapter.cpp.


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


starmac_robots_asctec
Author(s): Patrick Bouffard
autogenerated on Sun Jan 5 2014 11:38:03