Public Member Functions | Private Types | Private Member Functions | Private Attributes
DJISDKNode Class Reference

#include <dji_sdk_node.h>

List of all members.

Public Member Functions

 DJISDKNode (ros::NodeHandle &nh, ros::NodeHandle &nh_private)

Private Types

typedef
actionlib::SimpleActionServer
< dji_sdk::DroneTaskAction > 
DroneTaskActionServer
typedef
actionlib::SimpleActionServer
< dji_sdk::GlobalPositionNavigationAction > 
GlobalPositionNavigationActionServer
typedef
actionlib::SimpleActionServer
< dji_sdk::LocalPositionNavigationAction > 
LocalPositionNavigationActionServer
typedef
actionlib::SimpleActionServer
< dji_sdk::WaypointNavigationAction > 
WaypointNavigationActionServer

Private Member Functions

bool activation_callback (dji_sdk::Activation::Request &request, dji_sdk::Activation::Response &response)
bool attitude_control_callback (dji_sdk::AttitudeControl::Request &request, dji_sdk::AttitudeControl::Response &response)
void broadcast_callback ()
bool camera_action_control_callback (dji_sdk::CameraActionControl::Request &request, dji_sdk::CameraActionControl::Response &response)
bool drone_arm_control_callback (dji_sdk::DroneArmControl::Request &request, dji_sdk::DroneArmControl::Response &response)
bool drone_task_action_callback (const dji_sdk::DroneTaskGoalConstPtr &goal)
bool drone_task_control_callback (dji_sdk::DroneTaskControl::Request &request, dji_sdk::DroneTaskControl::Response &response)
bool gimbal_angle_control_callback (dji_sdk::GimbalAngleControl::Request &request, dji_sdk::GimbalAngleControl::Response &response)
bool gimbal_speed_control_callback (dji_sdk::GimbalSpeedControl::Request &request, dji_sdk::GimbalSpeedControl::Response &response)
bool global_position_control_callback (dji_sdk::GlobalPositionControl::Request &request, dji_sdk::GlobalPositionControl::Response &response)
bool global_position_navigation_action_callback (const dji_sdk::GlobalPositionNavigationGoalConstPtr &goal)
void gps_convert_ned (float &ned_x, float &ned_y, double gps_t_lon, double gps_t_lat, double gps_r_lon, double gps_r_lat)
dji_sdk::LocalPosition gps_convert_ned (dji_sdk::GlobalPosition loc)
void init_actions (ros::NodeHandle &nh)
int init_parameters (ros::NodeHandle &nh_private)
void init_publishers (ros::NodeHandle &nh)
void init_services (ros::NodeHandle &nh)
bool local_position_control_callback (dji_sdk::LocalPositionControl::Request &request, dji_sdk::LocalPositionControl::Response &response)
bool local_position_navigation_action_callback (const dji_sdk::LocalPositionNavigationGoalConstPtr &goal)
bool message_frequency_control_callback (dji_sdk::MessageFrequencyControl::Request &request, dji_sdk::MessageFrequencyControl::Response &response)
bool process_waypoint (dji_sdk::Waypoint new_waypoint)
bool sdk_permission_control_callback (dji_sdk::SDKPermissionControl::Request &request, dji_sdk::SDKPermissionControl::Response &response)
bool send_data_to_remote_device_callback (dji_sdk::SendDataToRemoteDevice::Request &request, dji_sdk::SendDataToRemoteDevice::Response &response)
bool sync_flag_control_callback (dji_sdk::SyncFlagControl::Request &request, dji_sdk::SyncFlagControl::Response &response)
void transparent_transmission_callback (unsigned char *buf, unsigned char len)
bool velocity_control_callback (dji_sdk::VelocityControl::Request &request, dji_sdk::VelocityControl::Response &response)
bool version_check_callback (dji_sdk::VersionCheck::Request &requset, dji_sdk::VersionCheck::Response &response)
bool virtual_rc_data_control_callback (dji_sdk::VirtualRCDataControl::Request &request, dji_sdk::VirtualRCDataControl::Response &response)
bool virtual_rc_enable_control_callback (dji_sdk::VirtualRCEnableControl::Request &request, dji_sdk::VirtualRCEnableControl::Response &response)
bool waypoint_navigation_action_callback (const dji_sdk::WaypointNavigationGoalConstPtr &goal)

Private Attributes

dji_sdk::A3GPS A3_GPS
ros::Publisher A3_GPS_info_publisher
dji_sdk::A3RTK A3_RTK
ros::Publisher A3_RTK_info_publisher
dji_sdk::Acceleration acceleration
ros::Publisher acceleration_publisher
ros::Publisher activation_publisher
bool activation_result = false
ros::ServiceServer activation_service
char app_key [65]
ros::ServiceServer attitude_control_service
dji_sdk::AttitudeQuaternion attitude_quaternion
ros::Publisher attitude_quaternion_publisher
ros::ServiceServer camera_action_control_service
dji_sdk::Compass compass
ros::Publisher compass_publisher
ros::Publisher data_received_from_remote_device_publisher
DJISDKMissiondji_sdk_mission
ros::ServiceServer drone_arm_control_service
DroneTaskActionServerdrone_task_action_server
ros::ServiceServer drone_task_control_service
dji_sdk::DroneTaskFeedback drone_task_feedback
dji_sdk::DroneTaskResult drone_task_result
dji_sdk::FlightControlInfo flight_control_info
ros::Publisher flight_control_info_publisher
uint8_t flight_status
ros::Publisher flight_status_publisher
dji_sdk::Gimbal gimbal
ros::ServiceServer gimbal_angle_control_service
ros::Publisher gimbal_publisher
ros::ServiceServer gimbal_speed_control_service
dji_sdk::GlobalPosition global_position
ros::ServiceServer global_position_control_service
GlobalPositionNavigationActionServerglobal_position_navigation_action_server
dji_sdk::GlobalPositionNavigationFeedback global_position_navigation_feedback
dji_sdk::GlobalPositionNavigationResult global_position_navigation_result
ros::Publisher global_position_publisher
dji_sdk::GlobalPosition global_position_ref
int global_position_ref_seted = 0
dji_sdk::LocalPosition local_position
ros::ServiceServer local_position_control_service
LocalPositionNavigationActionServerlocal_position_navigation_action_server
dji_sdk::LocalPositionNavigationFeedback local_position_navigation_feedback
dji_sdk::LocalPositionNavigationResult local_position_navigation_result
ros::Publisher local_position_publisher
dji_sdk::LocalPosition local_position_ref
bool localposbase_use_height = true
ros::ServiceServer message_frequency_control_service
nav_msgs::Odometry odometry
ros::Publisher odometry_publisher
dji_sdk::PowerStatus power_status
ros::Publisher power_status_publisher
dji_sdk::RCChannels rc_channels
ros::Publisher rc_channels_publisher
ros::ServiceServer sdk_permission_control_service
ros::ServiceServer send_data_to_remote_device_service
ros::ServiceServer sync_flag_control_service
dji_sdk::TimeStamp time_stamp
ros::Publisher time_stamp_publisher
unsigned char transparent_transmission_data [100]
ActivateData user_act_data
dji_sdk::Velocity velocity
ros::ServiceServer velocity_control_service
ros::Publisher velocity_publisher
ros::ServiceServer version_check_service
ros::ServiceServer virtual_rc_data_control_service
ros::ServiceServer virtual_rc_enable_control_service
WaypointNavigationActionServerwaypoint_navigation_action_server
dji_sdk::WaypointNavigationFeedback waypoint_navigation_feedback
dji_sdk::WaypointNavigationResult waypoint_navigation_result

Detailed Description

Definition at line 30 of file dji_sdk_node.h.


Member Typedef Documentation

typedef actionlib::SimpleActionServer<dji_sdk::DroneTaskAction> DJISDKNode::DroneTaskActionServer [private]

Definition at line 171 of file dji_sdk_node.h.

typedef actionlib::SimpleActionServer<dji_sdk::GlobalPositionNavigationAction> DJISDKNode::GlobalPositionNavigationActionServer [private]

Definition at line 173 of file dji_sdk_node.h.

typedef actionlib::SimpleActionServer<dji_sdk::LocalPositionNavigationAction> DJISDKNode::LocalPositionNavigationActionServer [private]

Definition at line 172 of file dji_sdk_node.h.

typedef actionlib::SimpleActionServer<dji_sdk::WaypointNavigationAction> DJISDKNode::WaypointNavigationActionServer [private]

Definition at line 174 of file dji_sdk_node.h.


Constructor & Destructor Documentation

Definition at line 385 of file dji_sdk_node_main.cpp.


Member Function Documentation

bool DJISDKNode::activation_callback ( dji_sdk::Activation::Request &  request,
dji_sdk::Activation::Response &  response 
) [private]

Definition at line 15 of file dji_sdk_node_services.cpp.

bool DJISDKNode::attitude_control_callback ( dji_sdk::AttitudeControl::Request &  request,
dji_sdk::AttitudeControl::Response &  response 
) [private]

Definition at line 23 of file dji_sdk_node_services.cpp.

void DJISDKNode::broadcast_callback ( ) [private]

Definition at line 28 of file dji_sdk_node_main.cpp.

bool DJISDKNode::camera_action_control_callback ( dji_sdk::CameraActionControl::Request &  request,
dji_sdk::CameraActionControl::Response &  response 
) [private]

Definition at line 39 of file dji_sdk_node_services.cpp.

bool DJISDKNode::drone_arm_control_callback ( dji_sdk::DroneArmControl::Request &  request,
dji_sdk::DroneArmControl::Response &  response 
) [private]

Definition at line 266 of file dji_sdk_node_services.cpp.

bool DJISDKNode::drone_task_action_callback ( const dji_sdk::DroneTaskGoalConstPtr &  goal) [private]

Definition at line 86 of file dji_sdk_node_actions.cpp.

bool DJISDKNode::drone_task_control_callback ( dji_sdk::DroneTaskControl::Request &  request,
dji_sdk::DroneTaskControl::Response &  response 
) [private]

Definition at line 60 of file dji_sdk_node_services.cpp.

bool DJISDKNode::gimbal_angle_control_callback ( dji_sdk::GimbalAngleControl::Request &  request,
dji_sdk::GimbalAngleControl::Response &  response 
) [private]

Definition at line 83 of file dji_sdk_node_services.cpp.

bool DJISDKNode::gimbal_speed_control_callback ( dji_sdk::GimbalSpeedControl::Request &  request,
dji_sdk::GimbalSpeedControl::Response &  response 
) [private]

Definition at line 103 of file dji_sdk_node_services.cpp.

bool DJISDKNode::global_position_control_callback ( dji_sdk::GlobalPositionControl::Request &  request,
dji_sdk::GlobalPositionControl::Response &  response 
) [private]

Definition at line 118 of file dji_sdk_node_services.cpp.

bool DJISDKNode::global_position_navigation_action_callback ( const dji_sdk::GlobalPositionNavigationGoalConstPtr &  goal) [private]

Definition at line 181 of file dji_sdk_node_actions.cpp.

void DJISDKNode::gps_convert_ned ( float &  ned_x,
float &  ned_y,
double  gps_t_lon,
double  gps_t_lat,
double  gps_r_lon,
double  gps_r_lat 
) [private]

Definition at line 405 of file dji_sdk_node_main.cpp.

dji_sdk::LocalPosition DJISDKNode::gps_convert_ned ( dji_sdk::GlobalPosition  loc) [private]

Definition at line 415 of file dji_sdk_node_main.cpp.

void DJISDKNode::init_actions ( ros::NodeHandle nh) [inline, private]

Definition at line 195 of file dji_sdk_node.h.

int DJISDKNode::init_parameters ( ros::NodeHandle nh_private) [private]

Definition at line 318 of file dji_sdk_node_main.cpp.

void DJISDKNode::init_publishers ( ros::NodeHandle nh) [inline, private]

Definition at line 84 of file dji_sdk_node.h.

void DJISDKNode::init_services ( ros::NodeHandle nh) [inline, private]

Definition at line 149 of file dji_sdk_node.h.

bool DJISDKNode::local_position_control_callback ( dji_sdk::LocalPositionControl::Request &  request,
dji_sdk::LocalPositionControl::Response &  response 
) [private]

Definition at line 150 of file dji_sdk_node_services.cpp.

bool DJISDKNode::local_position_navigation_action_callback ( const dji_sdk::LocalPositionNavigationGoalConstPtr &  goal) [private]

Definition at line 114 of file dji_sdk_node_actions.cpp.

bool DJISDKNode::message_frequency_control_callback ( dji_sdk::MessageFrequencyControl::Request &  request,
dji_sdk::MessageFrequencyControl::Response &  response 
) [private]

Definition at line 286 of file dji_sdk_node_services.cpp.

bool DJISDKNode::process_waypoint ( dji_sdk::Waypoint  new_waypoint) [private]

Definition at line 16 of file dji_sdk_node_actions.cpp.

bool DJISDKNode::sdk_permission_control_callback ( dji_sdk::SDKPermissionControl::Request &  request,
dji_sdk::SDKPermissionControl::Response &  response 
) [private]

Definition at line 177 of file dji_sdk_node_services.cpp.

bool DJISDKNode::send_data_to_remote_device_callback ( dji_sdk::SendDataToRemoteDevice::Request &  request,
dji_sdk::SendDataToRemoteDevice::Response &  response 
) [private]

Definition at line 296 of file dji_sdk_node_services.cpp.

bool DJISDKNode::sync_flag_control_callback ( dji_sdk::SyncFlagControl::Request &  request,
dji_sdk::SyncFlagControl::Response &  response 
) [private]

Definition at line 276 of file dji_sdk_node_services.cpp.

void DJISDKNode::transparent_transmission_callback ( unsigned char *  buf,
unsigned char  len 
) [private]

Definition at line 20 of file dji_sdk_node_main.cpp.

bool DJISDKNode::velocity_control_callback ( dji_sdk::VelocityControl::Request &  request,
dji_sdk::VelocityControl::Response &  response 
) [private]

Definition at line 196 of file dji_sdk_node_services.cpp.

bool DJISDKNode::version_check_callback ( dji_sdk::VersionCheck::Request &  requset,
dji_sdk::VersionCheck::Response &  response 
) [private]

Definition at line 218 of file dji_sdk_node_services.cpp.

bool DJISDKNode::virtual_rc_data_control_callback ( dji_sdk::VirtualRCDataControl::Request &  request,
dji_sdk::VirtualRCDataControl::Response &  response 
) [private]

Definition at line 240 of file dji_sdk_node_services.cpp.

bool DJISDKNode::virtual_rc_enable_control_callback ( dji_sdk::VirtualRCEnableControl::Request &  request,
dji_sdk::VirtualRCEnableControl::Response &  response 
) [private]

Definition at line 228 of file dji_sdk_node_services.cpp.

bool DJISDKNode::waypoint_navigation_action_callback ( const dji_sdk::WaypointNavigationGoalConstPtr &  goal) [private]

Definition at line 251 of file dji_sdk_node_actions.cpp.


Member Data Documentation

dji_sdk::A3GPS DJISDKNode::A3_GPS [private]

Definition at line 49 of file dji_sdk_node.h.

Definition at line 81 of file dji_sdk_node.h.

dji_sdk::A3RTK DJISDKNode::A3_RTK [private]

Definition at line 50 of file dji_sdk_node.h.

Definition at line 82 of file dji_sdk_node.h.

dji_sdk::Acceleration DJISDKNode::acceleration [private]

Definition at line 34 of file dji_sdk_node.h.

Definition at line 66 of file dji_sdk_node.h.

Definition at line 65 of file dji_sdk_node.h.

bool DJISDKNode::activation_result = false [private]

Definition at line 53 of file dji_sdk_node.h.

Definition at line 112 of file dji_sdk_node.h.

char DJISDKNode::app_key[65] [private]

Definition at line 60 of file dji_sdk_node.h.

Definition at line 113 of file dji_sdk_node.h.

dji_sdk::AttitudeQuaternion DJISDKNode::attitude_quaternion [private]

Definition at line 35 of file dji_sdk_node.h.

Definition at line 67 of file dji_sdk_node.h.

Definition at line 114 of file dji_sdk_node.h.

dji_sdk::Compass DJISDKNode::compass [private]

Definition at line 36 of file dji_sdk_node.h.

Definition at line 68 of file dji_sdk_node.h.

Definition at line 79 of file dji_sdk_node.h.

Definition at line 59 of file dji_sdk_node.h.

Definition at line 127 of file dji_sdk_node.h.

Definition at line 176 of file dji_sdk_node.h.

Definition at line 115 of file dji_sdk_node.h.

dji_sdk::DroneTaskFeedback DJISDKNode::drone_task_feedback [private]

Definition at line 181 of file dji_sdk_node.h.

dji_sdk::DroneTaskResult DJISDKNode::drone_task_result [private]

Definition at line 182 of file dji_sdk_node.h.

dji_sdk::FlightControlInfo DJISDKNode::flight_control_info [private]

Definition at line 37 of file dji_sdk_node.h.

Definition at line 69 of file dji_sdk_node.h.

uint8_t DJISDKNode::flight_status [private]

Definition at line 38 of file dji_sdk_node.h.

Definition at line 70 of file dji_sdk_node.h.

dji_sdk::Gimbal DJISDKNode::gimbal [private]

Definition at line 39 of file dji_sdk_node.h.

Definition at line 116 of file dji_sdk_node.h.

Definition at line 71 of file dji_sdk_node.h.

Definition at line 117 of file dji_sdk_node.h.

dji_sdk::GlobalPosition DJISDKNode::global_position [private]

Definition at line 40 of file dji_sdk_node.h.

Definition at line 118 of file dji_sdk_node.h.

Definition at line 178 of file dji_sdk_node.h.

dji_sdk::GlobalPositionNavigationFeedback DJISDKNode::global_position_navigation_feedback [private]

Definition at line 185 of file dji_sdk_node.h.

dji_sdk::GlobalPositionNavigationResult DJISDKNode::global_position_navigation_result [private]

Definition at line 186 of file dji_sdk_node.h.

Definition at line 72 of file dji_sdk_node.h.

dji_sdk::GlobalPosition DJISDKNode::global_position_ref [private]

Definition at line 41 of file dji_sdk_node.h.

Definition at line 56 of file dji_sdk_node.h.

dji_sdk::LocalPosition DJISDKNode::local_position [private]

Definition at line 42 of file dji_sdk_node.h.

Definition at line 119 of file dji_sdk_node.h.

Definition at line 177 of file dji_sdk_node.h.

dji_sdk::LocalPositionNavigationFeedback DJISDKNode::local_position_navigation_feedback [private]

Definition at line 183 of file dji_sdk_node.h.

dji_sdk::LocalPositionNavigationResult DJISDKNode::local_position_navigation_result [private]

Definition at line 184 of file dji_sdk_node.h.

Definition at line 73 of file dji_sdk_node.h.

dji_sdk::LocalPosition DJISDKNode::local_position_ref [private]

Definition at line 43 of file dji_sdk_node.h.

bool DJISDKNode::localposbase_use_height = true [private]

Definition at line 54 of file dji_sdk_node.h.

Definition at line 129 of file dji_sdk_node.h.

nav_msgs::Odometry DJISDKNode::odometry [private]

Definition at line 47 of file dji_sdk_node.h.

Definition at line 77 of file dji_sdk_node.h.

dji_sdk::PowerStatus DJISDKNode::power_status [private]

Definition at line 44 of file dji_sdk_node.h.

Definition at line 74 of file dji_sdk_node.h.

dji_sdk::RCChannels DJISDKNode::rc_channels [private]

Definition at line 45 of file dji_sdk_node.h.

Definition at line 75 of file dji_sdk_node.h.

Definition at line 120 of file dji_sdk_node.h.

Definition at line 123 of file dji_sdk_node.h.

Definition at line 128 of file dji_sdk_node.h.

dji_sdk::TimeStamp DJISDKNode::time_stamp [private]

Definition at line 48 of file dji_sdk_node.h.

Definition at line 78 of file dji_sdk_node.h.

unsigned char DJISDKNode::transparent_transmission_data[100] [private]

Definition at line 61 of file dji_sdk_node.h.

Definition at line 62 of file dji_sdk_node.h.

dji_sdk::Velocity DJISDKNode::velocity [private]

Definition at line 46 of file dji_sdk_node.h.

Definition at line 121 of file dji_sdk_node.h.

Definition at line 76 of file dji_sdk_node.h.

Definition at line 122 of file dji_sdk_node.h.

Definition at line 126 of file dji_sdk_node.h.

Definition at line 125 of file dji_sdk_node.h.

Definition at line 179 of file dji_sdk_node.h.

dji_sdk::WaypointNavigationFeedback DJISDKNode::waypoint_navigation_feedback [private]

Definition at line 187 of file dji_sdk_node.h.

dji_sdk::WaypointNavigationResult DJISDKNode::waypoint_navigation_result [private]

Definition at line 188 of file dji_sdk_node.h.


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


dji_sdk
Author(s): Botao Hu
autogenerated on Thu Jun 6 2019 17:55:30