A method, device and medium for unmanned aerial vehicle (UAV) route planning
Through the Gaussian sampling method and dynamic step optimization technology, combined with bidirectional node pruning, the inefficiency problem of traditional UAV trajectory planning in three-dimensional space is solved, and faster and more efficient trajectory planning is achieved.
Patent Information
- Application Number
- CN202211314517.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-10-25
AI Technical Summary
The traditional UAV trajectory planning method is inefficient in three-dimensional space, and it is difficult to avoid local minimum points and curve oscillations. The practical application of the RRT algorithm in high-dimensional space has limitations, resulting in low efficiency of UAV trajectory planning.
The Gaussian sampling method is used to construct a path tree, combined with dynamic step size and bidirectional node pruning technology to optimize track planning, reduce blindness of sampling and increase the step size of track expansion, reduce unnecessary sampling nodes, and achieve faster paths. planning.
Through global search and local differential optimization, the speed and efficiency of route planning are improved, the complexity of route planning is reduced, and a more optimized route is obtained.
Smart Images

Figure CN115454143B
Abstract
Description
Technical Field
[0001] The present invention relates to unmanned aerial vehicle (UAV) technology, and more specifically, to a method, device and medium for planning a route for an unmanned aerial vehicle (UAV). Background Art
[0002] With the continuous expansion of the scale of power transmission lines, the quality of operation and maintenance of high-voltage transmission lines is directly related to the safe and stable operation of overhead transmission lines. The traditional line inspectors can no longer meet the requirements of intelligent transmission line operation and maintenance quality through manual remote control of drone inspections. Generally speaking, drone trajectory planning is to minimize the navigation distance, time consumption and other factors as much as possible under the premise of meeting multiple dynamic constraints (such as: trajectory safety, trajectory smoothness and shortest navigation distance, etc.). Therefore, autonomous drone inspection in complex environments has become a key research issue. In the traditional way, domestic and foreign scholars have studied the difficulties of mobile robot development through mathematical modeling methods. In recent years, the above traditional methods (such as: artificial potential field, harmonic function and other vector fields) have also been applied to drone planning, but these traditional methods are difficult to avoid falling into local minima, curve oscillation and other problems. A* algorithm, D* algorithm, Dijkstra algorithm and many other meta-heuristic algorithms are algorithms for trajectory planning solutions based on heuristic search. The sampling-based path search method (rapidly expanding random tree algorithm, RRT) is different from the traditional algorithm that relies on known obstacles. It has efficient and agile spatial exploration capabilities and greatly reduces the time and space complexity of the algorithm.
[0003] Although the RRT algorithm is used to optimize the running path of the mobile robot, and the redundant node pruning method is used to shorten the path length, the exploration ability of the RRT algorithm in high-dimensional space cannot be fully utilized. That is, the RRT algorithm is mostly used in a two-dimensional environment, but its practical application in three-dimensional space has limitations. The traditional RRT algorithm has low efficiency in drone trajectory planning due to sampling blindness. Summary of the invention
[0004] In view of this, the present invention proposes a method, device and medium for UAV route planning.
[0005] The present invention provides a method for planning a route for an unmanned aerial vehicle, comprising: constructing a three-dimensional space model according to a navigation environment of the unmanned aerial vehicle; setting a starting node and a target node in the three-dimensional space model; constructing a path tree based on the starting node and the target node according to a Gaussian sampling method; obtaining a three-dimensional space track point set from the starting node to the target node according to the path tree; and performing a line segment fitting operation on the three-dimensional space track point set to obtain a route.
[0006] Preferably, the drone navigation environment includes an obstacle area and a safety area.
[0007] Preferably, constructing a path tree based on the start node and the target node according to the Gaussian sampling method includes:
[0008] Sampling point selection: constructing a random tree with the starting node in the safe area, selecting a random node in the safe area by the Gaussian sampling method, and traversing the random tree to find the node closest to the node;
[0009] Fixed-length expansion: expand new state points with dynamic step length;
[0010] Collision detection: If no collision occurs during the expansion process, it will be added to the random tree, otherwise a random node will be regenerated;
[0011] The sampling point selection, the fixed-length expansion and the collision detection process are repeated repeatedly until the area where the target node is located is searched, and finally the end point is traced back to the starting point to obtain a path tree formed by sequentially connecting each sampling node.
[0012] Preferably, the dynamic step size includes:
[0013] The minimum safe distance between a UAV and obstacles in the three-dimensional space of the transmission line corridor spatial area is set as a threshold;
[0014] When the distance between the UAV and obstacles in the three-dimensional space of the transmission line corridor is greater than or equal to the threshold, it means that the UAV is in the safe area of free flight, and the random tree selects a fixed step size to quickly explore the spatial trajectory;
[0015] When the distance between the obstacles in the three-dimensional space of the UAV and the transmission line corridor is less than the threshold, it means that there are obstacles in the three-dimensional space of the UAV and the transmission line corridor, and there is a risk. At this time, the mathematical expression of the dynamic step size is:
[0016]
[0017] Preferably, the step of obtaining a three-dimensional space track point set from the starting node to the target node according to the path tree includes:
[0018] At the same time, the path tree is pruned from both the head and tail directions to remove invalid sampling nodes, and a three-dimensional space track point set from the start node to the target node is obtained.
[0019] Preferably, performing a line segment fitting operation on the three-dimensional space track point set to obtain a route includes:
[0020] Connecting the next track point in the three-dimensional space track point set sequentially from the starting node using a line segment fitting method;
[0021] When the UAV encounters an obstacle in the transmission line corridor space, the previous track point is saved in the track point set N1, and the point is used as the parent node to start returning to perform line segment fitting until the target node is reached;
[0022] Calculate the path length in the track point set N1 as P1;
[0023] Using a line segment fitting method to sequentially reversely connect the previous track point in the three-dimensional space track point set from the target node;
[0024] When the UAV encounters an obstacle in the transmission line corridor space, the previous track point is saved in the track point set N2, and the point is used as the parent node to start returning to perform line segment fitting until the starting node is reached;
[0025] Calculate the path length in the track point set N2 as P2;
[0026] Compare the sizes of P1 and P2. If P1 is smaller than P2, select the track point set N1 after line segment fitting as the final route; if P1 is greater than or equal to P2, select the track point set N2 after line segment fitting as the final route.
[0027] The present invention also provides a UAV route planning device, comprising: a first unit, used to construct a three-dimensional space model according to the UAV navigation environment; a second unit, used to set a starting node and a target node in the three-dimensional space model; a third unit, used to construct a path tree based on the starting node and the target node according to the Gaussian sampling method; a fourth unit, used to obtain a three-dimensional space track point set from the starting node to the target node according to the path tree; and a fifth unit, used to perform a line segment fitting operation on the three-dimensional space track point set to obtain a route.
[0028] The present invention also provides a computer-readable storage medium, which includes storing at least one instruction, at least one program, code set or instruction set, wherein when the instruction, the program, the code set or the instruction set is executed, the device where the computer-readable storage medium is located is controlled to execute a drone route planning method.
[0029] The present invention also provides a computer device, including a processor, a memory, and at least one instruction, at least one program, a code set or an instruction set stored in the memory and configured to be executed by the processor, and the processor implements a drone route planning method when executing the instruction, the program, the code set or the instruction set.
[0030] Beneficial Effects
[0031] Compared with the prior art, the technical solution has the following advantages: the technical solution adopts the Gaussian sampling method, which can search globally and reflect differences in local space, reducing the blindness of sampling; then, a dynamic step optimization strategy is adopted, which not only improves the step size of track expansion, but also reduces many unnecessary sampling nodes, speeds up path planning, and optimizes the track through the bidirectional node deletion method. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a schematic diagram of a UAV route planning method of the present invention;
[0033] Figure 2 Schematic diagram of the UAV route planning device of the present invention.
[0034] Description of main reference numerals:
[0035] 1. Unit 1; 2. Unit 2; 3. Unit 3; 4. Unit 4; 5. Unit 5. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not 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.
[0037] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0038] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0039] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0040] See also Figure 1-2 , a UAV route planning method, comprising:
[0041] S1. Construct a three-dimensional space model based on the UAV navigation environment;
[0042] S2, setting a starting node and a target node in the three-dimensional space model;
[0043] S3, constructing a path tree based on the start node and the target node according to the Gaussian sampling method;
[0044] S4, obtaining a three-dimensional space track point set from the starting node to the target node according to the path tree;
[0045] S5. Perform a line segment fitting operation on the three-dimensional track point set to obtain a route.
[0046] In this embodiment, the drone navigation environment includes an obstacle area and a safety area.
[0047] Among them, multi-circuit high-voltage transmission line towers, forests, etc. are obstacle areas, and the free flight area is a safe area. On the horizontal plane, the exponential function is superimposed to form the obstacle area in the transmission line corridor space. The mathematical expression of this area is shown in formula (1):
[0048]
[0049] Where: h0 is the space reference height; h k is the height of the kth obstacle in the transmission line corridor space; n is the number of obstacles in the transmission line corridor space; and are the coordinates corresponding to the center point of the kth obstacle in the transmission line corridor space; and are the transverse slope and longitudinal slope corresponding to the kth obstacle in the transmission line corridor space, respectively.
[0050] In this embodiment, according to the Gaussian sampling method, a path tree based on the start node and the target node is constructed, including:
[0051] Sampling point selection: construct a random tree with the starting node in the safe area, select a random node in the safe area through Gaussian sampling method, and traverse the random tree to find the node closest to the node;
[0052] Fixed-length expansion: expand new state points with dynamic step length;
[0053] Collision detection: If no collision occurs during the expansion process, it will be added to the random tree, otherwise a random node will be regenerated;
[0054] The sampling point selection, fixed-length expansion and collision detection process are repeated repeatedly until the area where the target node is located is searched, and finally backtracking from the end point to the starting point to obtain a path tree formed by connecting each sampling node in sequence.
[0055] Among them, in the Gaussian sampling process, the gravity factor is first configured, and then the growth direction of the random tree is determined according to the value of the configured gravity factor. It is to configure the Gaussian sampling node χ with a certain probability. rand and the target point χ goal The relationship between rand = x goal This method can not only make the random tree fully explore the space, but also improve the convergence speed. Therefore, by defining the n-dimensional density function that obeys the Gaussian distribution, its mathematical expression is shown in formula (2):
[0056]
[0057] Among them, σ is the standard deviation, c represents the distance between the sampling point obtained by the Gaussian sampling method and the obstacle in the transmission line corridor space, and the obstacle function Obs(c) is defined. It is assumed that when colliding with the obstacle in the transmission line corridor space, Obs(c) = 1, otherwise, Obs(c) = 0. The Gaussian sampling probability function is defined as:
[0058] f(c,σ)=∫Obs(y)Φ(cy,σ)dy (3),
[0059] Where f(c, σ) is the probability of random sampling points. It can be seen from formula (3) that the sampling points are densely distributed in the area near the obstacles in the transmission line corridor space, and the sampling points of free flight in the safe area in the transmission line corridor space are sparsely distributed.
[0060] Therefore, define the collision detection function:
[0061] g(c,σ)=max(f(c,σ)-Obs(c)) (4),
[0062] It can be seen from formula (4) that when the sampling point collides with an obstacle, g(c, σ) = 0, otherwise, g(c, σ) = f(c, σ), which effectively avoids the risk of collision with obstacles in the transmission line corridor space.
[0063] In this embodiment, the dynamic step size includes:
[0064] The minimum safe distance between a UAV and obstacles in the three-dimensional space of the transmission line corridor spatial area is set as a threshold;
[0065] When the distance between the UAV and obstacles in the three-dimensional space of the transmission line corridor is greater than or equal to the threshold, it means that the UAV is in the safe area of free flight, and the random tree selects a fixed step size to quickly explore the spatial trajectory;
[0066] When the distance between the obstacles in the three-dimensional space of the UAV and the transmission line corridor is less than the threshold, it means that there are obstacles in the three-dimensional space of the UAV and the transmission line corridor, and there is a risk. At this time, the mathematical expression of the dynamic step size is:
[0067]
[0068] Therefore, the dynamic vector step size optimization algorithm is used to plan the three-dimensional space trajectory of the transmission line corridor space area, and establish a start Towards the target point x goal The feasible path tree T1 is grown. By iterative growth, a random node χ is generated. rand , and find the node χ closest to it on T1 near , and then move to χ with a fixed step size S near → rand grow in the direction to generate a new node χ new Detection χ new Is it in a safe flight environment until the second tree from the target point χ is found goal Towards the starting point χ start Grow the feasible path tree T2. Check the updated node x new The calculation formula is defined as:
[0069]
[0070] In this embodiment, a three-dimensional space track point set from a starting node to a target node is obtained according to a path tree, including:
[0071] At the same time, the path tree is pruned from both the head and tail directions to remove invalid sampling nodes, and a three-dimensional spatial track point set from the start node to the target node is obtained.
[0072] Among them, due to the problem that the route planned by algorithm exploration is not the best route, in order to quickly and effectively delete redundant nodes, a two-way pruning method is used to obtain the optimal route.
[0073] In this embodiment, a line segment fitting operation is performed on a three-dimensional track point set to obtain a route, including:
[0074] Use the line segment fitting method to sequentially connect the next track point in the subsequent three-dimensional space track point set from the starting node;
[0075] When the UAV encounters an obstacle in the transmission line corridor space, the previous track point is saved in the track point set N1, and the point is used as the parent node to start returning to perform line segment fitting until the target node is reached;
[0076] Calculate the path length in the track point set N1 as P1;
[0077] Use the line segment fitting method to reversely connect the previous track point in the previous three-dimensional space track point set from the target node in sequence;
[0078] When the UAV encounters an obstacle in the transmission line corridor space, the previous track point is saved in the track point set N2, and the point is used as the parent node to return to perform line segment fitting until the starting node is reached;
[0079] Calculate the path length in the track point set N2 as P2;
[0080] Compare the sizes of P1 and P2. If P1 is smaller than P2, select the track point set N1 after line segment fitting as the final route; if P1 is greater than or equal to P2, select the track point set N2 after line segment fitting as the final route.
[0081] This embodiment also provides a UAV route planning device, including: a first unit, used to construct a three-dimensional space model according to the UAV navigation environment; a second unit, used to set a starting node and a target node in the three-dimensional space model; a third unit, used to construct a path tree based on the starting node and the target node according to the Gaussian sampling method; a fourth unit, used to obtain a three-dimensional space track point set from the starting node to the target node according to the path tree; and a fifth unit, used to perform a line segment fitting operation on the three-dimensional space track point set to obtain a route.
[0082] This embodiment also provides a computer-readable storage medium, which includes storing at least one instruction, at least one program, code set or instruction set, wherein when the instruction, the program, the code set or the instruction set is executed, the device where the computer-readable storage medium is located is controlled to execute the drone route planning method.
[0083] This embodiment also provides a computer device, including a processor, a memory, and at least one instruction, at least one program, a code set or an instruction set stored in the memory and configured to be executed by the processor, and the processor implements the drone route planning method when executing the instruction, the program, the code set or the instruction set.
[0084] Those of ordinary skill in the art will appreciate that the units of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0085] In the embodiments provided in the present application, it should be understood that the division of units is merely a logical function division, and there may be other division methods in actual implementation, for example, multiple units may be combined into one unit, one unit may be split into multiple units, or some features may be ignored.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A method for planning a UAV route. It is characterized in that include: Constructing a three-dimensional space model according to the UAV navigation environment, wherein the UAV navigation environment includes an obstacle area and a safety area; Setting a starting node and a target node in the three-dimensional space model; According to the Gaussian sampling method, construct a path tree based on the starting node and the target node; Obtaining a three-dimensional space track point set from the starting node to the target node according to the path tree; Performing a line segment fitting operation on the three-dimensional space track point set to obtain a route; The step of constructing a path tree based on the start node and the target node according to the Gaussian sampling method includes: Sampling point selection: constructing a random tree with the starting node in the safe area, selecting a random node in the safe area by the Gaussian sampling method, and traversing the random tree to find the node closest to the node; Fixed-length expansion: expand new state points with dynamic step length; Collision detection: If no collision occurs during the expansion process, it will be added to the random tree, otherwise a random node will be regenerated; The sampling point selection, the fixed-length expansion and the collision detection process are repeated repeatedly until the area where the target node is located is searched, and finally the end point is traced back to the starting point to obtain a path tree formed by sequentially connecting each sampling node.
2. The UAV route planning method according to claim 1, It is characterized in that The dynamic step size includes: The minimum safe distance between a UAV and obstacles in the three-dimensional space of the transmission line corridor spatial area is set as a threshold; When the distance between the UAV and obstacles in the three-dimensional space of the transmission line corridor is greater than or equal to the threshold, it means that the UAV is in the safe area of free flight, and the random tree selects a fixed step size to quickly explore the spatial trajectory; When the distance between the obstacles in the three-dimensional space of the UAV and the transmission line corridor is less than the threshold, it means that there are obstacles in the three-dimensional space of the UAV and the transmission line corridor, and there is a risk. At this time, the mathematical expression of the dynamic step size is:
3. The UAV route planning method according to claim 1, It is characterized in that The step of obtaining a three-dimensional space track point set from the starting node to the target node according to the path tree includes: At the same time, the path tree is pruned from both the head and tail directions to remove invalid sampling nodes, and a three-dimensional space track point set from the start node to the target node is obtained.
4. The method for planning a UAV route according to claim 1, It is characterized in that The performing a line segment fitting operation on the three-dimensional space track point set to obtain a route includes: Connecting the next track point in the three-dimensional space track point set sequentially from the starting node using a line segment fitting method; When the UAV encounters an obstacle in the transmission line corridor space, the previous track point is saved in the track point set N1, and the point is used as the parent node to start returning to perform line segment fitting until the target node is reached; Calculate the path length in the track point set N1 as P1; Using a line segment fitting method to sequentially reversely connect the previous track point in the three-dimensional space track point set from the target node; When the UAV encounters an obstacle in the transmission line corridor space, the previous track point is saved in the track point set N2, and the point is used as the parent node to start returning to perform line segment fitting until the starting node is reached; Calculate the path length in the track point set N2 as P2; Compare the sizes of P1 and P2. If P1 is smaller than P2, select the track point set N1 after line segment fitting as the final route; if P1 is greater than or equal to P2, select the track point set N2 after line segment fitting as the final route.
5. A drone route planning device using the drone route planning method according to any one of claims 1 to 4, It is characterized in that include: The first unit is used to construct a three-dimensional space model based on the drone’s navigation environment; A second unit is used to set a start node and a target node in the three-dimensional space model; A third unit is used to construct a path tree based on the start node and the target node according to a Gaussian sampling method; A fourth unit is used to obtain a three-dimensional space track point set from the starting node to the target node according to the path tree; The fifth unit is used to perform a line segment fitting operation on the three-dimensional space track point set to obtain a route.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes at least one instruction, at least one program, a code set or an instruction set, wherein when the instruction, the program, the code set or the instruction set is executed, the device where the computer-readable storage medium is located is controlled to execute the drone route planning method as described in any one of claims 1 to 4.
7. A computer device, It is characterized in that The method comprises a processor, a memory, and at least one instruction, at least one program, a code set or an instruction set stored in the memory and configured to be executed by the processor. When the processor executes the instruction, the program, the code set or the instruction set, the method for planning the route of a UAV as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Route planning method for mobile robot
CN104571113A
Fast underwater robot three-dimensional path planning method with target-oriented centralized optimization
CN110196602A
Fast expansion random tree algorithm based on Gaussian sampling and target deviation guidance, electronic equipment and storage medium
CN112902971A
