A planning method for multi-UAV collaborative obstacle avoidance

By combining the distributed information fusion algorithm and maximum consistency theory with the Fast Marching algorithm and Bezier curve, the problem of insufficient efficiency and adaptability of collaborative obstacle avoidance planning for multiple UAVs in complex environments is solved, and efficient and safe collaborative task execution is achieved. .

CN114967744BActive Publication Date: 2024-09-27HARBIN INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210608189.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-09-27
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

In multi-UAV collaborative missions, existing technologies are difficult to effectively plan collaborative obstacle avoidance trajectories in unknown and complex environments, resulting in low mission efficiency and poor adaptability. Moreover, traditional formation obstacle avoidance algorithms ignore the sharing and fusion of sensing information and flight information. question.

Method used

Using the distributed information fusion algorithm and maximum consistency theory, the distributed information fusion algorithm is designed through information interaction between drones, and combined with the Fast Marching algorithm and Bezier curve, the barrier-free global path and local trajectory are optimized to achieve the consistency of perceived information. A planning approach that combines the guidance of collaborative structures.

Benefits of technology

It improves the efficiency of collaborative mission execution of multiple UAVs in complex environments, reduces collision risks and mission failure rates, enhances the adaptability and collaboration of obstacle avoidance planning, and meets the needs of real-time online planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114967744B
    Figure CN114967744B
Patent Text Reader

Abstract

A planning method for collaborative obstacle avoidance of multiple UAVs relates to the technical field of UAV planning, and is aimed at the problem in the prior art that multiple UAVs cannot efficiently complete collaborative tasks in unknown and complex environments. This application designs a set of evaluation functions for grids based on the Fast Marching algorithm, reduces the conduction of simulated waves at non-essential grids, can speed up the search speed of the global path, and improve planning efficiency; and only optimizes local trajectories, ensures the smoothness of UAV motion and does not require additional smoothing filtering algorithms, greatly reduces the amount of calculation compared to global trajectory optimization, can save time costs to a great extent, and better meet real-time online planning needs. This application combines the consistency of perception information with the guidance of collaborative structure to make up for the shortcomings of the lack of flexibility and adaptability of the collaborative obstacle avoidance planning method for multiple UAVs in unknown and complex environments, thereby effectively improving the execution efficiency of collaborative tasks for multiple UAVs in unknown environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unmanned aerial vehicle (UAV) planning, and in particular to a planning method for coordinated obstacle avoidance of multiple UAVs. Background Art

[0002] As the application of drones in many fields continues to expand, the difficulty of executing tasks is also increasing. Single drone operations can no longer meet the needs of complex tasks, and multi-drone collaborative task modes are widely recognized and applied. In the multi-drone task collaboration scenario, multiple drones usually adopt a distributed structure and have a collaborative structure, also known as a task formation, to maximize the efficiency and flexibility of task execution.

[0003] When multiple UAVs perform collaborative tasks in an unknown and complex environment, it is inevitable to encounter conflicts between avoiding sudden obstacles and maintaining collaborative structures. It is crucial to effectively use perception information to plan smooth collaborative obstacle avoidance trajectories for multiple UAVs. Under the premise of satisfying multiple types of constraints of each UAV and flight safety, the collaborative tasks of UAVs should be performed as closely as possible to the collaborative structure. It can be said that a suitable collaborative obstacle avoidance planning method for multiple UAVs is a prerequisite for the smooth and efficient execution of collaborative tasks for multiple UAVs. Therefore, the study of collaborative obstacle avoidance planning among multiple UAVs has a more far-reaching application value.

[0004] In terms of multi-UAV collaborative obstacle avoidance, most existing methods focus on formation strategies, collaborative control, and single-machine obstacle avoidance planning. When encountering obstacles, the formation is changed to avoid obstacles, but collaborative obstacle avoidance based on collaborative mechanisms is not possible. At the same time, the sharing and integration of perception information and flight information of multiple UAVs in the process of obstacle avoidance planning is ignored. Therefore, traditional formation obstacle avoidance algorithms cannot make optimal collaborative obstacle avoidance planning decisions based on consistent perception information and collaborative structures.

[0005] Patent publication CN113442140A proposes a Cartesian space obstacle avoidance planning method based on Bezier optimization, using a fourth-order Bezier curve as the target trajectory model for algorithm optimization, determining the positions of the three middle control points to determine the trajectory shape, using a particle swarm algorithm to iteratively optimize the positions of the three middle control points, using a fourth-order Bezier curve to calculate the obstacle avoidance trajectory equation, and completing the obstacle avoidance trajectory planning in combination with the actual control sampling cycle. However, this method optimizes the starting and end trajectories into a Bezier trajectory with only five key points, and uses a particle swarm algorithm to iteratively optimize the positions of the three middle control points to adjust the shape of the curve. In complex environments, the iteration depth of the particle swarm algorithm will also increase or even become unsolvable, and the adaptability of this method is poor. However, segmenting the trajectory between the starting and end points can better solve the problem of large iteration depth.

[0006] Therefore, combining the consistency of perception information and the guidance of collaborative structure to design a flexible and adaptable multi-UAV collaborative obstacle avoidance planning method is of great significance for multiple UAVs to efficiently complete collaborative tasks in unknown and complex environments. Summary of the invention

[0007] The purpose of the present invention is to propose a planning method for multi-UAV collaborative obstacle avoidance in order to solve the problem that multiple UAVs in the prior art cannot efficiently complete collaborative tasks in unknown and complex environments.

[0008] The technical solution adopted by the present invention to solve the above technical problems is:

[0009] A planning method for multi-UAV collaborative obstacle avoidance includes the following steps:

[0010] Step 1: Set the task scenario parameters and task parameters;

[0011] The mission scenario parameters include: mission environment scenario size, number of drones of the same configuration N uav and grid discreteness resolution;

[0012] The task parameters include: the starting point coordinates start_pt and the end point coordinates end_pt of the collaborative obstacle avoidance planning and the detectable distance of the drone, where the detectable distance of the drone is sense_horizon;

[0013] Step 2: The drone exchanges homogeneous information with neighboring drones through the drone communication neighbor table;

[0014] The homogeneous information includes perception information and flight status information;

[0015] The perception information includes the coordinates of the current position of the drone in the world coordinate system and the local occupancy grid map held by the drone;

[0016] The flight status information includes the drone’s own global path and expected trajectory;

[0017] The steps of constructing the local occupancy grid map are:

[0018] First, the grid discreteness resolution is used to discretize the size of the mission environment scene to obtain the size of the local occupancy grid map. Then, the UAV is used to continuously obtain the position and geometric properties of obstacles within its own perception range through the onboard sensors during the flight, and the position and geometric properties of the obstacles are convexly expanded to obtain the obstacle grid area. Finally, the local occupancy grid map is constructed according to the size of the local occupancy grid map and the obstacle grid area.

[0019] Step 3: Design a distributed information fusion algorithm based on the maximum consistency theory and distributed communication strategy, and then use the distributed information fusion algorithm and the perception information exchanged between the current UAV and other UAVs to iteratively update the local occupancy grid map held by the current UAV itself, and set an identification cache pool. When the information in the identification cache pool is not updated, stop the iteration. At this time, the local occupancy grid map held by the UAV is the optimal global occupancy grid map G;

[0020] Step 4: Search for an obstacle-free shortest global path between the starting point coordinate start_pt and the end point coordinate end_pt of the collaborative obstacle avoidance planning;

[0021] Step 5: Use the obstacle-free shortest global path to select the local target point tag_pt within the sense_horizon range, and optimize the path between the starting coordinate start_pt of the collaborative obstacle avoidance planning and the local target point tag_pt to obtain a smooth and feasible expected trajectory from the starting coordinate start_pt to the local target point tag_pt;

[0022] Step 6: Use the optimal global occupancy grid map G obtained in step 3 to perform collision detection on the smooth feasible expected trajectory obtained in step 5. The specific steps of collision detection are:

[0023] Set the forward check time t_head and the emergency braking time t_stop, and then calculate the collision probability p_collision, which is expressed as:

[0024]

[0025] Among them, dv is the speed of the newly detected obstacle, dp is the current position of the obstacle, odomPt is the current position of the UAV, getOccupy is the occupancy probability acquisition function of the optimal global occupancy grid map G, and prePt is the expected trajectory point of the UAV at time t;

[0026] If the collision probability p_collision is greater than 0.5, it is determined that the smooth feasible expected trajectory has collided with the newly detected obstacle;

[0027] When the collision conflict opportunity is within the forward check time t_head, the collision index is set to 1; when the collision conflict opportunity is within the braking time t_stop, the drone enters the emergency hovering state;

[0028] Step 7: When the time for re-planning is reached, the starting point start_pt of the collaborative obstacle avoidance planning is updated to the expected trajectory point 0.5 seconds ahead of the current moment of the drone, and steps 4, 5, and 6 are re-executed;

[0029] The timing of re-planning is:

[0030] (1) The Euclidean distance between the local target point tag_pt and the current position of the UAV odomPt reaches the set threshold, and the UAV has not reached the destination;

[0031] (2) The collision index value obtained in step 5 is equal to 1;

[0032] (3) The distance between the current UAV and the neighboring UAV is greater than the coordination distance or less than the safety distance, and the distance between the current UAV and the neighboring UAV is obtained through the flight status information exchanged between the current UAV and the other UAVs.

[0033] Furthermore, the obstacle-free shortest global path in step 4 is obtained by the following steps:

[0034] Using the local grid map occupied by the current UAV, the starting coordinate start_pt is used as the wave source to simulate the propagation of the wave in the environment. During the propagation process, the neighboring nodes of the current propagation environment node are evaluated to obtain the evaluation value, and the neighboring node with the smallest evaluation value is selected as the next propagation environment node. When the wave extends to the end coordinate end_pt, the propagation process ends, and the propagation path is traced back along the gradient descent direction of the arrival time at the end coordinate end_pt to obtain a propagation path with the shortest time from the end coordinate end_pt to the starting coordinate start_pt, which is the obstacle-free shortest global path.

[0035] Furthermore, the evaluation value is obtained by an evaluation function f(n) of the current propagation environment node, wherein the evaluation function f(n) includes a time cost function T(n), a heuristic information function H(n) and a collaborative obstacle avoidance benefit function E(n);

[0036] The evaluation function f(n) is expressed as:

[0037] f(n)=γ t T(n)+γ h H(n)-γ e E(n)

[0038] Among them, γ t ,γ h ,γ e They are the proportional coefficients of the time cost function T(n), the heuristic information function H(n) and the collaborative obstacle avoidance benefit function E(n) in the evaluation function f(n).

[0039] Furthermore, the time cost function T(n) is expressed as:

[0040]

[0041] Among them, T x ,T y ,T z are the minimum arrival times of all neighbors of grid n in the x, y, and z directions, respectively, and T x >T y >T z , h is the spacing between adjacent grids, and F is the wave propagation speed at grid n.

[0042] The F is obtained by a velocity field function, which is established based on a local occupancy grid map and using an ESDF map;

[0043] The velocity field function is expressed as:

[0044]

[0045] The heuristic information function H(n) is expressed as:

[0046]

[0047] The collaborative obstacle avoidance benefit function E(n) is expressed as:

[0048]

[0049] Among them, v max is the maximum flight speed of the drone, d is the signed Euclidean distance between the current grid n and the nearest obstacle obtained from the ESDF map, and e is the Euler constant, which is approximately 2.71828. is the hyperbolic tangent function; dx, dy, and dz are the distance differences between grid n and the end point coordinate end_pt in the x, y, and z directions, respectively. ij is the communication relationship between UAV i and UAV j, d ij is the deviation of the reference virtual center between UAV i and UAV j.

[0050] Furthermore, the specific steps of step five are:

[0051] Step 51: Establish the expected trajectory model of the UAV based on the piecewise continuous eighth-order Bezier curve;

[0052] Step 52: Take the set of control points in the expected trajectory model of the UAV as the optimization object, solve the minimization problem of the flight energy consumption cost Je and the collaborative structure consistency cost Jc in the barrier-free safety convex set, that is, the trajectory optimization problem, and obtain the value of the optimization object based on the solution of the trajectory optimization problem. Finally, bring the value of the optimization object into the expected trajectory model to obtain a smooth feasible expected trajectory from the starting point coordinate start_pt to the local target point tag_pt.

[0053] Furthermore, the expected trajectory model of the UAV is expressed as:

[0054]

[0055] Where m is the number of trajectory segments in the expected trajectory model, n is the order of the Bezier curve in the expected trajectory model, i is the superscript and is the nth-order Bezier curve basis function, namely the Bernstein polynomial, p 1,i 、p 2,i …p m,i is the n-order Bezier curve control point corresponding to the trajectory segment numbered 1, 2, ..., m in the expected trajectory model; t is the time parameter, T 0 、T m The start time and end time of the expected trajectory are set respectively, T 0 、T 1 …T m-1 They represent the start time of the trajectories with segment numbers 1, 2, ..., m in the expected trajectory model, s 1 、s 2 …s m The time interval scaling factor for the trajectory segments in the expected trajectory model with the labels 1, 2, ..., m is used to convert the time parameter t from the time interval [T m-1 ,T m ] is scaled to the fixed time interval [0,1].

[0056] Further, the optimization object is expressed as:

[0057]

[0058] Among them, p 1,0 …p 1,8 …p m,0 …p m,8 is the n-order Bezier curve control point p corresponding to the trajectory segment numbered 1, 2, ..., m in the expected trajectory model 1,i 、p 2,i …p m,i Take n = 8, i∈[0,n] for detailed description; x 1,0 …x 1,8 …x m,0 …x m,8 ,y 1,0 …y 1,8 …y m,0 …y m,8 、z 1,0 …z 1,8 …zm,0 …z m,8 are the n-order Bezier curve control points p corresponding to the trajectories with segment numbers 1, 2, ..., m in the expected trajectory model. 1,i 、p 2,i …p m,i Take n=8, i∈[0,n] and expand it in three dimensions: x, y, and z.

[0059] Furthermore, the trajectory optimization problem is expressed as:

[0060] min J=λ e J e +λ c J c

[0061]

[0062]

[0063]

[0064] Among them, J is the objective function of the trajectory optimization problem, J e is the flight energy consumption cost function, J c is the collaborative structure consistent cost function, λ e , c is the proportional coefficient, N is the number of neighboring drones of the current drone i, j is the number of neighboring drones, aij represents the communication relationship between drone i and drone j, are the reference virtual center positions of UAV i and UAV j respectively, and f i (t) is the position of UAV i at time t, O i is the reference virtual center vector of UAV i.

[0065] Furthermore, the specific steps of obtaining a smooth and feasible expected trajectory from the starting point coordinate start_pt to the local target point tag_pt are:

[0066] Step 1: The obstacle-free shortest global path obtained in step 4 intercepts the path between the starting point coordinates start_pt and the local target point tag_pt, and expands each grid in the path into the largest cube in the safe space according to the grid in which it is located. When the cube boundary touches an obstacle or the number of expansions reaches safe_ite, the expansion ends;

[0067] The number of cubes obtained by simplifying the largest cube in the safety space is taken as the number of segments m of the trajectory in the expected trajectory model;

[0068] The starting state of the first segment of the trajectory among the segments m is set. The starting state includes the position start_pt, speed start_vel, and acceleration start_acc of the starting point of the drone, which are expressed as follows:

[0069] p 1,0 ·s 1 =start_pt

[0070] 8(p 1,1 -p 1,0 ) = start_vel

[0071]

[0072] The end state of the trajectory segment is set for the mth trajectory segment in the trajectory segment number m. The end state corresponds to the local target point position tag_pt, and the speed and acceleration are set to zero, which is expressed as follows:

[0073] p m,5 ·s m =tag_pt

[0074] 8(p m,6 -p m,5 )=[0,0,0]

[0075]

[0076] Step 2: Add a maximum speed limit, an acceleration limit, and a continuity limit between segmented trajectories to the expected trajectory model; the maximum speed limit is:

[0077] -v max ≤n·(p j,i -p j,i-1 )≤v max ,i=1,2,...,n

[0078] The acceleration limit is expressed as:

[0079]

[0080] The continuity constraint between the segmented trajectories is expressed as:

[0081] s j ·p j,n -s j+1 ·p j+1,0 =0

[0082] (p j,n -p j,n-1 )-(p j+1,1 -p j+1,0 )=0

[0083]

[0084] Step 3: Use the simplified cube as the definition domain and integrate the contents of step 1 and step 2 to obtain a quadratic programming problem. The solution to the quadratic programming problem is the position of the control point in the expected trajectory model of the UAV, and then a smooth and feasible expected trajectory leading to the local target point is obtained;

[0085] Where n is the order of the Bezier curve in the expected trajectory model, v max 、a max are the maximum velocity and acceleration respectively, p j,i-2 、p j,i-1 、p j,i 、p j,n-2 、p j,n-1 、p j,n They are the control points numbered i-2, i-1, i, n-2, and n in the n-order Bezier curve corresponding to the j-th segment of the trajectory in the m-th segment, respectively. j+1,0 、p j+1,1 、p j+1,2 are the control points with superscripts 0, 1, and 2 in the n-order Bezier curve corresponding to the j+1th segment of the trajectory in the mth segment, s j 、s j+1 They are the trajectory time interval scaling factors for the jth and j+1th segments in the mth trajectory segment.

[0086] Furthermore, the quadratic programming problem is expressed as:

[0087] min p T Qp+C T p+c f

[0088] stp j ∈Ω j ,j=1,2,...,m

[0089] A eq p=b eq

[0090] l ieq ≤A ieq p≤u ieq

[0091] Among them, m is the number of segments of the trajectory, Q is the Hessian matrix of the objective function J, C is the linear coefficient matrix of the objective function J, and c f is the constant term of the objective function J, and p is the n-order Bezier curve control point p corresponding to the trajectory segment numbered 1, 2, ..., m in the expected trajectory model.1,i 、p 2,i …p m,i The matrix representation of p j is the matrix representation of the control points of the n-order Bezier curve corresponding to the j-th segment of the trajectory in the m-th segment, Ω j is the matrix p j The barrier-free safety convex set, that is, the matrix p j The domain of A eq , b eq is the coefficient matrix and constant matrix of the equality constraints of the objective function J, A ieq is the coefficient matrix of the inequality constraints of the objective function J, l ieq 、u ieq The corresponding minimum constant matrix and maximum constant matrix.

[0092] The beneficial effects of the present invention are:

[0093] The distributed structure adopted in this application designs a distributed information fusion algorithm through information interaction of neighboring drones. After a limited number of iterations, all drones in the connected network can obtain globally consistent perception information within a limited perception range, which can greatly improve the perception ability of each drone for real-time situation. Assisting drones to complete collaborative tasks can effectively reduce the failure rate of collaborative tasks. At the same time, through the interaction of flight information, real-time adjustment of its own planning state and optimization of expected trajectory can maximize the fit of the collaborative structure and avoid collisions between multiple drones. Compared with the traditional formation obstacle avoidance planning method, it enriches the coordination and adaptability of obstacle avoidance planning, enabling multiple drones to make optimal collaborative obstacle avoidance planning actions.

[0094] This application designs a set of evaluation functions for the grid based on the Fast Marching algorithm, which reduces the conduction of simulated waves at non-essential grids, speeds up the search for global paths, and improves planning efficiency. It also optimizes only local trajectories, ensuring the smoothness of the UAV's motion without the need for additional smoothing filtering algorithms. Compared with global trajectory optimization, it greatly reduces the amount of calculation, saves time costs to a great extent, and better meets real-time online planning needs.

[0095] The present application method takes into account the interference of both static obstacles and dynamic obstacles, thereby improving the flight safety of the UAV in unknown and complex environments.

[0096] This application combines the consistency of perception information and the guidance of collaborative structure to make up for the shortcomings of the lack of flexibility and adaptability of multi-UAV collaborative obstacle avoidance planning methods in unknown and complex environments, thereby effectively improving the execution efficiency of multi-UAV collaborative tasks in unknown environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0097] Figure 1This is a planning flow chart for multi-UAV collaborative obstacle avoidance in this application;

[0098] Figure 2 This is a pseudo code diagram of the distributed information fusion algorithm of this application;

[0099] Figure 3 This is a schematic diagram of the global path search results for multi-UAV collaborative obstacle avoidance;

[0100] Figure 4 Schematic diagram of local trajectory optimization results for multi-UAV collaborative obstacle avoidance. DETAILED DESCRIPTION

[0101] It should be particularly noted that, in the absence of conflict, the various embodiments disclosed in this application can be combined with each other.

[0102] Specific implementation method 1: refer to Figure 1 Specifically describing this embodiment, a planning method for multi-UAV collaborative obstacle avoidance described in this embodiment includes:

[0103] Step 1: Initialize the parameter set, including task parameters, collaborative structure, collaborative obstacle avoidance planning algorithm and other related parameters.

[0104] Step 2: Environmental perception and fusion. The drone sets the unknown environment as an ideal obstacle-free area. During the flight, the drone continuously obtains information such as the location and geometric properties of obstacles within its perception range through onboard sensors, performs convex expansion processing on the obstacles, and constructs a local occupancy grid map.

[0105] Aircraft of the same configuration continuously exchange homogeneous information with adjacent drones at a certain frequency, and the homogeneous information includes perception information and flight status information. The perception information includes the coordinates of the drone's current position in the world coordinate system and the local occupancy grid map it holds; the flight status information includes the drone's own global path and expected trajectory obtained by the collaborative obstacle avoidance planning algorithm.

[0106] Based on the maximum consistency theory and distributed communication strategy, a distributed information fusion algorithm is designed. After a limited number of iterations, all drones in the connected network can obtain globally consistent perception information within a limited perception range. In addition, through the interaction with the flight information of neighboring drones, a decision-making basis is provided for collaborative obstacle avoidance planning, and the self-planning state is adjusted in real time to optimize the expected trajectory.

[0107] Step 3: Global path search. Determine the starting point and end point coordinates of the collaborative obstacle avoidance planning, use the tool FIESTA to build an incremental ESDF map, and establish a reasonable velocity field for the task area based on the ESDF map. Design the evaluation function set {time cost T(n), heuristic information H(n) and collaborative obstacle avoidance benefit E(n)} of the current grid n based on the Fast Marching algorithm to speed up the global path search and search for an optimal global path without obstacles between the starting point and the end point.

[0108] The search for an optimal global path without obstacles is performed using the Fast Marching (FM) algorithm, which was first proposed by Sethian for solving the Eikonal equation. The numerical method is a level set method for solving wave propagation problems in the field of image processing. This method expresses the mathematical model of wave propagation as an Eikonal Equation, that is, Where F is the wave propagation speed and T is the arrival time of a certain environmental node. The algorithm uses a first-order numerical approximation to efficiently solve the eikonal equation and uses the upwind strategy to estimate That is, the wave will only propagate from a location with a smaller T value to a direction with a larger T value.

[0109] At present, the FM algorithm is gradually applied to the path planning field of mobile robots. The shortest path from the starting point to the target point of the drone can be considered as the shortest path for the wave to reach the target point from the wave source. The path search process is equivalent to the forward propagation process of the wave. During the propagation process, the first-order numerical approximation of the eikonal equation is used to calculate the time required for the wave to reach the neighboring node, and it is used as the evaluation value of the neighboring node. The neighboring node with the smallest evaluation value is selected as the expansion direction of the wave.

[0110] In addition, by setting a reasonable propagation speed F, the path points searched by the FM algorithm can be kept as far away from the obstacle surface and the narrow space in the environment as possible, and be in a wider space, which is beneficial to reducing the attitude change rate of the drone during flight, reducing energy consumption and flight difficulty.

[0111] The time cost T(n) describes the shortest arrival time at grid n, which can be obtained by solving the Eikonal equation, so that the path is more inclined to choose a sparse obstacle environment to avoid frequent changes in flight attitude; the heuristic information H(n) describes the estimated cost of the best path from grid n to the end point, so that the search process is more inclined to expand towards the end point; the collaborative obstacle avoidance benefit E(n) describes that in the global path search process, the path should be located as much as possible in the area with a small deviation of the cumulative reference virtual center of multiple UAVs, guiding the global path of each UAV to fit the collaborative structure as much as possible.

[0112] Step 4: Local trajectory optimization. According to the optimal global path obtained in step 3, select the local target point tag_pt within the observable range, and only optimize the path between the starting point start_pt of the drone and the local target point tag_pt, and generate a smooth and feasible expected trajectory to the local target point to guide the flight. The specific steps include the following:

[0113] Step 4.1: Determine the expected trajectory model of the drone. The use of a piecewise continuous eighth-order Bezier curve can avoid sudden changes in position, velocity, acceleration, and angular velocity at the connection points of each segment of the trajectory. The flexibility of the segmented trajectory also ensures that most feasible trajectories are covered. The expected trajectory model expression is as follows:

[0114]

[0115] The number of segments of the expected trajectory model is m, the order is n=8, and the superscript i∈[0,n]. is the set of control points of the expected trajectory model, is the Bernstein polynomial. [T 1 ,T 2 ,...,T m ] represents the end time pre-allocated for each trajectory, and the total time is T = T m -T 0 ,[s 1 ,s 2 ,...,s m ] represents the time scale factor, which is used to change the time parameter t from [T m-1 ,T m ] is scaled to the fixed time interval [0,1] of the Bezier curve to make the trajectory optimization problem more stable.

[0116] Step 4.2: Determine the optimization problem model. The objective function of the optimization problem is defined as solving the flight energy consumption cost J in the obstacle-free safety convex set. e Consistent cost with collaborative structure J c The model expression of the optimization problem is as follows:

[0117] min J=λ e J e +λ c J c

[0118] where λ e ,λ c is the proportionality coefficient, and the flight energy consumption cost J e The integral of the square of the fourth-order derivative of the trajectory directly corresponds to the flight energy consumption. cThe binary norm that describes the deviation between the current position and the expected position of the collaborative structure. The larger the position deviation, the greater the cost of achieving consistency in the collaborative structure.

[0119] Step 4.3: Determine the constraints. Add the maximum speed and acceleration limits to the expected trajectory, as well as the continuity limit between segmented trajectories. The continuity limit between segmented trajectories describes that the position, speed, and acceleration of the drone are equal at the trajectory connection point between every two segments.

[0120] Step 4.4: Optimize object injection. The local target point is selected as the intersection point of the global path and the observable range, and the drone starting point start_pt and the local target point position tag_pt are set as the starting point and target point of the local trajectory optimization problem.

[0121] Step 4.5: Solving the optimization problem. Since the above trajectory optimization problem is a linearly constrained quadratic minimization problem and the domain is a convex set, it can be transformed into solving a quadratic programming QP problem.

[0122] Step 5: Collision detection. Since the environment perceived by the drone itself is constantly changing, it is necessary to perform a forward safety check on the expected trajectory from the drone’s current position odomPt in a timely manner during the trajectory execution phase.

[0123] Set the forward check time t_ahead, emergency braking time t_stop, collision probability p_collision and the collision index with a default value of 0. When a collision conflict is found in the expected trajectory within the forward check time t_head, the collision index is set to 1; when the collision conflict opportunity is within the braking time t_stop, the drone enters the emergency hovering state at the same time.

[0124] According to whether the collision probability p_collision is greater than 0.5, it is determined whether the expected trajectory point prePt has collided with the newly detected obstacle at time t. The collision probability p_collision is specifically:

[0125]

[0126] Step 6: Online re-planning. Determine the timing of re-planning, update the starting point start_pt of the collaborative obstacle avoidance planning to the expected trajectory point of the drone ahead of the current time by a period of time t_duration, and re-execute steps 3, 4, and 5. The timing of re-planning includes the following:

[0127] (1) The Euclidean distance between the local target point and the location of the UAV is close to a certain threshold and the UAV is not close to the end point.

[0128] (2) The collision index value obtained in step 5 is equal to 1.

[0129] (3) The distance between the neighboring drones is greater than the coordination distance or less than the safety distance.

[0130] Example:

[0131] Step 1: Initialize the parameter set. Mainly includes

[0132] Set the task environment scene size S x ×S y ×S z , the number of obstacles N obstacles , the number of drones with the same configuration N uav , grid discreteness resolution, collaborative structure and other related parameters, as well as UAV communication neighbor table, maximum iteration times env_ite and other distributed information fusion algorithm related parameters and collaborative obstacle avoidance planning starting point coordinates start_pt and end point coordinates end_pt, safe flight area maximum expansion times safe_ite and other global path search and local trajectory optimization related parameters.

[0133] The present invention sets the mission environment area as S, the field of view of the drone's sensor is 120°, the detectable distance is sense_horizon, and the drone divides the mission area S into a three-dimensional grid structure GridMap according to the discrete degree resolution. The maximum number of iterations env_ite is set to the maximum diameter N of the connected subgraph. uav -1, where N uav is the number of UAVs participating in collaborative obstacle avoidance planning.

[0134] The present invention sets the plane geometric center of the cooperative structure of multiple UAVs as the virtual center based on the virtual structure method, and presets the virtual center reference vector O according to the relative position between the virtual center and each UAV. k .

[0135] During the flight, the drone continuously obtains the position and geometric properties of obstacles within its perception range through onboard sensors, and uses the obstacle positions and geometric properties to perform convex expansion processing to construct a local occupancy grid map;

[0136] Step 2: Environmental perception and fusion. Considering that the mission environment is globally unknown and the drone's posture is dynamically changing, the drone continuously detects the mission environment covered by its own sensor range during flight, expands the detected obstacles into a cubic model, updates the GridMap using the occupancy probability method, and constructs the local occupancy grid map Collision_localMap. During the obstacle expansion process, the occupancy probability of the grid involved is set to 1.

[0137] Aircraft of the same configuration continuously exchange homogeneous information with adjacent drones. The homogeneous information consists of two parts. They are:

[0138] (1) Perception information: including the coordinates of the drone’s current position in the world coordinate system and its own local occupancy grid map Collision_localMap.

[0139] (2) Flight status information: including the UAV’s own global path and expected trajectory obtained through the collaborative obstacle avoidance planning algorithm.

[0140] Design distributed information fusion algorithms based on maximum consistency theory and distributed communication strategies, such as Figure 2 As shown. After at most env_ite iterations, all drones in the connected network can obtain globally consistent perception information within a limited perception range. The global consistency judgment method is defined as no update of the identification cache pool. Specifically, each drone exchanges cache pool information while communicating with its neighbors, and adds other drone identifiers that communicate directly or indirectly with it to the identification cache pool. When the information in the cache pool is not updated, it is considered to be globally consistent.

[0141] During the kth iteration, the drone shares isomorphic information with neighboring drones within the communication range, and updates its local occupancy grid map Collision_localMap based on the perception information shared by neighboring drones based on the maximum consistency protocol. The update rule of the maximum consistency protocol is:

[0142]

[0143] In addition, through interaction with neighboring aircraft's flight information, it provides a decision-making basis for collaborative obstacle avoidance planning, adjusts its own planning status in real time, and optimizes the expected trajectory.

[0144] Step 3: Global path search. Determine the starting coordinates start_pt and the end coordinates end_pt of the collaborative obstacle avoidance planning, design the evaluation function set {time cost T(n), heuristic information H(n) and collaborative obstacle avoidance benefit E(n)} of the current node n based on the Fast Marching algorithm, and search for an obstacle-free global path with the shortest time between the starting point and the end point. Specifically include:

[0145] Before using the improved Fast Marching algorithm to search the global path, it is necessary to use the tool FIESTA to build an incremental ESDF map based on the local three-dimensional occupancy grid map Collision_localMap, so as to easily query the distance and gradient information of obstacles within the perception range.

[0146] A reasonable velocity field is established for the flight environment so that the set flight speed of each grid in the grid map GridMap is proportional to the distance to the nearest obstacle of the grid. The velocity field function is established according to the ESDF map as follows:

[0147]

[0148] Where d is the signed Euclidean distance between the current point and the nearest obstacle obtained from the obstacle ESDF map, e is the Euler constant, which is approximately 2.71828, and v max is the maximum flight speed of the quadrotor drone, is the hyperbolic tangent function.

[0149] Starting from the starting point, wave conduction is simulated and the evaluation function set of the current grid n is designed to reduce the conduction of simulated waves at unnecessary grids and speed up the search speed of the global path. The evaluation function expression of grid n is as follows:

[0150] f(n)=γ t T(n)+γ h H(n)-γ e E(n)

[0151] The evaluation function set consists of three parts:

[0152] (1) Time cost T(n): The time cost T(n) describes the shortest arrival time of grid n, which is obtained by solving the Eikonal equation, making the search process more inclined to sparse obstacle environments and avoiding frequent changes in flight attitude. The expression is as follows:

[0153]

[0154] Where t is the expected arrival time of the current grid n, T x ,T y ,T z are the minimum arrival times of all neighbors of grid n in the x, y, and z directions, respectively, and T x >T y >T z , h is the spacing between adjacent grids.

[0155] (2) Heuristic information H(n): Heuristic information H(n) describes the estimated cost of the best path from grid n to the end point, making the search process more inclined to expand towards the end point. The expression is as follows:

[0156]

[0157] Where dx, dy, and dz are the distance differences between grid n and the end point in the x, y, and z directions, respectively.

[0158] (3) Collaborative obstacle avoidance benefit E(n): During the global path search process, the path should be located as close as possible to the area where the cumulative reference virtual center deviation of multiple drones is small, guiding the global path of each drone to fit the collaborative structure as closely as possible. The smaller the cumulative reference virtual center deviation corresponding to the search direction selected by the drone and the more complete the collaborative structure, the greater the collaborative obstacle avoidance benefit. The expression is as follows:

[0159]

[0160] where a ij represents the communication relationship between UAV i and UAV j, d ij is the virtual center deviation of the corresponding reference.

[0161] When grid point n is the end point, the search process ends, and the path is traced back along the gradient descent direction of the arrival time at the end point, and a shortest time path from the end point to the starting point is obtained, such as Figure 3 shown.

[0162] Step 4: Local trajectory optimization. According to the optimal global path obtained in step 3, select the local target point tag_pt within the observable range, and only optimize the path between the starting point start_pt of the drone and the local target point tag_pt, and generate a smooth and feasible expected trajectory to the local target point to guide the flight. The specific steps include the following:

[0163] Step 4.1: Determine the expected trajectory model of the drone. The use of a piecewise continuous eighth-order Bezier curve can avoid sudden changes in position, velocity, acceleration, and angular velocity at the connection points of each segment of the trajectory. The flexibility of the segmented trajectory also ensures that most feasible trajectories are covered. The expected trajectory model expression is as follows:

[0164]

[0165] The number of segments of the expected trajectory model is m, the order is n = 8, and the superscript i∈[0,n]. [T 1 ,T 2 ,...,T m ] represents the end time pre-allocated for each trajectory, and the total time is T = T m -T 0 ,[s 1 ,s 2 ,...,s m ] represents the time scale factor, which is used to change the time parameter t from [T m-1 ,T m ] is scaled to the fixed time interval [0,1] of the Bezier curve to make the trajectory optimization problem more stable.

[0166] In the expected trajectory model [p1,i ,p 2,i ,...,p m,i ] is a set of m continuous eighth-order Bezier curve control points. Each trajectory uses 8 control points to correspond to the state of the drone, which includes the position, velocity, acceleration, and angular velocity of the drone. l,0 ,p l,1 ,p l,2 ,p l,3 ], l∈[1,m] represents the starting state of the trajectory segment, and the control point [p l,5 ,p l,6 ,p l,7 ,p l,8 ],l∈[1,m] corresponds to the end state of the trajectory segment, ensuring the continuity and smoothness between each trajectory segment.

[0167] Bernstein Polynomials is the n-th order Bezier curve basis function, The expression is as follows:

[0168]

[0169] The basis function of the expected trajectory model Change to power base t i , then when m = 1, the corresponding matrix representation of the expected trajectory model is:

[0170]

[0171] Step 4.2: Determine the optimization problem model.

[0172] Determine the control point position in the expected trajectory model of the UAV [p 1,i ,p 2,i ,...,p m,i ] to determine the shape of the segmented trajectory. Since the expected trajectory model is m continuous eighth-order Bezier curves and the control points are all three-dimensional coordinates, the overall optimization object is a particle of (8+1)·m×3 dimensions. Specifically:

[0173]

[0174] The objective function of the optimization problem is defined as solving the flight energy consumption cost J in the obstacle-free safety convex set. e Consistent cost with collaborative structure J c The model expression of the optimization problem is as follows:

[0175] min J=λ e J e +λ c Jc

[0176] Flight energy consumption costJ e : Describes the integral of the square of the fourth-order derivative of the trajectory. According to the differential flatness characteristics of the quadrotor drone, the fourth-order derivative of the trajectory corresponds to the angular acceleration and is directly related to the motor speed, which corresponds to the flight energy consumption. The expression is as follows:

[0177]

[0178] Cooperative structure consistent cost J c : The binary norm that describes the deviation between the current position and the expected position of the collaborative structure. The expected position of the collaborative structure is obtained by combining the flight status information between adjacent drones. When the deviation between the current position of each drone and the expected position of the collaborative structure is less than a certain threshold, it can be considered that the multiple drones fit the collaborative structure and the corresponding collaborative structures are consistent. The larger the position deviation, the greater the cost of achieving consistent collaborative structures. The expression is as follows:

[0179]

[0180] where a ij represents the communication relationship between UAV i and UAV j, are the reference virtual centers of drone i and drone j respectively. The reference virtual center is described as the actual position of the drone minus the preset virtual center reference position, and the expression is as follows:

[0181]

[0182] Step 4.3: Determine the constraints. Add maximum velocity and acceleration constraints to the expected trajectory, as well as continuity constraints between segmented trajectories.

[0183] Based on the convex hull properties of the Bezier curve and the property that the curve shape changes with the control points, the maximum speed and acceleration limits can be transformed into corresponding constraints on the control points corresponding to the expected trajectory and the higher-order derivatives of the trajectory. The corresponding constraints of the maximum speed and acceleration limits on the jth segment trajectory are expressed as:

[0184] -v max ≤n·(p j,i -p j,i-1 )≤v max ,i=1,2,...,n

[0185]

[0186] The continuity constraint between segmented trajectories describes that the position, velocity, and acceleration of the drone are equal at the trajectory connection point between every two segments. The corresponding constraint between the jth and j+1th trajectory segments is expressed as:

[0187] s j ·p j,n -s j+1 ·p j+1,0 =0

[0188] (p j,n -p j,n-1 )-(p j+1,1 -p j+1,0 )=0

[0189]

[0190] Step 4.4: Optimize object injection. The local target point is selected as the intersection point of the global path and the observable range, and the drone starting point start_pt and the local target point position tag_pt are set as the starting point and target point of the local trajectory optimization problem.

[0191] The path between the starting point and the local target point is expanded into the largest cube in the safe space according to the grid. The maximum number of expansions is initialized to safe_ite. When the cube boundary touches an obstacle, the expansion process ends in advance.

[0192] The repeated and included cubes on the path are trimmed, and the number of simplified cubes is used as the number of segments of the trajectory in the expected trajectory model.

[0193] Since the cube is a typical convex hull structure, the segmented trajectory optimization problem can be transformed into the problem of solving the control points of a single segment trajectory in a single cube.

[0194] Calculate the path lengths corresponding to the two cubes and pre-allocate flight time for a single trajectory using trapezoidal velocities.

[0195] Set the starting state of the first segment of the trajectory. The starting state includes the position start_pt, speed start_vel, acceleration start_acc, etc. of the starting point of the drone, as shown below:

[0196] p 1,0 ·s 1 =start_pt

[0197] 8(p 1,1 -p 1,0 ) = start_vel

[0198]

[0199] The end state of the trajectory segment is set for the mth trajectory segment. The end state corresponds to the local target point position tag_pt, and the speed and acceleration are set to zero, as shown below:

[0200] pm,5 ·s m =tag_pt

[0201] 8(p m,6 -p m,5 )=[0,0,0]

[0202]

[0203] Step 4.5: Solving the optimization problem. Since the above trajectory optimization problem is a linearly constrained quadratic minimization problem and the domain is a convex set, it can be transformed into solving a quadratic programming QP problem, as shown below.

[0204] min p T Qp+C T p+c f

[0205] stp j ∈Ω j ,j=1,2,...,m

[0206] A eq p=b eq

[0207] l ieq ≤A ieq p≤u ieq

[0208] The solution to the above problem is the control point position in the expected trajectory model of the drone [p 1,i ,p 2,i ,...,p m,i ], thereby splicing multiple smooth trajectories into an optimal trajectory, such as Figure 4 shown.

[0209] Step 5: Collision detection. Since the environment perceived by the drone itself is constantly changing, it is necessary to perform a forward safety check on the expected trajectory from the drone’s current position odomPt in a timely manner during the trajectory execution phase.

[0210] Set the forward check time t_ahead, emergency braking time t_stop, collision probability p_collision and the collision index with a default value of 0. When a collision conflict is found in the expected trajectory within the forward check time t_head, the collision index is set to 1; when the collision conflict opportunity is within the braking time t_stop, the drone enters the emergency hovering state at the same time.

[0211] According to whether the collision probability p_collision is greater than 0.5, it is determined whether the expected trajectory point prePt has collided with the newly detected obstacle at time t. The collision probability p_collision is specifically:

[0212]

[0213] When the speed dv of the newly detected obstacle is greater than 0, it is determined to be a dynamic obstacle. The distance between the dynamic obstacle and the drone position odomPt before time t is estimated based on the current position dp and current speed dv of the dynamic obstacle and is expressed as the collision probability.

[0214] When the speed dv of the newly detected obstacle is close to 0, the occupancy probability of the local occupancy grid map Collision_localMap at the expected trajectory point prePt at time t is obtained through the getOccupy function.

[0215] Step 6: Online re-planning. Determine the timing of re-planning, update the starting point start_pt of the collaborative obstacle avoidance planning to the expected trajectory point of the drone ahead of the current time by a period of time t_duration, and re-execute steps 3, 4, and 5. The timing of re-planning includes the following:

[0216] (1) The Euclidean distance between the local target point and the location of the UAV is close to a certain threshold and the UAV is not close to the end point.

[0217] (2) The collision index value obtained in step 5 is equal to 1.

[0218] (3) The distance between the neighboring drones is greater than the coordination distance or less than the safety distance.

[0219] It should be noted that the specific implementation is only an explanation and description of the technical solution of the present invention, and cannot be used to limit the scope of protection of the rights. Any partial changes made according to the claims and description of the present invention should still fall within the scope of protection of the present invention.

Claims

1. A planning method for multi-UAV collaborative obstacle avoidance, characterized in that The following steps are involved: Step 1: Set the task scenario parameters and task parameters; The mission scenario parameters include: mission environment scenario size, number of drones of the same configuration N uav and grid discreteness resolution; The task parameters include: the starting point coordinates start_pt and the end point coordinates end_pt of the collaborative obstacle avoidance planning and the detectable distance of the drone, where the detectable distance of the drone is sense_horizon; Step 2: The drone exchanges homogeneous information with neighboring drones through the drone communication neighbor table; The homogeneous information includes perception information and flight status information; The perception information includes the coordinates of the current position of the drone in the world coordinate system and the local occupancy grid map held by the drone; The flight status information includes the drone’s own global path and expected trajectory; The steps of constructing the local occupancy grid map are: First, the grid discreteness resolution is used to discretize the size of the mission environment scene to obtain the size of the local occupancy grid map. Then, the UAV is used to continuously obtain the position and geometric properties of obstacles within its own perception range through the onboard sensors during the flight, and the position and geometric properties of the obstacles are convexly expanded to obtain the obstacle grid area. Finally, the local occupancy grid map is constructed according to the size of the local occupancy grid map and the obstacle grid area. Step 3: Design a distributed information fusion algorithm based on the maximum consistency theory and distributed communication strategy, and then use the distributed information fusion algorithm and the perception information exchanged between the current UAV and other UAVs to iteratively update the local occupancy grid map held by the current UAV itself, and set an identification cache pool. When the information in the identification cache pool is not updated, stop the iteration. At this time, the local occupancy grid map held by the UAV is the optimal global occupancy grid map G; Step 4: Search for an obstacle-free shortest global path between the starting point coordinate start_pt and the end point coordinate end_pt of the collaborative obstacle avoidance planning; Step 5: Use the obstacle-free shortest global path to select the local target point tag_pt within the sense_horizon range, and optimize the path between the starting coordinate start_pt of the collaborative obstacle avoidance planning and the local target point tag_pt to obtain a smooth and feasible expected trajectory from the starting coordinate start_pt to the local target point tag_pt; Step 6: Use the optimal global occupancy grid map G obtained in step 3 to perform collision detection on the smooth feasible expected trajectory obtained in step 5. The specific steps of collision detection are: Set the forward check time t_head and the emergency braking time t_stop, and then calculate the collision probability p_collision, which is expressed as: Among them, dv is the speed of the newly detected obstacle, dp is the current position of the obstacle, odomPt is the current position of the UAV, getOccupy is the occupancy probability acquisition function of the optimal global occupancy grid map G, and prePt is the expected trajectory point of the UAV at time t; If the collision probability p_collision is greater than 0.5, it is determined that the smooth feasible expected trajectory has collided with the newly detected obstacle; When the collision conflict opportunity is within the forward check time t_head, the collision index is set to 1; when the collision conflict opportunity is within the braking time t_stop, the drone enters the emergency hovering state; Step 7: When the time for re-planning is reached, the starting point start_pt of the collaborative obstacle avoidance planning is updated to the expected trajectory point 0.5 seconds ahead of the current moment of the drone, and steps 4, 5, and 6 are re-executed; The timing of re-planning is: (1) The Euclidean distance between the local target point tag_pt and the current position of the UAV odomPt reaches the set threshold, and the UAV has not reached the destination; (2) The collision index value obtained in step 5 is equal to 1; (3) The distance between the current UAV and the neighboring UAV is greater than the coordination distance or less than the safety distance, and the distance between the current UAV and the neighboring UAV is obtained through the flight status information exchanged between the current UAV and the other UAVs.

2. A multi-UAV coordinated obstacle avoidance planning method according to claim 1, characterized in that The obstacle-free shortest global path in step 4 is obtained by the following steps: Using the local grid map occupied by the current UAV, the starting coordinate start_pt is used as the wave source to simulate the propagation of the wave in the environment. During the propagation process, the neighboring nodes of the current propagation environment node are evaluated to obtain the evaluation value, and the neighboring node with the smallest evaluation value is selected as the next propagation environment node. When the wave extends to the end coordinate end_pt, the propagation process ends, and the propagation path is traced back along the gradient descent direction of the arrival time at the end coordinate end_pt to obtain a propagation path with the shortest time from the end coordinate end_pt to the starting coordinate start_pt, which is the obstacle-free shortest global path.

3. A multi-UAV coordinated obstacle avoidance planning method according to claim 2, characterized in that The evaluation value is obtained by the evaluation function f(n) of the current propagation environment node, and the evaluation function f(n) includes a time cost function T(n), an inspiration information function H(n) and a collaborative obstacle avoidance benefit function E(n); The evaluation function f(n) is expressed as: f(n)=γ t T(n)+γ h H(n)-γ e E(n) Among them, γ t ,γ h ,γ e They are the proportional coefficients of the time cost function T(n), the heuristic information function H(n) and the collaborative obstacle avoidance benefit function E(n) in the evaluation function f(n).

4. The method for planning multi-UAV coordinated obstacle avoidance according to claim 3 is characterized in that The time cost function T(n) is expressed as: Among them, T x ,T y ,T z are the minimum arrival times of all neighbors of grid n in the x, y, and z directions, respectively, and T x >T y >T z , h is the spacing between adjacent grids, and F is the propagation speed of the wave at grid n; The F is obtained by a velocity field function, which is established based on a local occupancy grid map and using an ESDF map; The velocity field function is expressed as: The heuristic information function H(n) is expressed as: The collaborative obstacle avoidance benefit function E(n) is expressed as: Among them, v max is the maximum flight speed of the drone, d is the signed Euclidean distance between the current grid n and the nearest obstacle obtained from the ESDF map, and e is the Euler constant, which is approximately 2.71828. is the hyperbolic tangent function; dx, dy, and dz are the distance differences between grid n and the end point coordinate end_pt in the x, y, and z directions, respectively. ij is the communication relationship between UAV i and UAV j, d ij is the deviation of the reference virtual center between UAV i and UAV j.

5. The method for planning multi-UAV coordinated obstacle avoidance according to claim 1, characterized in that The specific steps of step five are: Step 51: Establish the expected trajectory model of the UAV based on the piecewise continuous eighth-order Bezier curve; Step 52: Take the set of control points in the expected trajectory model of the UAV as the optimization object, solve the minimization problem of the flight energy consumption cost Je and the collaborative structure consistency cost Jc in the barrier-free safety convex set, that is, the trajectory optimization problem, and obtain the value of the optimization object based on the solution of the trajectory optimization problem. Finally, bring the value of the optimization object into the expected trajectory model to obtain a smooth feasible expected trajectory from the starting point coordinate start_pt to the local target point tag_pt.

6. A multi-UAV coordinated obstacle avoidance planning method according to claim 5, characterized in that The expected trajectory model of the UAV is expressed as: Where m is the number of trajectory segments in the expected trajectory model, n is the order of the Bezier curve in the expected trajectory model, i is the superscript and i∈[0,n] is the nth-order Bezier curve basis function, namely the Bernstein polynomial, p 1,i 、p 2,i …p m,i is the n-order Bezier curve control point corresponding to the trajectory segment numbered 1, 2, ..., m in the expected trajectory model; t is the time parameter, T0, T m are the start time and end time set for the expected trajectory, T0, T1…T m-1 They represent the start time of the trajectories with segment numbers 1, 2, ..., m in the expected trajectory model, s1, s2, ..., s m The time interval scaling factor for the trajectory segments in the expected trajectory model with the labels 1, 2, ..., m is used to convert the time parameter t from the time interval [T m-1 ,T m ] is scaled to the fixed time interval [0,1].

7. A multi-UAV coordinated obstacle avoidance planning method according to claim 6, characterized in that The optimization object is expressed as: Among them, p 1,0 …p 1,8 …p m,0 …p m,8 is the n-order Bezier curve control point p corresponding to the trajectory segment numbered 1, 2, ..., m in the expected trajectory model 1,i 、p 2,i …p m,i Take n = 8, i∈[0,n] for detailed description; x 1,0 …x 1,8 …x m,0 …x m,8 ,y 1,0 …y 1,8 …y m,0 …y m,8 、z 1,0 …z 1,8 …z m,0 …z m,8 are the n-order Bezier curve control points p corresponding to the trajectories with segment numbers 1, 2, ..., m in the expected trajectory model. 1,i 、p 2,i …p m,i Take n=8, i∈[0,n] and expand it in three dimensions: x, y, and z.

8. The planning method for multi-UAV coordinated obstacle avoidance according to claim 7 is characterized in that The trajectory optimization problem is expressed as: min J=λ e I e +λ c I c Among them, J is the objective function of the trajectory optimization problem, J e is the flight energy consumption cost function, J c is the collaborative structure consistent cost function, λ e , c is the proportional coefficient, N is the number of neighboring drones of the current drone i, j is the number of neighboring drones, aij represents the communication relationship between drone i and drone j, are the reference virtual center positions of UAV i and UAV j respectively, and f i (t) is the position of UAV i at time t, O i is the reference virtual center vector of UAV i.

9. The method for planning multi-UAV coordinated obstacle avoidance according to claim 5, characterized in that The specific steps of obtaining a smooth and feasible expected trajectory from the starting point coordinate start_pt to the local target point tag_pt are: Step 1: The obstacle-free shortest global path obtained in step 4 intercepts the path between the starting point coordinates start_pt and the local target point tag_pt, and expands each grid in the path into the largest cube in the safe space according to the grid in which it is located. When the cube boundary touches an obstacle or the number of expansions reaches safe_ite, the expansion ends; The number of cubes obtained by simplifying the largest cube in the safety space is taken as the number of segments m of the trajectory in the expected trajectory model; The starting state of the first segment of the trajectory among the segments m is set. The starting state includes the position start_pt, speed start_vel, and acceleration start_acc of the starting point of the drone, which are expressed as follows: p 1,0 ·s1=start_pt 8(p 1,1 -p 1,0 )=start_vel The end state of the trajectory segment is set for the mth trajectory segment in the trajectory segment number m. The end state corresponds to the local target point position tag_pt, and the speed and acceleration are set to zero, which is expressed as follows: p m,5 ·s m =tag_pt 8(p m,6 -p m,5 )=[0,0,0] Step 2: Add maximum speed limit, acceleration limit and continuity limit between segmented trajectories to the expected trajectory model; The maximum speed limits are: -v max ≤n·(p j,i -p j,i-1 )≤v max ,i=1,2,...,n The acceleration limit is expressed as: The continuity constraint between the segmented trajectories is expressed as: s j ·p j,n -s j+1 ·p j+1,0 =0 (p j,n -p j,n-1 )-(p j+1,1 -p j+1,0 )=0 Step 3: Use the simplified cube as the definition domain and integrate the contents of step 1 and step 2 to obtain a quadratic programming problem. The solution to the quadratic programming problem is the position of the control point in the expected trajectory model of the UAV, and then a smooth and feasible expected trajectory leading to the local target point is obtained; Where n is the order of the Bezier curve in the expected trajectory model, v max 、a max are the maximum velocity and acceleration respectively, p j,i-2 、p j,i-1 、p j,i 、p j,n-2 、p j,n-1 、p j,n They are the control points numbered i-2, i-1, i, n-2, and n in the n-order Bezier curve corresponding to the j-th segment of the trajectory in the m-th segment, respectively. j+1,0 、p j+1,1 、p j+1,2 are the control points with superscripts 0, 1, and 2 in the n-order Bezier curve corresponding to the j+1th segment of the trajectory in the mth segment, s j 、s j+1 They are the trajectory time interval scaling factors for the jth and j+1th segments in the mth trajectory segment.

10. A multi-UAV coordinated obstacle avoidance planning method according to claim 9, characterized in that The quadratic programming problem is expressed as: my name T Qp+C T p+c f s.t.p j ∈Ω j ,j=1,2,...,m A eq p=b eq l ieq ≤A ieq p≤u ieq Among them, m is the number of segments of the trajectory, Q is the Hessian matrix of the objective function J, C is the linear coefficient matrix of the objective function J, and c f is the constant term of the objective function J, and p is the n-order Bezier curve control point p corresponding to the trajectory segment numbered 1, 2, ..., m in the expected trajectory model. 1,i 、p 2,i …p m,i The matrix representation of p j is the matrix representation of the control points of the n-order Bezier curve corresponding to the j-th segment of the trajectory in the m-th segment, Ω j is the matrix p j The barrier-free safety convex set, that is, the matrix p j The domain of A eq , b eq is the coefficient matrix and constant matrix of the equality constraints of the objective function J, A ieq is the coefficient matrix of the inequality constraints of the objective function J, l ieq 、u ieq The corresponding minimum constant matrix and maximum constant matrix.