Obstacle avoidance method and system for unmanned aerial vehicle paths, and optimal path determination method and system

The particle swarm algorithm is used to segment the path and perform multi-dimensional obstacle avoidance judgment in UAV path planning, which solves the problem of unreasonable distribution of path points, improves the accuracy and adaptability of UAV path planning, and is suitable for complex obstacle environments. .

CN118377311BActive Publication Date: 2024-08-30XIAN LINGKONG ELECTRONICS TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202410804246.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-08-30
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

In a complex obstacle environment, the distribution of path points in UAV path planning is unreasonable, resulting in problems such as a large amount of calculation or the inability to find a suitable path.

Method used

The particle swarm algorithm is used to form multiple paths between the starting point and the target point of the UAV, and the number of path points is randomly given according to the particle dimension. The path is divided into sub-path segments along the x-axis direction. Obstacle avoidance is judged through multi-dimensional judgment to improve the path. The rationality of point distribution and obstacle avoidance accuracy.

Benefits of technology

It effectively avoids large calculations and local optimal problems, improves the accuracy and adaptability of path planning, and can find suitable UAV paths in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377311B
    Figure CN118377311B
Patent Text Reader

Abstract

The present invention proposes an obstacle avoidance method and system for a drone path, and an optimal path determination method and system, which belong to the field of drone technology. The obstacle avoidance method includes: planning a path; segmenting a path; obstacle avoidance judgment; and loop execution: loop execution of segmenting paths and obstacle avoidance judgment until obstacle avoidance judgment of all paths is completed. The present invention randomizes the number of path points on the path, and the distribution planning of path points on the path is more reasonable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of unmanned aerial vehicles, and relates to obstacle avoidance technology in unmanned aerial vehicle route planning, specifically an obstacle avoidance method and system for unmanned aerial vehicle paths, and an optimal path determination method and system. Background Art

[0002] The essence of drone path planning is to calculate an optimal flight path between the starting point and the target point. With the widespread use of drones, the scope of drones has been expanding, from medium and high altitudes to low and ultra-low altitudes. The obstacle environment they face is becoming increasingly complex, and they may even work around complex environments such as mountains, trees, and buildings. In these complex environments, drones are very likely to collide with obstacles. Once a drone collides with an obstacle, not only will the mission not be completed, but it will also cause huge economic losses. Therefore, obstacle avoidance is one of the factors that must be considered in the process of drone flight path planning.

[0003] Obstacle avoidance for drones is also a hot topic in the field of drone research. For example, the Chinese patent document with application number 202410495020.4 discloses a method for obstacle avoidance path planning for drones based on artificial potential fields, including: constructing a gravitational field and a repulsive field; constructing and initializing a planning task table, storing a graph Network of planning results; traversing the planning task table, obtaining the sub-target points of the obstacle, and iteratively updating the planning task table; according to the planning task table, iteratively planning the path based on the artificial potential field method; traversing all paths from the starting point to the end point in the Network, screening according to the set evaluation conditions, and obtaining the optimal path. The technical solution recorded in the patent document enables drones to avoid obstacles during path planning, but further improvement is needed to seek high-quality optimal solutions in the face of complex obstacle conditions. In the prior art, a particle swarm algorithm is used to plan the path of a drone under complex obstacle conditions, but the distribution of path points in the particle swarm algorithm during the calculation process is crucial to the path planning of the drone. If the distribution of path points is unreasonable, on the one hand, it may lead to a large amount of calculation, and on the other hand, it may not be possible to find a suitable path. Therefore, when using the particle swarm algorithm to plan the UAV path, how to distribute the path points is a major problem that needs to be solved. Summary of the invention

[0004] Based on what is described in the background technology, when using the particle swarm algorithm for UAV path planning, there is a technical problem of unreasonable distribution of path points. To address this technical problem, the present invention proposes an obstacle avoidance method and system for UAV paths, and an optimal path determination method and system.

[0005] The present invention forms multiple paths passing through the flight area between the starting point of the drone and the target point of the drone based on the particle swarm algorithm, and at the same time randomly gives the number of path points of the path according to the dimension of the particles in the particle swarm algorithm, and divides the path along the x-axis direction in the flight area according to the number of path points of the path, so that the path is divided into multiple sub-path segments, so that the number of path points on the path is randomized, and the rationality of the path point distribution planning on the path is improved. On the one hand, it avoids large calculation amount, and on the other hand, it can find a more suitable path.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] The obstacle avoidance method of the drone path of the present invention comprises the following steps:

[0008] Planning path:

[0009] Based on the particle swarm algorithm, multiple paths passing through the flight area are formed between the starting point of the UAV and the target point of the UAV, wherein an obstacle area is set in the flight area, and equivalent obstacles are set in the obstacle area;

[0010] Split Path:

[0011] According to the dimension of particles in the particle swarm algorithm, the number of path points of the path is randomly given, and the path is divided along the x-axis direction in the flight area according to the number of path points, so that the path is divided into multiple sub-path segments;

[0012] Obstacle avoidance judgment:

[0013] Determine whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0014] Loop execution:

[0015] The path segmentation and obstacle avoidance judgment are executed cyclically until the obstacle avoidance judgment of all paths is completed.

[0016] Further defined, the obstacle avoidance judgment specifically includes:

[0017] Determine whether the path point corresponding to the sub-path segment in the path is within the obstacle area. If not, perform the following steps; if yes, the path is an obstacle path;

[0018] Determine whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area on the projection surface of the flight area. If not, the path is a non-obstacle path; if so, perform the following steps;

[0019] Determine whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area in the height direction of the flight area. If not, the path is a non-obstacle path; if so, the path is an obstacle path.

[0020] Further defined, the step of determining whether the path point corresponding to the sub-path segment in the path is within the obstacle area, if not, executing the following steps; if yes, the path is an obstacle path, specifically comprising: determining whether the sub-path segment in the path is within the obstacle area; Waypoints in and waypoints Is it in the obstacle area? If the path point and waypoints If none of the paths are within the obstacle area, execute the following steps; otherwise, the path is an obstacle path.

[0021] It is further defined that whether the sub-path segment of the judgment path collides with the equivalent obstacle in the obstacle area on the projection surface of the flight area, if not, the path is a non-obstacle path; if yes, executing the following steps specifically includes:

[0022] Sub-path segments of a path , project on the XY plane in the three-dimensional space corresponding to the flight area to determine the sub-path segment The distance from each point in to each equivalent obstacle in the obstacle area ;

[0023] like , then there is no collision with the equivalent obstacles in the obstacle area on the projection surface of the flight area, and the path is a non-obstacle path;

[0024] If not, perform the following steps;

[0025] in, Refers to the subpath segment of the path The distance from the nth point in to the jth equivalent obstacle in the obstacle area, unit: m; is the equivalent radius of the jth equivalent obstacle in the obstacle area, unit: m; is the safe distance for drone flight, unit: m; is the equivalent diameter of the UAV, unit: m.

[0026] It is further defined that the determination of whether a sub-path segment of the path collides with an equivalent obstacle in the obstacle area in the height direction of the flight area, if not, the path is a non-obstacle path; if yes, the path is an obstacle path specifically includes:

[0027] Determine the sub-path segment of the path Waypoints in and waypoints Whether there is a collision with each equivalent obstacle in the obstacle area in the height direction;

[0028] like or ,and or , then there is no collision in the height direction, and the path is a non-obstacle path;

[0029] Otherwise, the path is an obstacle path;

[0030] in, Is a waypoint Altitude in the flight area, unit: m; Is a waypoint Altitude in the flight area, unit: m; is the bottom height of the jth equivalent obstacle in the obstacle area, unit: m; is the top height of the jth equivalent obstacle in the obstacle area, unit: m; It is the safe distance for drone to fly, unit: m.

[0031] The obstacle avoidance system of the drone path of the present invention comprises:

[0032] Path planning module: Based on the particle swarm algorithm, multiple paths passing through the flight area are formed between the starting point of the drone and the target point of the drone, wherein the flight area is provided with an obstacle area, and the obstacle area is provided with equivalent obstacles;

[0033] Path segmentation module: used to randomly assign the number of path points to a path according to the dimension of particles in the particle swarm algorithm, and segment the path along the x-axis direction in the flight area according to the number of path points, so that the path is segmented into multiple sub-path segments;

[0034] Obstacle avoidance judgment module: used to judge whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0035] And a loop execution module: loop execution of the path segmentation module and the obstacle avoidance judgment module until the obstacle avoidance judgment of all paths is completed.

[0036] The optimal path determination method of the UAV of the present invention comprises the following steps:

[0037] All the non-obstacle paths obtained by the obstacle avoidance method of the above-mentioned drone path are constrained through feasible solutions to obtain a feasible path set;

[0038] Establishing distance adaptive function of feasible paths;

[0039] Substitute the feasible path set into the distance adaptive function to obtain the distance adaptive value set and the optimal distance adaptive value;

[0040] The distance adaptive value set and the optimal distance adaptive value are updated and optimized through an adaptive algorithm to obtain an optimized optimal distance adaptive value, and the path corresponding to the optimized optimal distance adaptive value is used as the optimal path of the UAV.

[0041] It is further defined that the feasible solution includes the shortest distance of the sub-path segment of the path, the flight altitude of the path, and the turning angle of the drone corresponding to the path.

[0042] It is further defined that the distance adaptive function of the feasible path is:

[0043]

[0044] In the formula, is the distance adaptability value of the feasible path, unit: m; m is the sequence number of the path point on the feasible path, unit: piece; b is the number of path points on the feasible path, unit: piece; is the x-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the x-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the y-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the y-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the z-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; It is the z-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m.

[0045] The optimal path determination system of the UAV of the present invention comprises:

[0046] Feasible path determination module: used to perform constraint judgment on all non-obstacle paths obtained by the above-mentioned obstacle avoidance method of the UAV path through feasible solutions to obtain a feasible path set;

[0047] Adaptive function establishment module: used to establish the distance adaptive function of the feasible path;

[0048] Adaptive value determination module: used to substitute the feasible path set into the distance adaptive function to obtain the distance adaptive value set and the optimal distance adaptive value;

[0049] And the updating and optimizing module: used to update and optimize the distance adaptive value set and the optimal distance adaptive value through the adaptive algorithm, obtain the optimized optimal distance adaptive value, and use the path corresponding to the optimized optimal distance adaptive value as the optimal path of the UAV.

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

[0051] 1. The obstacle avoidance method for the drone path of the present invention is based on the particle swarm algorithm, which forms multiple paths passing through the flight area between the starting point of the drone and the target point of the drone. At the same time, according to the dimension of the particles in the particle swarm algorithm, the number of path points of the path is randomly given, and the path is divided along the x-axis direction in the flight area according to the number of path points of the path, so that the path is divided into multiple sub-path segments, so that the number of path points on the path is randomized, and the rationality of the path point distribution planning on the path is improved. On the one hand, it avoids the situation where the number of path points on the path is unreasonable, which causes a large amount of calculation; on the other hand, it avoids the unreasonable distribution of path points on the path, which makes it impossible to plan the drone path.

[0052] 2. The obstacle avoidance method of the drone path of the present invention divides the path into multiple sub-path segments by the number of path points for partition judgment to avoid falling into the local optimum, and then distinguishes the obstacle path and the non-obstacle path by whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area; then further investigates the non-obstacle path according to whether the projection surface of the sub-path segment in the flight area collides with the equivalent obstacle in the obstacle area; then judges whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area in the height direction of the flight area, and makes another judgment. The present invention makes judgments from different dimensions and layers, so that the accuracy of obstacle avoidance judgment is higher.

[0053] 3. The present invention sets a plurality of equivalent obstacles in the obstacle area, so that the obstacle avoidance process can adapt to obstacles of different sizes, that is, the obstacle avoidance process can adapt to complex environments.

[0054] 4. The optimal path determination method for the UAV of the present invention establishes a distance adaptive function of a feasible path, and continuously updates and optimizes the adaptive value set and the optimal distance adaptive value through an adaptive algorithm, thereby reducing the probability of falling into a local optimum when using a particle swarm algorithm to plan the path of the UAV.

[0055] 5. The optimal path determination method for the UAV of the present invention introduces a compression factor in the adaptive algorithm, which can better balance the global search capability and local search capability of the adaptive algorithm and improve the calculation speed of the adaptive algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 Schematic diagram of the obstacle avoidance method for the UAV path;

[0057] Figure 2 Schematic diagram of the obstacle avoidance system for the drone path;

[0058] Figure 3 A schematic diagram of a method for determining an optimal path for a UAV;

[0059] Figure 4 Schematic diagram of the optimal path determination system for UAVs. DETAILED DESCRIPTION

[0060] The technical solution of the present invention is further explained below in conjunction with the accompanying drawings and embodiments, but the present invention is not limited to the implementation modes described below.

[0061] The obstacle avoidance method and system of the drone path and the optimal path determination method and system of the present invention can adaptively select path points on the path, improve the inertia weight in the particle swarm algorithm, introduce a compression factor, and greatly improve the calculation speed. The present invention divides the path into multiple sub-path segments for partition calculation, which can avoid the technical problem of falling into local optimality when using the particle swarm algorithm to plan the path in the existing technology, plan a path that meets the conditions in the three-dimensional space of the flight area, and improve the planning accuracy of the path.

[0062] Example 1

[0063] See also Figure 1 The obstacle avoidance method for the drone path of this embodiment includes the following steps:

[0064] S1 (Planning Path): Get the flight area A, starting point, target point and obstacle area set in the flight area A of the drone , obstacle area There are equivalent obstacles in ; Based on the particle swarm algorithm, multiple paths passing through the flight area A are formed between the starting point of the drone and the target point of the drone; one path in this embodiment corresponds to one particle in the particle swarm;

[0065] S2 (segment path): randomly assign the number of path points to the path according to the dimension of the particles in the particle swarm algorithm, where the number of path points is b+1; segment the path along the x-axis in the three-dimensional space of the flight area according to the number of path points, so that the path is segmented into multiple sub-path segments, and the number of sub-path segments on the path is b; in this step, preferably, the path points are evenly distributed along the x-axis;

[0066] S3 (Obstacle Avoidance Judgment): Determine whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0067] S4 (loop execution): loop execution of steps S2 and S3 until the obstacle avoidance judgment of all paths is completed.

[0068] Wherein, step S3 specifically includes:

[0069] S3.1: Determine whether the path point corresponding to the sub-path segment in the path is within the obstacle area. If not, proceed to step S3.2; if yes, the path is an obstacle path;

[0070] Specifically, step S3.1 includes determining the sub-path segment of the path Waypoints in and waypoints Is it in the obstacle area? If the path point and waypoints If both paths are not in the obstacle area, then continue to step S3.2; otherwise, the path is an obstacle path.

[0071] S3.2: Determine whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area on the projection surface of the flight area. If not, the path is a non-obstacle path; if so, proceed to step S3.3;

[0072] Specifically, step S3.2 includes: Project the XY plane in the three-dimensional space corresponding to the flight area to determine the sub-path segment Each point in (including path points and waypoints ) to each equivalent obstacle in the obstacle area ,like , then there is no collision with the equivalent obstacle in the obstacle area on the projection surface of the flight area, and the path is a non-obstacle path; otherwise, continue to step S3.3; wherein, Refers to the subpath segment of the path The distance from the nth point in to the jth equivalent obstacle in the obstacle area, unit: m; is the equivalent radius of the jth equivalent obstacle in the obstacle area, unit: m; is the safe distance for drone flight, unit: m; is the equivalent diameter of the UAV, unit: m.

[0073] S3.3: Determine whether the sub-path segment of the path collides with an equivalent obstacle in the obstacle area in the height direction of the flight area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0074] Specifically, step S3.3 includes: determining the sub-path segment of the path Waypoints in and waypoints Whether there is a collision with each equivalent obstacle in the obstacle area in the height direction, if or ,and or , then there is no collision in the height direction and the path is a non-obstacle path; otherwise, the path is an obstacle path; where, Is a waypoint Altitude in the flight area, unit: m; Is a waypoint Altitude in the flight area, unit: m; is the bottom height of the jth equivalent obstacle in the obstacle area, unit: m; is the top height of the jth equivalent obstacle in the obstacle area, unit: m; It is the safe distance for drone to fly, unit: m.

[0075] In this embodiment, it is necessary to perform equivalent calculation on the obstacles in the obstacle zone to form equivalent obstacles. Assume that there are three types of obstacles in this embodiment, namely cylinders, spheres and irregular prisms, and the total number of equivalent obstacles contained in the obstacle zone is j. The equivalent calculation process of the three types of obstacles is as follows:

[0076] Cylinder: The center of the cylinder is the center of the equivalent obstacle, the radius of the bottom of the cylinder is the equivalent radius R of the equivalent obstacle, and the height of the bottom of the cylinder in the obstacle area is the bottom height H of the equivalent obstacle. 1j , the height of the top of the cylinder in the obstacle area is taken as the top height of the equivalent obstacle H 2j .

[0077] Sphere: The center of the sphere is the center of the equivalent obstacle, the radius of the sphere is the equivalent radius R of the equivalent obstacle, and the difference between the height of the center of the sphere in the obstacle area and the radius of the sphere is the bottom height H of the equivalent obstacle. 1j The sum of the height of the sphere center in the obstacle area and the radius of the sphere is the top height H of the equivalent obstacle. 2j .

[0078] Irregular prism: Project the irregular prism onto the XY plane in the three-dimensional space corresponding to the flight area A, and convert the projected polygon into a convex polygon; take the center position of the convex polygon as the center position of the equivalent obstacle; calculate the distance from the center position of the convex polygon to each vertex, and take the largest distance as the equivalent radius R of the equivalent obstacle; take the height of the bottom of the irregular prism in the obstacle area as the bottom height H of the equivalent obstacle 1j , the height of the top of the irregular prism in the obstacle area is taken as the top height H of the equivalent obstacle 2j .

[0079] The obstacle avoidance method for the drone path of this embodiment forms multiple paths passing through the flight area between the starting point of the drone and the target point of the drone based on the particle swarm algorithm, and at the same time randomly gives the number of path points of the path according to the dimension of the particles in the particle swarm algorithm, and divides the path along the x-axis direction in the flight area according to the number of path points of the path, so that the path is divided into multiple sub-path segments, so that the number of path points on the path is randomized, and the rationality of the distribution planning of the path points on the path is improved. On the one hand, it avoids the unreasonable number of path points on the path, which leads to a large amount of calculation; on the other hand, it avoids the unreasonable distribution of path points on the path, which makes it impossible to plan the drone path.

[0080] Example 2

[0081] The obstacle avoidance method for the drone path of this embodiment is different from that of Embodiment 1 in that it includes the following steps:

[0082] S1 (Planning Path): Get the flight area A, starting point, target point and obstacle area set in the flight area A of the drone , obstacle area There are equivalent obstacles in ; Based on the particle swarm algorithm, multiple paths passing through the flight area A are formed between the starting point of the drone and the target point of the drone; one path in this embodiment corresponds to one particle in the particle swarm;

[0083] S2 (segmentation of paths): randomly assign the number of path points to each path according to the dimension of the particles in the particle swarm algorithm, wherein the number of path points for each path is b+1; segment the path along the x-axis in the three-dimensional space of the flight area according to the number of path points corresponding to each path, so that each path is segmented into multiple sub-path segments, and the number of sub-path segments on each path is b; in this step, preferably, the path points are evenly distributed along the x-axis;

[0084] S3 (Obstacle Avoidance Judgment): Determine whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0085] S4 (loop execution): loop execution of step S3 until the obstacle avoidance judgment of all paths is completed.

[0086] The rest are the same as in Example 1.

[0087] Example 3

[0088] See also Figure 2The obstacle avoidance system for the drone path of this embodiment corresponds to the obstacle avoidance method for the drone path of Embodiment 1, and includes a path planning module, a path segmentation module, an obstacle avoidance judgment module, and a loop execution module;

[0089] Among them, the path planning module is used to obtain the flight area A, starting point, target point and obstacle area set in the flight area A of the drone. , obstacle area There are equivalent obstacles in ; Based on the particle swarm algorithm, multiple paths passing through the flight area A are formed between the starting point of the drone and the target point of the drone; one path in this embodiment corresponds to one particle in the particle swarm;

[0090] Path segmentation module: used to randomly assign the number of path points of a path according to the dimension of particles in the particle swarm algorithm, where the number of path points is b+1; according to the number of path points of the path, the path is segmented along the x-axis direction in the three-dimensional space of the flight area, so that the path is segmented into multiple sub-path segments, and the number of sub-path segments on the path is b;

[0091] Obstacle avoidance judgment module: used to judge whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0092] And a loop execution module: loop execution of the path segmentation module and the obstacle avoidance judgment module until the obstacle avoidance judgment of all paths is completed.

[0093] For the specific contents of the path planning module, path segmentation module, obstacle avoidance judgment module, loop execution module and equivalent calculation of obstacles in this embodiment, please refer to the description of Example 1.

[0094] The obstacle avoidance system of the drone path of this embodiment forms multiple paths passing through the flight area between the starting point of the drone and the target point of the drone based on the particle swarm algorithm. At the same time, the number of path points of the path is randomly given according to the dimension of the particles in the particle swarm algorithm, and the path is divided along the x-axis direction in the flight area according to the number of path points of the path, so that the path is divided into multiple sub-path segments, so that the number of path points on the path is randomized, and the rationality of the distribution planning of the path points on the path is improved. On the one hand, it avoids the unreasonable number of path points on the path, which leads to a large amount of calculation; on the other hand, it avoids the unreasonable distribution of path points on the path, which makes it impossible to plan the drone path.

[0095] Example 4

[0096] The obstacle avoidance system for the drone path of this embodiment corresponds to the obstacle avoidance method for the drone path of Example 2, and includes a path planning module, a path segmentation module, an obstacle avoidance judgment module, and a loop execution module;

[0097] Among them, the path planning module is used to obtain the flight area A, starting point, target point and obstacle area set in the flight area A of the drone. , obstacle area There are equivalent obstacles in ; Based on the particle swarm algorithm, multiple paths passing through the flight area A are formed between the starting point of the drone and the target point of the drone; one path in this embodiment corresponds to one particle in the particle swarm;

[0098] Path segmentation module: used to randomly assign the number of path points to each path according to the dimension of the particles in the particle swarm algorithm, wherein the number of path points for each path is b+1; segment the path along the x-axis direction in the three-dimensional space of the flight area according to the number of path points corresponding to each path, so that each path is segmented into multiple sub-path segments, and the number of sub-path segments on each path is b; in this step, preferably, the path points are evenly distributed along the x-axis direction;

[0099] Obstacle avoidance judgment module: used to judge whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path;

[0100] And a loop execution module: loop execution of the obstacle avoidance judgment module until the obstacle avoidance judgment of all paths is completed.

[0101] The rest is the same as Example 3.

[0102] Example 5

[0103] See also Figure 3 The optimal path determination method of the drone in this embodiment includes the following steps:

[0104] All non-obstruction paths obtained by the obstacle avoidance method of the drone path in Example 1 or Example 2 are constrained and judged through feasible solutions to obtain a feasible path set; specifically, the feasible solution includes the shortest distance of the sub-path segment of the path, the flight altitude of the path, and the drone turning angle corresponding to the path.

[0105] Establish a distance adaptive function of a feasible path; specifically, the distance adaptive function of the feasible path is:

[0106]

[0107] In the formula, is the distance adaptability value of the feasible path, unit: m; m is the sequence number of the path point on the feasible path, unit: piece; b is the number of path points on the feasible path, unit: piece; is the x-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the x-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the y-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the y-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the z-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the z-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m;

[0108] Substitute the feasible path set into the distance adaptive function to obtain the distance adaptive value set and the optimal distance adaptive value; wherein, during the first iteration, the distance adaptive value set is the feasible path set, and the optimal distance adaptive value is the path with the shortest distance in the feasible path set.

[0109] The distance adaptive value set and the optimal distance adaptive value are updated and optimized through an adaptive algorithm to obtain an optimized optimal distance adaptive value, and the path corresponding to the optimized optimal distance adaptive value is used as the optimal path of the UAV.

[0110] In this embodiment, constraint judgment through feasible solutions specifically includes:

[0111] SA: Set the shortest distance of the sub-path segments, and determine whether the distances of the sub-path segments corresponding to the non-obstacle path are all greater than the shortest distance of the sub-path segments. If the distances of the sub-path segments in the non-obstacle path are all greater than or equal to the shortest distance of the sub-path segments, continue with step SB; otherwise, discard the non-obstacle path.

[0112] SB: Set the minimum height and maximum height of the path points. If the height of the path points in the non-obstruction path is greater than or equal to the minimum height of the path points and less than or equal to the maximum height of the path points, continue with step SC; otherwise, abandon the non-obstruction path.

[0113] SC: Set the maximum turning angle of the drone. If the turning angle of the drone corresponding to the non-obstacle path is less than or equal to the maximum turning angle of the drone, the non-obstacle path is regarded as a feasible path; otherwise, the non-obstacle path is discarded.

[0114] SD: Repeat steps SA-SC until all non-obstacle paths are judged, and take the set of feasible paths that have been judged as the feasible path set.

[0115] In this embodiment, the calculation model of the adaptive algorithm is:

[0116]

[0117] In the formula, is the step length and direction of the path of the dth iteration, unit: m / s; d is the number of iterations, unit: times; is the compression factor, dimensionless; is the inertia weight of the dth iteration, dimensionless; is the step size and direction of the path of the d-1th iteration, unit: m / s; is the individual learning factor, dimensionless; is a random number, dimensionless; is the distance adaptive value set of the feasible path at the dth iteration, unit: m; is the current position of the ith feasible path at the dth iteration, dimensionless; is the social learning factor, dimensionless; is the optimal distance adaptation value of the dth iteration, unit: m; is the preset minimum inertia weight, dimensionless, with a value of 0.4; is the preset maximum inertia weight, dimensionless, with a value of 0.9; is the fitness value of each path after update, unit: m; is the minimum fitness value of the dth iteration path, unit: m; is the average fitness value of the dth iteration path, unit: m; .

[0118] Calculate the fitness value of each path after update , compare the fitness value of the current path with the optimal fitness value of the historical path, where the optimal fitness value of the historical path includes All fitness values ​​of iterations d=0; if the fitness value of the current path is smaller, update ,Pick The minimum value in Compare, Update .

[0119] Determine whether the maximum number of iterations has been reached. If not, continue iterating. If so, output the current The corresponding path is used as the optimal path for the UAV; the maximum number of iterations is a preset value.

[0120] The optimal path determination method for the drone of this embodiment establishes a distance adaptive function of a feasible path, and continuously updates and optimizes the adaptive value set and the optimal distance adaptive value through an adaptive algorithm, thereby reducing the probability of falling into a local optimum when using a particle swarm algorithm to plan the drone path.

[0121] Example 6

[0122] See also Figure 4 , the optimal path determination system of the UAV of this embodiment includes a feasible path determination module, an adaptive function establishment module, an adaptive value determination module and an update and optimization module;

[0123] Among them, the feasible path determination module is used to perform constraint judgment on all non-obstacle paths obtained by the obstacle avoidance method of the drone path in Example 1 or Example 2 through feasible solutions to obtain a feasible path set;

[0124] Adaptive function establishment module: used to establish the distance adaptive function of the feasible path;

[0125] Adaptive value determination module: used to substitute the feasible path set into the distance adaptive function to obtain the distance adaptive value set and the optimal distance adaptive value;

[0126] And the updating and optimizing module: used to update and optimize the distance adaptive value set and the optimal distance adaptive value through the adaptive algorithm, obtain the optimized optimal distance adaptive value, and use the path corresponding to the optimized optimal distance adaptive value as the optimal path of the UAV.

[0127] For the specific contents of the feasible path determination module, the adaptive function establishment module, the adaptive value determination module, and the updating and optimization module in this embodiment, please refer to the description of Embodiment 3.

[0128] The optimal path determination system of the drone of this embodiment establishes a distance adaptive function of a feasible path, and continuously updates and optimizes the adaptive value set and the optimal distance adaptive value through an adaptive algorithm, thereby reducing the probability of falling into a local optimum when using a particle swarm algorithm to plan the drone path.

[0129] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or part or all of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the present invention.

Claims

1. The obstacle avoidance method of the drone path is characterized by: The following steps are involved: Planning path: Based on the particle swarm algorithm, multiple paths passing through the flight area are formed between the starting point of the UAV and the target point of the UAV, wherein an obstacle area is set in the flight area, and equivalent obstacles are set in the obstacle area; Split Path: According to the dimension of particles in the particle swarm algorithm, the number of path points of the path is randomly given, and the path is divided along the x-axis direction in the flight area according to the number of path points, so that the path is divided into multiple sub-path segments; Obstacle avoidance judgment: Determine whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path; Loop execution: Execute the path segmentation and obstacle avoidance judgment in a loop until the obstacle avoidance judgment of all paths is completed; The obstacle avoidance judgment specifically includes: Determine whether the path point corresponding to the sub-path segment in the path is within the obstacle area. If not, perform the following steps; if yes, the path is an obstacle path; Determine whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area on the projection surface of the flight area. If not, the path is a non-obstacle path; if so, perform the following steps; Determine whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area in the height direction of the flight area. If not, the path is a non-obstacle path; if so, the path is an obstacle path.

2. The obstacle avoidance method for a drone path according to claim 1, characterized in that: The determining whether the path point corresponding to the sub-path segment in the path is within the obstacle area, if not, executing the following steps; If yes, then the path is an obstacle path, specifically including: Determine the sub-path segment of the path Waypoints in and waypoints Is it in the obstacle area? If the path point and waypoints If none of them are in the obstacle area, perform the following steps; Otherwise, the path is an obstacle path.

3. The obstacle avoidance method for a drone path according to claim 1, characterized in that: The determination of whether the sub-path segment of the path collides with the equivalent obstacle in the obstacle area on the projection surface of the flight area, if not, the path is a non-obstacle path; if yes, the following steps are specifically performed: Sub-path segments of a path , project on the XY plane in the three-dimensional space corresponding to the flight area to determine the sub-path segment The distance from each point in to each equivalent obstacle in the obstacle area ; like , then there is no collision with the equivalent obstacles in the obstacle area on the projection surface of the flight area, and the path is a non-obstacle path; If not, perform the following steps; in, Refers to the subpath segment of the path The distance from the nth point in to the jth equivalent obstacle in the obstacle area, unit: m; is the equivalent radius of the jth equivalent obstacle in the obstacle area, unit: m; is the safe distance for drone flight, unit: m; is the equivalent diameter of the UAV, unit: m.

4. The obstacle avoidance method for a drone path according to claim 1, characterized in that: The determining whether the sub-path segment of the path collides with an equivalent obstacle in the obstacle area in the height direction of the flight area, if not, the path is a non-obstacle path; if yes, the path is an obstacle path specifically includes: Determine the sub-path segment of the path Waypoints in and waypoints Whether there is a collision with each equivalent obstacle in the obstacle area in the height direction; like or ,and or , then there is no collision in the height direction, and the path is a non-obstacle path; Otherwise, the path is an obstacle path; in, Is a waypoint Altitude in the flight area, unit: m; Is a waypoint Altitude in the flight area, unit: m; is the bottom height of the jth equivalent obstacle in the obstacle area, unit: m; is the top height of the jth equivalent obstacle in the obstacle area, unit: m; It is the safe distance for drone to fly, unit: m.

5. The obstacle avoidance system for a drone path is applied to the obstacle avoidance method for a drone path according to claim 1, characterized in that: include: Path planning module: Based on the particle swarm algorithm, multiple paths passing through the flight area are formed between the starting point of the drone and the target point of the drone, wherein the flight area is provided with an obstacle area, and the obstacle area is provided with equivalent obstacles; Path segmentation module: used to randomly assign the number of path points to a path according to the dimension of particles in the particle swarm algorithm, and segment the path along the x-axis direction in the flight area according to the number of path points, so that the path is segmented into multiple sub-path segments; Obstacle avoidance judgment module: used to judge whether the sub-path segment in the path collides with the equivalent obstacle in the obstacle area. If not, the path is a non-obstacle path; if so, the path is an obstacle path; And a loop execution module: loop execution of the path segmentation module and the obstacle avoidance judgment module until the obstacle avoidance judgment of all paths is completed.

6. A method for determining an optimal path of a drone, characterized in that: The following steps are involved: All non-obstruction paths obtained by the obstacle avoidance method for the drone path according to any one of claims 1 to 5 are subjected to constraint judgment through feasible solutions to obtain a feasible path set; Establishing distance adaptive function of feasible paths; Substitute the feasible path set into the distance adaptive function to obtain the distance adaptive value set and the optimal distance adaptive value; The distance adaptive value set and the optimal distance adaptive value are updated and optimized through an adaptive algorithm to obtain an optimized optimal distance adaptive value, and the path corresponding to the optimized optimal distance adaptive value is used as the optimal path of the UAV.

7. The optimal path determination method for a UAV according to claim 6, characterized in that: The feasible solution includes the shortest distance of the sub-path segments of the path, the flight altitude of the path, and the turning angle of the drone corresponding to the path.

8. The optimal path determination method for a drone according to claim 7, characterized in that: The distance adaptive function of the feasible path is: In the formula, is the distance adaptability value of the feasible path, unit: m; m is the number of the path point on the feasible path, unit: number; b is the number of path points on the feasible path, in units of pieces; is the x-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the x-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the y-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the y-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; is the z-axis coordinate of the mth path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m; It is the z-axis coordinate of the m-1th path point in the three-dimensional space corresponding to the flight area of ​​the feasible path, unit: m.

9. The optimal path determination system for a drone is characterized by: include: A feasible path determination module: used to perform constraint judgment on all non-obstruction paths obtained by the obstacle avoidance method of the drone path described in any one of claims 1 to 5 through feasible solutions to obtain a feasible path set; Adaptive function establishment module: used to establish the distance adaptive function of the feasible path; Adaptive value determination module: used to substitute the feasible path set into the distance adaptive function to obtain the distance adaptive value set and the optimal distance adaptive value; And the updating and optimizing module: used to update and optimize the distance adaptive value set and the optimal distance adaptive value through the adaptive algorithm, obtain the optimized optimal distance adaptive value, and use the path corresponding to the optimized optimal distance adaptive value as the optimal path of the UAV.

Citation Information

Patent Citations

  • A UAV obstacle avoidance path planning method based on artificial potential field

    CN118068854A

  • Unmanned aerial vehicle independent pathfinding obstacle avoiding method and system

    CN108444482A

  • Drone route planning method and system aiming at irregular obstacles

    CN109828607A

  • Trajectory planning method of fixed-wing unmanned aerial vehicle

    CN109871031A

  • Method for planning obstacle avoidance motion of UAV under cruise mission

    CN110320933A