25 #ifndef ARDRONE_AUTONOMY_ARDRONE_DRIVER_H 26 #define ARDRONE_AUTONOMY_ARDRONE_DRIVER_H 35 #include <sensor_msgs/Image.h> 36 #include <sensor_msgs/Imu.h> 37 #include <geometry_msgs/Vector3Stamped.h> 38 #include <std_srvs/Empty.h> 39 #include <nav_msgs/Odometry.h> 40 #include <ardrone_autonomy/Navdata.h> 49 #include <utils/ardrone_gen_ids.h> 50 #include <ardrone_tool/ardrone_version.h> 51 #include <ardrone_tool/ardrone_tool.h> 54 #define NAVDATA_STRUCTS_INCLUDES 56 #undef NAVDATA_STRUCTS_INCLUDES 58 #define _DEG2RAD 0.01745331111 59 #define _RAD2DEG 57.2957184819 61 #define DRIVER_USERNAME "ardrone_driver" 62 #define DRIVER_APPNAME "ardrone_driver" 63 #define CAMERA_QUEUE_SIZE (30) 64 #define NAVDATA_QUEUE_SIZE (200) 72 static bool ReadCovParams(
const std::string& param_name, boost::array<double, 9> &cov_array);
78 #define NAVDATA_STRUCTS_HEADER_PUBLIC 80 #undef NAVDATA_STRUCTS_HEADER_PUBLIC 125 #define NAVDATA_STRUCTS_HEADER_PRIVATE 127 #undef NAVDATA_STRUCTS_HEADER_PRIVATE 146 #endif // ARDRONE_AUTONOMY_ARDRONE_DRIVER_H static double CalcAverage(const std::vector< double > &vec)
ros::Subscriber takeoff_sub
std::string drone_frame_id
camera_info_manager::CameraInfoManager * cinfo_hori
camera_info_manager::CameraInfoManager * cinfo_vert
ros::Publisher navdata_pub
tf::StampedTransform tf_base_front
ros::Subscriber reset_sub
int32_t copy_current_navdata_id
tf::TransformBroadcaster tf_broad
image_transport::CameraPublisher vert_pub
void PublishOdometry(const navdata_unpacked_t &navdata_raw, const ros::Time &navdata_receive_time)
image_transport::CameraPublisher hori_pub
video_decoder_config_t vec
image_transport::CameraPublisher image_pub
int32_t copy_current_frame_id
ardrone_autonomy::Navdata legacynavdata_msg
ros::Time last_receive_time
std::string drone_frame_base
tf::StampedTransform tf_base_bottom
tf::StampedTransform tf_odom
ros::ServiceServer flat_trim_srv
ros::ServiceServer set_cam_channel_srv
image_transport::ImageTransport image_transport
ros::ServiceServer toggle_cam_srv
ros::ServiceServer set_flight_anim_srv
static bool ReadCovParams(const std::string ¶m_name, boost::array< double, 9 > &cov_array)
ros::ServiceServer set_record_srv
std::string drone_frame_imu
ros::ServiceServer set_led_animation_srv
std::string drone_frame_front_cam
ros::NodeHandle private_nh
ros::NodeHandle node_handle
geometry_msgs::Vector3Stamped mag_msg
ros::Subscriber cmd_vel_sub
void PublishNavdata(const navdata_unpacked_t &navdata_raw, const ros::Time &navdata_receive_time)
std::string drone_frame_bottom_cam