A trajectory planning method for multi-rotor UAV in indoor environment

By using the Euclidean signed distance field and the improved A* algorithm in the trajectory planning of multi-rotor UAVs, flight channels and trajectories far away from obstacles are generated, which solves the problem of trajectories close to obstacles in the existing technology and improves flight safety. properties and simplification of trajectory generation.

CN114815884BActive Publication Date: 2024-09-20SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210397219.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2024-09-20
Estimated Expiration
2042-04-15

AI Technical Summary

Technical Problem

Existing trajectory planning methods for multi-rotor UAVs in indoor environments fail to effectively consider the distance information of obstacles, resulting in trajectories that may be close to obstacles, increasing safety risks during flight.

Method used

By converting the map into an occupied raster map, a Euclidean signed distance field is established, an improved A* algorithm is used to search for the initial path, a connected flight channel is generated, and a smooth flight trajectory of the multi-rotor UAV is generated with dynamic constraints to ensure the trajectory Stay away from obstacles.

Benefits of technology

It improves the safety of multi-rotor UAVs flying in indoor environments. The generated trajectories are far away from obstacles, ensuring the stability and safety of flight. It also transforms the trajectory planning problem into a binary model with equality constraints and inequality constraints. sub-planning problem, which simplifies the trajectory generation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114815884B
    Figure CN114815884B
Patent Text Reader

Abstract

The present invention discloses a trajectory planning method for a multi-rotor unmanned aerial vehicle in an indoor environment. The method comprises the following steps: step 1, first converting a map into an occupied grid map, and constructing a Euclidean signed distance field according to the distance information of each grid in the occupied grid map from the obstacle; step 2, planning an initial path away from the obstacle according to the Euclidean signed distance field and a given starting point and end point; step 3, generating a safe flight channel connecting the starting point and the end point according to the planned initial path; step 4, taking energy minimization as an optimization index, taking compliance with the dynamics of the multi-rotor unmanned aerial vehicle as a constraint condition, and generating a flight trajectory executable by the multi-rotor unmanned aerial vehicle in the safe flight channel. The present invention can plan a multi-rotor unmanned aerial vehicle flight trajectory as far away from the obstacle as possible in the map according to the distance information of the free space from the obstacle in the map, thereby ensuring the safety of the unmanned aerial vehicle when flying indoors to a greater extent.
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 vehicles, and in particular to a trajectory planning method for a multi-rotor unmanned aerial vehicle in an indoor environment. Background Art

[0002] At present, multi-rotor drones are widely used due to their small size, easy to carry, low price, etc. Especially in complex indoor environments, the small size of multi-rotor drones makes them the main platform for indoor flight, and trajectory planning is an important part of multi-rotor drone indoor flight.

[0003] In recent years, a variety of trajectory planning methods for multi-rotor UAVs in indoor environments have been developed, such as search-based Dijkstra and A* algorithms, sampling-based random search tree algorithms, trajectory planning based on energy or time optimization, etc. The above methods have very good effects in relatively open outdoor environments, but because the above methods do not take into account the distance information from obstacles, the obtained trajectory may be very close to obstacles, and there is a risk of collision with obstacles in indoor environments with complex flight environments (A multi-rotor UAV inspection path planning method, CN 111256703 A).

[0004] When a multi-rotor drone flies in an indoor environment, the planned trajectory needs to be as far away from obstacles as possible, so as to give the multi-rotor drone more space and ensure its safety in an indoor environment with many obstacles. Summary of the invention

[0005] The purpose of the present invention is to solve the above-mentioned defects in the prior art and provide a trajectory planning method for a multi-rotor UAV in an indoor environment.

[0006] The present invention is achieved by at least one of the following technical solutions.

[0007] A trajectory planning method for a multi-rotor UAV in an indoor environment comprises the following steps:

[0008] S1. Convert the map into an occupied grid map, and establish a Euclidean signed distance field based on the distance information of each grid in the map from the obstacle;

[0009] S2. Searching for an initial path from the starting point to the end point in the non-obstacle area of ​​the occupied grid map according to the Euclidean signed distance field;

[0010] S3. Generate a flight channel connecting the starting point and the end point based on the initial path and the occupied grid map;

[0011] S4. Generate a smooth flight trajectory executable by the multi-rotor UAV based on the dynamic constraints.

[0012] Furthermore, the Euclidean signed distance field calculation formula is:

[0013] ESDF(n)=min{‖p n -p1‖,‖p n -p2‖,…,‖p n -p Q ‖}

[0014] Where ESDF(n) is the value of the current grid in the Euclidean signed distance field, p n is the position of the current grid center point, Q is the total number of obstacle grids, p1, p2, ..., p Q are the positions of the center points of the 1st, 2nd, …, Qth obstacle grids respectively.

[0015] Furthermore, the Euclidean signed distance field of the entire map is calculated by the FIESTA algorithm.

[0016] Furthermore, the Euclidean signed distance field of the entire map is calculated using the Voxblox algorithm.

[0017] Furthermore, in step S2, an initial path as far away from obstacles as possible is searched by improving the A* algorithm.

[0018] f(n)=g(n)+h(n)+O(n)

[0019] Where g(n) is the cumulative cost from the starting point to the current path point, h(n) is the heuristic function, which is the Euclidean distance from the current path point to the end point, and O(n) is the collision cost of the current path point.

[0020] Furthermore, the calculation formula of the collision cost O(n) is as follows:

[0021]

[0022] Wherein, ESDF(n) is the value of the current path point in the Euclidean signed distance field, and a is a constant greater than zero.

[0023] Furthermore, the flight channel includes a series of cubes, there is a common area between two adjacent cube channels, and there is no obstacle inside any cube channel. The time for the multi-rotor drone to pass through each cube flight channel is determined by the side length of the cube, and the calculation formula is:

[0024]

[0025] Where W i is the side length of the ith cube channel, s i The time for the multirotor drone to fly each cube channel.

[0026] Furthermore, the flight channel generation steps of step S3 are as follows:

[0027] S31. Starting from the starting point, set the points on the initial path as the geometric center points of the cube flight channel in sequence. If the geometric center point of the current cube flight channel is inside the previous cube flight channel, discard the path point. Otherwise, use the path point as the geometric center point of the next cube flight channel. The size of the cube is the size of a grid.

[0028] S32. The flight path of the cube is expanded. During the expansion process, the geometric center remains unchanged, only the size changes. Each time the cube is expanded, its six faces are moved outward by the size of a grid. When the flight path of the cube touches an obstacle, the expansion is stopped and the next flight path of the cube is generated;

[0029] S33. When the end point is included in the cube flight channel, the generation of the flight channel from the starting point to the end point is completed.

[0030] Furthermore, in step S4, the flight trajectory is a position trajectory in three-dimensional space, including the X-axis, Y-axis and Z-axis, and the position trajectory of each dimension is generated with the minimum energy of the multi-rotor drone as the performance indicator, the flight channel as the safety constraint, and the maximum speed, maximum acceleration and maximum jerk as the dynamic constraints.

[0031] Furthermore, the trajectory in the three-dimensional space in step S4 is represented by a piecewise Bezier curve, as shown below:

[0032]

[0033] Among them, p(t) is the trajectory curve represented by the piecewise Bezier curve, n is the order of the trajectory curve, and m is the total number of segments of the trajectory. is the jth parameter of the i-th trajectory curve, s i is the time to pass the i-th trajectory, T0 is the starting time of the first trajectory, T i ,i=1,2,…,m is the end time of the i-th trajectory, is the Bernstein basis function of the i-th trajectory;

[0034] The trajectory generation is transformed into a quadratic programming problem with equality constraints and inequality constraints. The performance indicator is the minimum energy of the multi-rotor drone, as shown below:

[0035]

[0036] Where J is the energy consumed by the multi-rotor drone, p (4) (t) is the fourth differential of the trajectory curve;

[0037] The equality constraints are as follows:

[0038]

[0039]

[0040]

[0041] Where k represents the number of trajectory differentiation, k is {0,1,2,3}, p (k) (T0) is the k-th differential of the trajectory at time T0, is the k-th differential of the known starting point position, p (k) (T m ) is T m The k-th differential of the moment trajectory, is the k-th differential of the known end point position, p (k) (t) is the kth differential of the trajectory curve, T i - for T i The left limit of time, T i + for T i The right limit of the moment;

[0042] The inequality constraints are as follows:

[0043] p i (t)∈C i (4)

[0044] -vel max ≤p (1) (t)≤vel max (5)

[0045] -acc max ≤p (2) (t)≤acc max (6)

[0046] -jerk max ≤p (3) (t)≤jerk max (7)

[0047] Among them, p i (t) is the i-th trajectory curve, p (1) (t) is the first differential of the trajectory curve, p (2) (t) is the second differential of the trajectory curve, p (3) (t) is the third differential C of the trajectory curve i is the i-th flight channel area, vel max The maximum speed of a multi-rotor drone, acc max The maximum acceleration of a multi-rotor drone, jerkmax The maximum jerk of a multi-rotor drone;

[0048] Among them, equation (1) is the position, velocity, acceleration and jerk constraints of the starting point, equation (2) is the position, velocity, acceleration and jerk constraints of the end point, equation (3) is the constraint that the position, velocity, acceleration and jerk of the adjacent two end trajectories are equal, set (4) indicates that the flight trajectory must be in the flight channel, inequality (5) is the constraint on the flight speed of the multi-rotor UAV, inequality (6) is the constraint on the acceleration of the multi-rotor UAV, and inequality (7) is the constraint on the jerk of the multi-rotor UAV.

[0049] Compared with the prior art, the present invention has the following beneficial effects:

[0050] The present invention adds the collision cost of obstacles when searching for initial path points in an occupied grid map, so that an initial path away from obstacles can be obtained, preventing the planned flight trajectory from being too close to obstacles, thereby improving the safety of the multi-rotor UAV during flight; the flight trajectory of the multi-rotor UAV is constrained by a series of cube flight channels, Bezier curves are used to represent the flight trajectory, and energy minimization is used to generate the flight trajectory, thereby converting the trajectory planning problem into a quadratic programming problem with equality constraints and inequality constraints, making the generation of the flight trajectory simpler. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a flow chart of a trajectory planning method for a multi-rotor UAV in an indoor environment disclosed in an embodiment of the present invention;

[0052] Figure 2 is a schematic diagram of an indoor flight environment in an embodiment of the present invention;

[0053] Figure 3 is the initial path obtained by searching through the improved A* algorithm in the embodiment of the present invention;

[0054] Figure 4 It is a flight passage connecting the starting point and the end point in the embodiment of the present invention;

[0055] Figure 5 It is the flight trajectory that can be executed by the multi-rotor drone finally generated in the embodiment of the present invention. DETAILED DESCRIPTION

[0056] The present invention will be further described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] Example 1

[0058] This embodiment discloses a trajectory planning method for a multi-rotor UAV in an indoor environment. Figure 1 As shown, the specific process of the trajectory planning method includes:

[0059] S1. Convert the map into an occupied grid map. Each grid in the occupied grid map has only one attribute: whether it is an obstacle or not. For example, Figure 2 As shown in the figure, the black area is the obstacle area and the others are the obstacle-free areas. The Euclidean Signed Distance Field (ESDF) of the entire map is established based on the distance information of each grid from the obstacle in the map. The calculation formula is:

[0060] ESDF(n)=min{‖p n -p1‖,‖p n -p2‖,…,‖p n -p Q ‖}

[0061] Where ESDF(n) is the value of the current grid in the Euclidean signed distance field, p n is the position of the current grid center point, Q is the total number of obstacle grids, p1, p2, ..., p Q are the positions of the center points of the 1st, 2nd, …, Qth obstacle grids respectively;

[0062] S2. Given the starting point and the end point, search for an initial path from the starting point to the end point in the non-obstacle area in the occupied grid map according to the previous Euclidean signed distance field;

[0063] The initial path searched is as far away from obstacles as possible to ensure flight safety.

[0064] In this embodiment, an initial path as far away from obstacles as possible is searched by improving the A* algorithm, such as Figure 3 As shown. The improved A* algorithm is based on the standard A* algorithm and adds the collision cost of obstacles. The total cost calculation formula of the improved A* algorithm is as follows:

[0065] f(n)=g(n)+h(n)+O(n)

[0066] Where g(n) is the cumulative cost from the starting point to the current path point, h(n) is the heuristic function, which is the Euclidean distance from the current path point to the end point, and O(n) is the collision cost of the current path point. The calculation formula of the collision cost O(n) is as follows:

[0067]

[0068] Wherein, ESDF(n) is the value of the current path point in the Euclidean distance field, and a is a constant greater than zero.

[0069] S3. Generate a flight path connecting the starting point and the end point based on the initial path and the occupancy grid map, such as Figure 4 As shown;

[0070] The flight channel is composed of a series of cubes. There is a common area between two adjacent cube channels, and there are no obstacles inside any cube channel. The time it takes for a multi-rotor drone to pass through each cube flight channel is determined by the side length of the cube. The calculation formula is: Where Wx is the side length of the i-th cube channel, s i The time for the multirotor drone to fly each cube channel.

[0071] The flight channel generation steps are as follows:

[0072] S31. Starting from the starting point, set the points on the initial path as the geometric center points of the cube flight channel in sequence. If the geometric center point of the current cube flight channel is inside the previous cube flight channel, then discard the path point. Otherwise, use the path point as the geometric center point of the next cube flight channel. The size of the cube is the size of a grid.

[0073] S32. The flight path of the cube is expanded. During the expansion process, the geometric center remains unchanged, only the size changes. Each time the cube is expanded, its six faces are moved outward by the size of a grid. When the flight path of the cube touches an obstacle, the expansion is stopped and the next flight path of the cube is generated;

[0074] S33. When the end point is included in the cube flight channel, the generation of the flight channel from the starting point to the end point is completed.

[0075] S4. Generate an executable flight trajectory for a multi-rotor UAV by taking minimum energy as the performance indicator, the flight channel as the safety constraint, and the maximum speed, maximum acceleration, and maximum jerk as the dynamic constraints.

[0076] Among them, the flight trajectory is a series of positions in three-dimensional space, including the X-axis, Y-axis and Z-axis. The position series of each dimension is generated separately. The specific implementation method is as follows:

[0077] The positions in three-dimensional space are represented by piecewise Bezier curves, as shown below:

[0078]

[0079] Among them, p(t) is the trajectory curve represented by the piecewise Bezier curve, n is the order of the trajectory curve, and m is the total number of segments of the trajectory. is the jth parameter of the i-th trajectory curve, s i , i=1,2,…,m is the time to pass the i-th track, T0 is the starting time of the first track, T i ,i=1,2,…,m is the end time of the i-th trajectory, is the Bernstein basis function of the i-th trajectory.

[0080] The trajectory generation is transformed into a quadratic programming problem with equality constraints and inequality constraints. The performance indicator is the minimum energy of the quadrotor drone, as shown below:

[0081]

[0082] Where J is the energy consumed by the multi-rotor drone, p (4) (t) is the fourth differential of the trajectory curve.

[0083] The equality constraints are as follows:

[0084]

[0085]

[0086]

[0087] Where k represents the number of trajectory differentiation, k can be {0,1,2,3}, p (k) (T0) is the k-th differential of the trajectory at time T0, is the k-th differential of the known starting point position, p (k) (T m ) is T m The k-th differential of the moment trajectory, is the k-th differential of the known end point position, p (k) (t) is the kth differential of the trajectory curve, T i - for T i The left limit of time, T i + for T i The right limit of time.

[0088] The inequality constraints are as follows:

[0089] p i (t)∈C i (4)

[0090] -vel max ≤p (1) (t)≤vel max (5)

[0091] -acc max ≤p(2) (t)≤acc max (6)

[0092] -jerk max ≤p (3) (t)≤jerk max (7)

[0093] Among them, p i (t) is the i-th trajectory curve, p (1) (t) is the first differential of the trajectory curve, p (2) (t) is the second differential of the trajectory curve, p (3) (t) is the third differential C of the trajectory curve i is the i-th flight channel area, vel max The maximum speed of a multi-rotor drone, acc max The maximum acceleration of a multi-rotor drone, jerk max It is the maximum acceleration of the multi-rotor drone.

[0094] Among them, equation (1) is the position, velocity, acceleration and jerk constraints of the starting point, equation (2) is the position, velocity, acceleration and jerk constraints of the end point, equation (3) is the constraint that the position, velocity, acceleration and jerk of the adjacent two end trajectories are equal, set (4) indicates that the flight trajectory must be in the flight channel, inequality (5) is the constraint on the flight speed of the multi-rotor UAV, inequality (6) is the constraint on the acceleration of the multi-rotor UAV, and inequality (7) is the constraint on the jerk of the multi-rotor UAV.

[0095] In summary, the present invention can plan the flight trajectory of a multi-rotor UAV in an indoor environment, and the planned flight trajectory is far away from obstacles, thereby ensuring the safety of the multi-rotor UAV when flying in an indoor environment.

[0096] Example 2

[0097] This embodiment discloses a trajectory planning method for a multi-rotor UAV in an indoor environment. Figure 1 As shown, the specific process of the trajectory planning method includes:

[0098] S1. Convert the map into an occupied grid map. Each grid in the occupied grid map has only one attribute: whether it is an obstacle or not. For example, Figure 2 As shown, the black area is the obstacle area, and the others are the obstacle-free areas. In this embodiment, the Euclidean signed distance field of the entire map can be calculated by the FIESTA algorithm, or the Euclidean signed distance field of the entire map can be calculated by the Voxblox algorithm;

[0099] S2. Given a starting point and an end point, according to the previous Euclidean signed distance field, an initial path from the starting point to the end point is searched in the non-obstacle area in the occupied grid map. The initial path obtained by the search is as far away from obstacles as possible to ensure the safety during flight. In this embodiment, an initial path as far away from obstacles as possible is searched by improving the A* algorithm;

[0100] S3. Generate a flight channel connecting the starting point and the end point based on the initial path and the occupied grid map;

[0101] S4. Generate an executable flight trajectory for a multi-rotor UAV by taking minimum energy as the performance indicator, the flight channel as the safety constraint, and the maximum speed, maximum acceleration, and maximum jerk as the dynamic constraints.

[0102] Example 3

[0103] This embodiment discloses a trajectory planning method for a multi-rotor UAV in an indoor environment. The specific process of the trajectory planning method includes:

[0104] S1. Convert the map into an occupied grid map. Each grid in the occupied grid map has only one attribute: whether it is an obstacle or not. For example, Figure 2 As shown, the black area is the obstacle area, and the others are the obstacle-free areas;

[0105] S2. Given a starting point and an end point, search for an initial path from the starting point to the end point in a non-obstacle area in the occupied grid map. The searched initial path is as far away from obstacles as possible to ensure safety during flight. In this embodiment, it is also unnecessary to pre-calculate the Euclidean signed distance field of the entire map. During the operation of the improved A* algorithm, only the closest distance between the searched grid and the obstacle is calculated, thereby searching for an initial path that is as far away from obstacles as possible. Because only the Euclidean signed distance field of a part of the grids in the map needs to be calculated, the time required to construct the Euclidean signed distance field is reduced;

[0106] S3. Generate a flight channel connecting the starting point and the end point based on the initial path and the occupied grid map;

[0107] S4. Generate an executable flight trajectory for a multi-rotor UAV by taking minimum energy as the performance indicator, the flight channel as the safety constraint, and the maximum speed, maximum acceleration, and maximum jerk as the dynamic constraints.

[0108] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A trajectory planning method for a multi-rotor UAV in an indoor environment, characterized in that: The following steps are involved: S1. The map is converted into an occupied grid map, and a Euclidean signed distance field is established based on the distance information of each grid in the map from the obstacle. The calculation formula of the Euclidean signed distance field is: ESDF(n)=min{||p n -p1||,||p n -p2||,...,||p n -p Q ||} Where ESDF(n) is the value of the current grid in the Euclidean signed distance field, p n is the position of the current grid center point, Q is the total number of obstacle grids, p1, p2, ..., p Q are the positions of the center points of the 1st, 2nd, ..., Qth obstacle grids respectively; S2. According to the Euclidean signed distance field, search for an initial path from the starting point to the end point in the non-obstacle area of ​​the occupied grid map; search for an initial path as far away from obstacles as possible by improving the A* algorithm, f(n) = g(n) + h(n) + O(n) Where g(n) is the cumulative cost from the starting point to the current path point, h(n) is the heuristic function, which is the Euclidean distance from the current path point to the end point, and O(n) is the collision cost of the current path point; The calculation formula for the collision cost O(n) is as follows: Where ESDF(n) is the value of the current path point in the Euclidean signed distance field, and a is a constant greater than zero; S3. Generate a flight path connecting the starting point and the end point based on the initial path and the occupied grid map; the flight path generation steps are as follows: S31. Starting from the starting point, set the points on the initial path as the geometric center points of the cube flight channel in sequence. If the geometric center point of the current cube flight channel is inside the previous cube flight channel, discard the path point. Otherwise, use the path point as the geometric center point of the next cube flight channel. The size of the cube is the size of a grid. S32. The flight path of the cube is expanded. During the expansion process, the geometric center remains unchanged, only the size changes. Each time the cube is expanded, its six faces are moved outward by the size of a grid. When the flight path of the cube touches an obstacle, the expansion is stopped and the next flight path of the cube is generated; S33. When the end point is included in the cube flight channel, the generation of the flight channel from the starting point to the end point is completed; S4. Generate a smooth flight trajectory executable by the multi-rotor UAV based on the dynamic constraints.

2. The trajectory planning method for a multi-rotor UAV in an indoor environment according to claim 1, characterized in that: The Euclidean signed distance field of the entire map is calculated using the FIESTA algorithm.

3. The trajectory planning method for a multi-rotor UAV in an indoor environment according to claim 1, characterized in that: The Euclidean signed distance field of the entire map is calculated using the Voxblox algorithm.

4. The trajectory planning method for a multi-rotor UAV in an indoor environment according to claim 1, characterized in that: The flight channel includes a series of cubes. There is a common area between two adjacent cube channels, and there are no obstacles inside any cube channel. The time it takes for the multi-rotor drone to pass through each cube flight channel is determined by the side length of the cube, and the calculation formula is: Where W i is the side length of the ith cube channel, s i The time for the multirotor drone to fly each cube channel.

5. The trajectory planning method for a multi-rotor UAV in an indoor environment according to claim 1, characterized in that: In step S4, the flight trajectory is a position trajectory in three-dimensional space, including the X-axis, Y-axis and Z-axis. The position trajectory of each dimension is generated with the minimum energy of the multi-rotor drone as the performance indicator, the flight channel as the safety constraint, and the maximum speed, maximum acceleration and maximum jerk as the dynamic constraints.

6. The trajectory planning method for a multi-rotor UAV in an indoor environment according to any one of claims 1 to 5, characterized in that: The trajectory in the three-dimensional space in step S4 is represented by a piecewise Bezier curve, as shown below: Among them, p(t) is the trajectory curve represented by the piecewise Bezier curve, n is the order of the trajectory curve, and m is the total number of segments of the trajectory. is the jth parameter of the i-th trajectory curve, s i is the time to pass the i-th trajectory, T0 is the starting time of the first trajectory, T i , i = 1, 2, ..., m is the end time of the i-th trajectory, is the Bernstein basis function of the i-th trajectory; The trajectory generation is transformed into a quadratic programming problem with equality constraints and inequality constraints. The performance indicator is the minimum energy of the multi-rotor drone, as shown below: Where J is the energy consumed by the multi-rotor drone, p (4) (t) is the fourth differential of the trajectory curve; The equality constraints are as follows: Where k represents the number of trajectory differentiation, k is {0, 1, 2, 3}, p (k) (T0) is the k-th differential of the trajectory at time T0, is the k-th differential of the known starting point position, p (k) (T m ) is T m The k-th differential of the moment trajectory, is the k-th differential of the known end point position, p (k) (t) is the kth differential of the trajectory curve, T i - for T i The left limit of time, T i + for T i The right limit of the moment; The inequality constraints are as follows: p i (t)∈C i (4) -vel max ≤p (1) (t)≤vel max (5) -acc max ≤p (2) (t)≤acc max (6) -jerk max ≤p (3) (t)≤jerk max (7) Among them, p i (t) is the i-th trajectory curve, p (1) (t) is the first differential of the trajectory curve, p (2) (t) is the second differential of the trajectory curve, p (3) (t) is the third differential C of the trajectory curve i is the i-th flight channel area, vel max The maximum speed of a multi-rotor drone, acc max The maximum acceleration of a multi-rotor drone, jerk max The maximum jerk of the multi-rotor drone; Among them, equation (1) is the position, velocity, acceleration and jerk constraints of the starting point, equation (2) is the position, velocity, acceleration and jerk constraints of the end point, equation (3) is the constraint that the position, velocity, acceleration and jerk of the adjacent two end trajectories are equal, set (4) indicates that the flight trajectory must be in the flight channel, inequality (5) is the constraint on the flight speed of the multi-rotor UAV, inequality (6) is the constraint on the acceleration of the multi-rotor UAV, and inequality (7) is the constraint on the jerk of the multi-rotor UAV.