test route finish

This commit is contained in:
2023-04-25 14:46:02 +08:00
parent 2efa5165de
commit 8831cb7e6e
8 changed files with 72 additions and 38 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
#include <geometry_msgs/TwistStamped.h>
#include <mavros_msgs/GlobalPositionTarget.h>
#include <class_model/sensor.h>
#include <geographic_msgs/GeoPoseStamped.h>
// #include <geographic_msgs/GeoPoseStamped.h>
class CommandClass {
public:
@@ -25,7 +25,7 @@ private:
ros::NodeHandle node_handle_;
geometry_msgs::TwistStamped msg;
mavros_msgs::GlobalPositionTarget goal_position;
// mavros_msgs::GlobalPositionTarget goal_position;
global_location current_location;
global_location target_location;
global_location origin_location;
+1 -1
View File
@@ -65,7 +65,7 @@ private:
global_location pre_tar,ref_point; // function plane()'s variable
float slope,c,y; // function plane()'s variable
global_location pre_target; // function plane()'s variable
int flag = 0;
int flag = 0,pre_plane = 0;
void calculate_position(float k,float theta,int plane);
void plane(global_location* target, global_location* leader, global_location* follower);