Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Joy Class Reference

#include <joy.h>

Public Member Functions

 Joy ()
 

Private Types

typedef sensor_msgs::Joy::_buttons_type ButtonType
 

Private Member Functions

void APCommandCallback (const rosflight_msgs::CommandConstPtr &msg)
 
void JoyCallback (const sensor_msgs::JoyConstPtr &msg)
 
void PauseSimulation ()
 
void Publish ()
 
void ResetMav ()
 
void ResumeSimulation ()
 
void StopMav ()
 

Private Attributes

rosflight_msgs::Command autopilot_command_
 
ros::Subscriber autopilot_command_sub_
 
std::string autopilot_command_topic_
 
Axes axes_
 
Buttons buttons_
 
rosflight_msgs::Command command_msg_
 
ros::Publisher command_pub_
 
std::string command_topic_
 
double current_altitude_setpoint_
 
sensor_msgs::Joy current_joy_
 
double current_x_setpoint_
 
double current_y_setpoint_
 
double current_yaw_setpoint_
 
double current_yaw_vel_
 
double equilibrium_thrust_
 
std::string gazebo_ns_
 
ros::Subscriber joy_sub_
 
double last_time_
 
double mass_
 
std::string mav_name_
 
Max max_
 
std::string namespace_
 
ros::NodeHandle nh_
 
bool override_autopilot_ = true
 
bool paused = true
 
geometry_msgs::Pose reset_pose_
 
geometry_msgs::Twist reset_twist_
 
double v_yaw_step_
 

Detailed Description

Definition at line 85 of file joy.h.

Member Typedef Documentation

typedef sensor_msgs::Joy::_buttons_type Joy::ButtonType
private

Definition at line 87 of file joy.h.

Constructor & Destructor Documentation

Joy::Joy ( )

Definition at line 36 of file joy.cpp.

Member Function Documentation

void Joy::APCommandCallback ( const rosflight_msgs::CommandConstPtr &  msg)
private

Definition at line 168 of file joy.cpp.

void Joy::JoyCallback ( const sensor_msgs::JoyConstPtr &  msg)
private

Definition at line 173 of file joy.cpp.

void Joy::PauseSimulation ( )
private

Definition at line 146 of file joy.cpp.

void Joy::Publish ( )
private

Definition at line 325 of file joy.cpp.

void Joy::ResetMav ( )
private

Definition at line 128 of file joy.cpp.

void Joy::ResumeSimulation ( )
private

Definition at line 157 of file joy.cpp.

void Joy::StopMav ( )
private

Definition at line 119 of file joy.cpp.

Member Data Documentation

rosflight_msgs::Command Joy::autopilot_command_
private

Definition at line 109 of file joy.h.

ros::Subscriber Joy::autopilot_command_sub_
private

Definition at line 92 of file joy.h.

std::string Joy::autopilot_command_topic_
private

Definition at line 97 of file joy.h.

Axes Joy::axes_
private

Definition at line 102 of file joy.h.

Buttons Joy::buttons_
private

Definition at line 113 of file joy.h.

rosflight_msgs::Command Joy::command_msg_
private

Definition at line 108 of file joy.h.

ros::Publisher Joy::command_pub_
private

Definition at line 91 of file joy.h.

std::string Joy::command_topic_
private

Definition at line 96 of file joy.h.

double Joy::current_altitude_setpoint_
private

Definition at line 117 of file joy.h.

sensor_msgs::Joy Joy::current_joy_
private

Definition at line 110 of file joy.h.

double Joy::current_x_setpoint_
private

Definition at line 118 of file joy.h.

double Joy::current_y_setpoint_
private

Definition at line 119 of file joy.h.

double Joy::current_yaw_setpoint_
private

Definition at line 120 of file joy.h.

double Joy::current_yaw_vel_
private

Definition at line 124 of file joy.h.

double Joy::equilibrium_thrust_
private

Definition at line 106 of file joy.h.

std::string Joy::gazebo_ns_
private

Definition at line 100 of file joy.h.

ros::Subscriber Joy::joy_sub_
private

Definition at line 93 of file joy.h.

double Joy::last_time_
private

Definition at line 121 of file joy.h.

double Joy::mass_
private

Definition at line 126 of file joy.h.

std::string Joy::mav_name_
private

Definition at line 99 of file joy.h.

Max Joy::max_
private

Definition at line 112 of file joy.h.

std::string Joy::namespace_
private

Definition at line 95 of file joy.h.

ros::NodeHandle Joy::nh_
private

Definition at line 90 of file joy.h.

bool Joy::override_autopilot_ = true
private

Definition at line 104 of file joy.h.

bool Joy::paused = true
private

Definition at line 105 of file joy.h.

geometry_msgs::Pose Joy::reset_pose_
private

Definition at line 114 of file joy.h.

geometry_msgs::Twist Joy::reset_twist_
private

Definition at line 115 of file joy.h.

double Joy::v_yaw_step_
private

Definition at line 125 of file joy.h.


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


rosflight_utils
Author(s):
autogenerated on Wed Jul 3 2019 20:00:31