bionic (unfinished)

This commit is contained in:
2023-02-09 23:56:07 +08:00
parent 9701eb22d0
commit 66581e37d2
5 changed files with 26 additions and 4 deletions
@@ -1,7 +1,10 @@
#include <std_msgs/String.h>
#include "class_model/gps_location.h"
typedef struct DroneStatus
{
/* data */
global_location init_location;
int plane;
std::string leader;
std::string DroneName;
} DroneStatus;
@@ -26,7 +26,10 @@ public:
DroneStatus drone3;
void follower();
float lon[3],lat[3];
private:
// ROS NodeHandle
ros::NodeHandle node_handle_;
@@ -39,6 +42,7 @@ private:
void plane(global_location target_location,global_location leader_location,global_location follower_location);
void choose_leader();
void follow();
void get_location();
};