#include <ros/ros.h>
#include <actionlib/server/simple_action_server.h>
#include <actionlib/client/simple_action_client.h>
#include <std_msgs/Bool.h>
#include <dji_sdk/dji_drone.h>
#include <dji_sdk_web_groundstation/WebWaypointReceiveAction.h>
#include <dji_sdk_web_groundstation/MapNavSrvCmd.h>
#include <dji_sdk/WaypointNavigationAction.h>
Go to the source code of this file.
Typedefs | |
typedef dji_sdk_web_groundstation::WebWaypointReceiveAction | Action_t |
typedef dji_sdk_web_groundstation::WebWaypointReceiveFeedback | Feedback_t |
typedef dji_sdk_web_groundstation::WebWaypointReceiveGoal | Goal_t |
typedef dji_sdk_web_groundstation::WebWaypointReceiveGoalConstPtr | GoalConstPtr_t |
typedef dji_sdk_web_groundstation::WebWaypointReceiveResult | Result_t |
typedef dji_sdk::WaypointNavigationAction | WPAction_t |
Functions | |
void | cmdCB (const dji_sdk_web_groundstation::MapNavSrvCmdConstPtr &msg) |
void | ctrlCB (const std_msgs::Bool::ConstPtr &msg) |
void | goalCB () |
int | main (int argc, char *argv[]) |
void | preemptCB () |
void | wp_feedbackCB (const dji_sdk::WaypointNavigationFeedbackConstPtr &fb) |
Variables | |
uint8_t | alt_p_ |
SimpleActionServer< Action_t > * | asPtr_ |
uint8_t | cmdCode_ = 0 |
uint64_t | cmdTid_ = 1 |
DJIDrone * | drone |
uint8_t | idx_p_ |
uint8_t | lat_p_ |
uint8_t | lon_p_ |
uint8_t | stage_ = 0 |
uint64_t | tid_ = 0 |
typedef dji_sdk_web_groundstation::WebWaypointReceiveAction Action_t |
Definition at line 12 of file map_nav_srv.cpp.
typedef dji_sdk_web_groundstation::WebWaypointReceiveFeedback Feedback_t |
Definition at line 15 of file map_nav_srv.cpp.
typedef dji_sdk_web_groundstation::WebWaypointReceiveGoal Goal_t |
Definition at line 13 of file map_nav_srv.cpp.
typedef dji_sdk_web_groundstation::WebWaypointReceiveGoalConstPtr GoalConstPtr_t |
Definition at line 14 of file map_nav_srv.cpp.
typedef dji_sdk_web_groundstation::WebWaypointReceiveResult Result_t |
Definition at line 16 of file map_nav_srv.cpp.
typedef dji_sdk::WaypointNavigationAction WPAction_t |
Definition at line 18 of file map_nav_srv.cpp.
void cmdCB | ( | const dji_sdk_web_groundstation::MapNavSrvCmdConstPtr & | msg | ) |
Definition at line 200 of file map_nav_srv.cpp.
void ctrlCB | ( | const std_msgs::Bool::ConstPtr & | msg | ) |
Definition at line 207 of file map_nav_srv.cpp.
void goalCB | ( | ) |
Definition at line 42 of file map_nav_srv.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 217 of file map_nav_srv.cpp.
void preemptCB | ( | ) |
Definition at line 196 of file map_nav_srv.cpp.
void wp_feedbackCB | ( | const dji_sdk::WaypointNavigationFeedbackConstPtr & | fb | ) |
Definition at line 35 of file map_nav_srv.cpp.
uint8_t alt_p_ |
Definition at line 31 of file map_nav_srv.cpp.
Definition at line 20 of file map_nav_srv.cpp.
uint8_t cmdCode_ = 0 |
Definition at line 24 of file map_nav_srv.cpp.
uint64_t cmdTid_ = 1 |
Definition at line 27 of file map_nav_srv.cpp.
Definition at line 22 of file map_nav_srv.cpp.
uint8_t idx_p_ |
Definition at line 32 of file map_nav_srv.cpp.
uint8_t lat_p_ |
Definition at line 29 of file map_nav_srv.cpp.
uint8_t lon_p_ |
Definition at line 30 of file map_nav_srv.cpp.
uint8_t stage_ = 0 |
Definition at line 25 of file map_nav_srv.cpp.
uint64_t tid_ = 0 |
Definition at line 26 of file map_nav_srv.cpp.