A UAV path planning method, device and storage medium

By using expansion nodes and cost function search strategies in UAV trajectory planning to generate and evaluate successor nodes, the accuracy and safety issues of UAV trajectory planning in complex environments are solved, and a more efficient and safe path is achieved. Flight path planning.

CN118274848BActive Publication Date: 2024-09-24NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711563.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Existing drone trajectory planning technology is difficult to ensure that the drone accurately reaches the target point and avoids all obstacles in complex environments, affecting flight safety.

Method used

Adopt the strategy of expanding nodes and searching according to the cost function, generate successor nodes and calculate the cost value through the expand_array function, consider terrain height and threat cost, and dynamically adjust the path to avoid obstacles and dangerous areas.

Benefits of technology

It improves the real-time, efficiency, accuracy and safety of trajectory planning, ensures the accuracy and safety of UAV flight, and adapts to changes in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118274848B
    Figure CN118274848B
Patent Text Reader

Abstract

The present application discloses a method for unmanned aerial vehicle path planning, which comprises the following steps: S1 loads map data, initializes the coordinates of the starting node, sets an OPEN list and a CLOSED list, and adds the coordinates of the starting node to the OPEN list; wherein the OPEN list is used to store the nodes to be explored, and the CLOSED list is used to store the nodes that have been explored; S2 uses the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes, and if the successor node is in the CLOSED list, updates the information of the successor node; if the successor node is not in the CLOSED list, adds it to the OPEN list and marks the cost value; S3 obtains the successor node with the lowest cost in the OPEN list, and uses it as the new current node for continued exploration; S4 repeats steps S2-S3, reaches the target node, and constructs the optimal path. The unmanned aerial vehicle path planning method provided by the present invention can improve the real-time, efficiency, accuracy and safety of trajectory planning, and optimize the flight path to better meet the actual application needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of drone technology, and more specifically, to a drone path planning method, device and storage medium. Background Art

[0002] Trajectory planning is one of the key technologies in autonomous UAV flight, which involves calculating the UAV flight path to reach the target point while avoiding obstacles and optimizing flight performance.

[0003] In the practical application of UAV trajectory planning in three-dimensional terrain planning, some problems will be faced. In reality, UAVs may face complex environments, including multiple obstacles, high altitude areas, etc. These factors will affect trajectory planning. Existing technical solutions cannot ensure that UAVs can accurately reach the target point while avoiding all obstacles in such a complex environment, making it difficult to ensure flight safety. Summary of the invention

[0004] In response to at least one defect or improvement need in the prior art, the present invention provides a UAV path planning method, device and storage medium, which can improve the real-time, efficiency, accuracy and safety of trajectory planning, and optimize the flight path to better meet actual application needs.

[0005] To achieve the above object, according to a first aspect of the present invention, a method for UAV path planning is provided, the method comprising the following steps:

[0006] S1 loads the map data, initializes the coordinates of the starting node, sets the OPEN list and the CLOSED list, and adds the coordinates of the starting node to the OPEN list; the OPEN list is used to store the nodes to be explored, and the CLOSED list is used to store the nodes that have been explored;

[0007] S2 uses the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes. If the successor node is in the CLOSED list, the information of the successor node is updated; if the successor node is not in the CLOSED list, it is added to the OPEN list and the cost value is marked;

[0008] S3 obtains the successor node with the lowest cost in the OPEN list, uses it as the new current node for continued exploration, and adds the explored node as the parent node to the CLOSED list;

[0009] S4 repeats steps S2 to S3 to reach the target node, traces back from the target node to the starting node, and constructs the optimal path;

[0010] The use of the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes specifically includes:

[0011] S2.1 calculates the x offset of the current node k_x=node_x-nodef_x, and calculates the y offset of the current node k_y=node_y-nodef_y, where node_x and node_y are the x coordinate and y coordinate of the current node, and nodef_x and nodef_y are the x coordinate and y coordinate of the parent node;

[0012] S2.2 generates multiple successor nodes by traversing various situations according to the different values ​​of the x offset and the y offset, and calculates the position of each successor node;

[0013] S2.3 When the successor node is not in the CLOSED list, add the successor node to the OPEN list, and if the height difference between the successor node and the preset height is not greater than the first threshold, calculate the distance between the current node and the preset reference point, and obtain the threat cost and the height cost;

[0014] S2.4 calculates the cost value of the successor node based on the threat cost and the height cost;

[0015] The calculating of the distance between the current node and the preset reference point to obtain the threat cost specifically includes:

[0016] Get the coordinates (x', y', z') of the preset reference point, get the coordinates (s_x, s_y, s_z) of the successor node, and calculate the distance between the successor node and the preset reference point

[0017]

[0018] If Dis_TW is greater than or equal to the second preset threshold, the threat cost h_ThreatenW is 0; if Dis_TW is less than the second preset threshold, the coordinates (x, y, z) of the intermediate node are calculated, where

[0019]

[0020]

[0021]

[0022] Calculate the distance between the intermediate node and the preset reference point

[0023]

[0024] Calculating the cost of threats

[0025] ;

[0026] The height cost is ;

[0027] The cost value f(n) includes the heuristic cost g(n) and the movement cost h(n), where

[0028]

[0029]

[0030]

[0031] Where (xTarget, yTarget, zTarget) are the coordinates of the target node, is the base movement cost, is the distance between the successor node and the current node.

[0032] Furthermore, the above-mentioned UAV path planning method, after traversing various situations to generate a successor node and calculating the position of the successor node, also includes checking whether the position of the successor node is within the map boundary. If the coordinates of the successor node are between the maximum boundary value and the minimum boundary value of the map, step S2.3 is performed; if the coordinates of the successor node are not between the maximum and minimum boundary values ​​of the map, step S2.3 and subsequent steps are not executed for the successor node.

[0033] Furthermore, the above-mentioned drone path planning method displays the constructed optimal path on a visualization device; or if the target node is not reached and the optimal path cannot be constructed, a warning message is displayed on the visualization device.

[0034] Furthermore, the above-mentioned UAV path planning method displays the constructed optimal path on a visualization device, specifically comprising:

[0035] Draw flight paths, starting points and endpoints in a three-dimensional coordinate system, draw terrain data surfaces, draw no-fly zones, and abnormal weather areas;

[0036] Construct a vertical profile of the flight path to show how the flight altitude changes with distance, extract the terrain heights corresponding to the flight path nodes, and calculate and plot the flight altitude changes and terrain heights.

[0037] According to the second aspect of the present invention, there is also provided a UAV path planning device, which includes at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of any one of the above-mentioned methods.

[0038] According to a third aspect of the present invention, there is also provided a storage medium storing a computer program executable by an access authentication device, wherein when the computer program runs on the access authentication device, the access authentication device executes the steps of any one of the above methods.

[0039] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0040] (1) The present invention provides a UAV path planning method, which can effectively search for potential paths and find the optimal path by adopting a strategy of expanding nodes and searching according to a cost function. It can improve the real-time, efficiency, accuracy and safety of trajectory planning, and optimize the flight path to better meet practical application needs.

[0041] (2) The UAV path planning method provided by the present invention can avoid obstacles and take into account factors such as terrain height to ensure the safety of UAV flight and the accuracy of the route by using the expand_array function to generate successor nodes and calculate the cost value of the successor nodes.

[0042] (3) The UAV path planning method provided by the present invention is used to calculate the distance between the successor node and the preset reference point, calculate the threat cost, and make dynamic adjustments according to the real-time changes of the map and environment to avoid dangerous areas or environments with obstacles, so as to ensure the safety of UAV flight. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of a method for drone path planning provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0046] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0047] Figure 1 A method for planning a path for a drone provided by an embodiment of the present invention comprises the following steps:

[0048] S1 loads the map data, initializes the coordinates of the starting node, sets the OPEN list and the CLOSED list, and adds the coordinates of the starting node to the OPEN list; the OPEN list is used to store the nodes to be explored, and the CLOSED list is used to store the nodes that have been explored.

[0049] Specifically, load the map data, which includes information such as terrain and obstacles. Prepare the drawing environment and related variables. Initialize the coordinates of the starting node (node_x, node_y, node_z), set the OPEN list and the CLOSE list, where the OPEN list is used to store the nodes to be explored, and the CLOSE list is used to store the nodes that have been explored. Add the coordinates of the starting node to the OPEN list, and explore the starting node as the current node.

[0050] S2 uses the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes. If the successor node is in the CLOSED list, the information of the successor node is updated; if the successor node is not in the CLOSED list, it is added to the OPEN list and the cost value is marked.

[0051] Specifically, the expand_array function is a function in MATLAB, which is used to expand a node and return a list of successor nodes, which can be used to calculate the cost value of each successor node. For a current node, there can be multiple successor nodes. Use the expand_array function to generate the successor nodes of the current node and calculate the cost values ​​of all successor nodes, check whether each successor node is in the CLOSED list, that is, check whether each successor node has been explored. If the successor node is in the CLOSED list, update the information of the successor node, that is, it can be used as the new current node to continue exploring; if the successor node is not in the CLOSED list, add it to the OPEN list and mark the successor node according to the calculated cost value.

[0052] S3 obtains the successor node with the lowest cost in the OPEN list and uses it as the new current node for continued exploration, and adds the explored node as the parent node to the CLOSED list.

[0053] Specifically, the successor node with the lowest cost value is selected from the OPEN list and used as the new current node. The exploration continues based on the current node and the explored node is added to the CLOSED list as a parent node.

[0054] S4 repeats steps S2~S3 to reach the target node, traces back from the target node to the starting node, and constructs the optimal path.

[0055] Specifically, steps S2 to S3 are repeated until the target node is reached, and then the target node is traced back to the starting node, that is, the target node is used as the current node, its parent node is obtained, and then the parent node is used as the current node, its parent node is obtained, and the above process is repeated until the starting node is returned. The path constructed by connecting the above nodes is used as the optimal path.

[0056] The present invention provides a UAV path planning method, which can effectively search for potential paths and find the optimal path by adopting a strategy of expanding nodes and searching according to a cost function. It can improve the real-time, efficiency, accuracy and safety of trajectory planning, and optimize the flight path to better meet practical application needs.

[0057] Optionally, the drone path planning method provided by the present invention uses the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes, specifically including:

[0058] S2.1 calculates the x offset of the current node k_x=node_x-nodef_x, and calculates the y offset of the current node k_y=node_y-nodef_y, where node_x and node_y are the x coordinate and y coordinate of the current node, and nodef_x and nodef_y are the x coordinate and y coordinate of the parent node.

[0059] S2.2 traverses various situations to generate multiple successor nodes according to the different values ​​of the x offset and the y offset, and calculates the position of each successor node.

[0060] Specifically, according to the different values ​​of the x offset and the y offset, it can be divided into 8 situations, namely the 8 offset directions of the current node, namely north, northeast, east, southeast, south, southwest, west and northwest. The logic of each situation is similar, and the offset situations of various node positions are traversed to generate multiple successor nodes, and the position of each successor node is calculated.

[0061] S2.3 When the successor node is not in the CLOSED list, add the successor node to the OPEN list. If the height difference between the successor node and the preset height is not greater than the first threshold, calculate the distance between the current node and the preset reference point to obtain the threat cost and height cost.

[0062] Specifically, check whether the successor node is in the CLOSED list. When the successor node is not in the CLOSED list, add the successor node to the OPEN list, check whether the height difference between the successor node and the preset height is greater than the first threshold, if the height difference between the successor node and the preset height is not greater than the first threshold, calculate the distance between the current node and the preset reference point, and obtain the threat cost and height cost based on the expand_array function.

[0063] The setting of the preset height and the first threshold value can be set according to the task requirements or actual needs, and the present invention does not make specific restrictions here. In one embodiment, the preset height can be set to the ground height, and the height difference can be set to 10, that is, when the height difference between the successor node and the ground is not greater than 10, the distance between the current node and the preset reference point is calculated. If the height difference between the successor node and the ground is not greater than 10, the successor node is discarded, which can ensure that the height difference of the successor node is not too large.

[0064] S2.4 calculates the cost value of the successor node based on the threat cost and the height cost.

[0065] Specifically, the cost value of the successor node may be calculated based on the threat cost and the height cost in the expand_array function.

[0066] The present invention provides a UAV path planning method, which generates successor nodes by using the expand_array function and calculates the cost value of the successor node. It can avoid obstacles and consider factors such as terrain height to ensure the safety of UAV flight and the accuracy of the route.

[0067] Optionally, the drone path planning method provided by the present invention calculates the distance between the current node and the preset reference point to obtain the threat cost, specifically including:

[0068] Get the coordinates of the preset reference point (x', y', z'), get the coordinates of the successor node (s_x, s_y, s_z), and calculate the distance between the successor node and the preset reference point

[0069]

[0070] If Dis_TW is greater than or equal to the second preset threshold, the threat cost h_ThreatenW is 0; if Dis_TW is less than the second preset threshold, the coordinates (x, y, z) of the intermediate node are calculated, where

[0071]

[0072]

[0073]

[0074] Calculate the distance between the intermediate node and the preset reference point

[0075]

[0076] Calculating the cost of threats

[0077] .

[0078] Specifically, the setting of the preset reference point and the second preset threshold value can be set according to the task requirements or actual needs, and the present invention does not make specific restrictions here. Calculate the distance Dis_TW between the preset reference point and the successor node. If Dis_TW is greater than or equal to the second preset threshold value, the threat cost h_ThreatenW is 0; if Dis_TW is less than the second preset threshold value, calculate the coordinates of the middle point between the current node and the successor node, and the middle point is located between the current node and the successor node. The threat cost is calculated based on the distance of this middle point, the current node, and the successor node relative to the preset reference point. The threat cost increases as the distance decreases, that is, the closer the area to the preset reference point is, the more dangerous or unsuitable it may be to pass through. Based on the threat cost, it is judged whether the successor node is close enough to the preset reference point, and the path can be planned in dangerous areas or environments with obstacles.

[0079] In one embodiment, the coordinates of the preset reference point may be set to (60, 70, 10), and the second preset threshold may be set to 7.5.

[0080] The present invention provides a UAV path planning method, which calculates the distance between the successor node and the preset reference point, calculates the threat cost, and makes dynamic adjustments according to the real-time changes of the map and the environment to avoid dangerous areas or environments with obstacles, so as to ensure the safety of the UAV flight.

[0081] Optionally, in the drone path planning method provided by the present invention, the height cost is .

[0082] The present invention provides a method for planning a UAV path, which can ensure that the UAV does not exceed a suitable terrain height by calculating the height cost, and can take the terrain height factor into consideration to ensure the safety of the UAV flight.

[0083] Optionally, in the drone path planning method provided by the present invention, the cost value f(n) includes the heuristic cost g(n) and the movement cost h(n), where

[0084]

[0085]

[0086]

[0087] Where (xTarget, yTarget, zTarget) are the coordinates of the target node, is the base movement cost, is the distance between the successor node and the current node.

[0088] Specifically, the cost value f(n) includes the heuristic cost g(n) and the movement cost h(n). The heuristic cost is the sum of the absolute differences between the successor node and the target node on the x, y, and z axes. The movement cost includes the basic movement cost, the distance between the successor node and the current node, the threat cost, and the height cost. Each cost is assigned a weight to meet the actual needs. The cost value f(n) is the total cost required to move from the current node to the successor node.

[0089] The present invention provides a UAV path planning method, which can balance the weights of basic moving cost, the distance between the successor node and the current node, threat cost, height cost and heuristic cost by calculating the cost value, give priority to the heuristic function and the path that has been traveled, and obtain the track planning result within a reasonable time.

[0090] Optionally, the UAV path planning method provided by the present invention traverses various situations to generate a successor node, and after calculating the position of the successor node, it also includes checking whether the position of the successor node is within the map boundary. If the coordinates of the successor node are between the maximum boundary value and the minimum boundary value of the map, step S2.3 is performed; if the coordinates of the successor node are not between the maximum and minimum boundary values ​​of the map, step S2.3 and subsequent steps are not executed for the successor node.

[0091] Specifically, after calculating the position of the successor node, you can check whether the position of the successor node is within the map boundary. If the successor node is within the map boundary, you can proceed to subsequent steps. If the successor node is not within the map boundary, the successor node is discarded and subsequent steps are not performed on the successor node. At this time, you can continue to check the situation of other successor nodes.

[0092] The present invention provides a UAV path planning method, which can ensure that the successor nodes are within the correct map range by judging whether the successor nodes are within the map boundary, and exclude the successor nodes that are not within the map range, thereby effectively reducing the workload and improving the operation efficiency.

[0093] Optionally, the drone path planning method provided by the present invention displays the constructed optimal path on a visualization device; or if the target node is not reached and the optimal path cannot be constructed, a warning message is displayed on the visualization device.

[0094] Specifically, when the optimal path is constructed to reach the target node, the constructed optimal path is displayed on a visualization device, and the constructed optimal path can be displayed on a grid. The visualization device includes but is not limited to a display, an oscilloscope, and a mobile display terminal. If the target node is not reached, the optimal path cannot be constructed, and a warning message is displayed on the visualization device.

[0095] The present invention provides a method for planning a path for a drone, which can intuitively display the optimal path by displaying the constructed optimal path on a visualization device, so that the path can be presented more clearly.

[0096] Optionally, the drone path planning method provided by the present invention displays the constructed optimal path on a visualization device, specifically comprising:

[0097] Draw flight paths, starting points and endpoints in a three-dimensional coordinate system, draw terrain data surfaces, draw no-fly zones, and abnormal weather areas;

[0098] Construct a vertical profile of the flight path to show how the flight altitude changes with distance, extract the terrain heights corresponding to the flight path nodes, and calculate and plot the flight altitude changes and terrain heights.

[0099] The present invention provides a method for planning a UAV path. By displaying the constructed path on a visualization device and drawing terrain information, no-fly zones, abnormal weather zones, etc. at the same time, the state of the constructed path on the map can be displayed more quickly and intuitively, and whether the constructed optimal path can adapt to situations with obstacles and environmental changes can be displayed.

[0100] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0101] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0102] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0103] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0107] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0108] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

[0109] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A UAV path planning method, It is characterized in that The following steps are involved: S1 loads the map data, initializes the coordinates of the starting node, sets the OPEN list and the CLOSED list, and adds the coordinates of the starting node to the OPEN list; the OPEN list is used to store the nodes to be explored, and the CLOSED list is used to store the nodes that have been explored; S2 uses the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes. If the successor node is in the CLOSED list, the information of the successor node is updated; if the successor node is not in the CLOSED list, it is added to the OPEN list and the cost value is marked; S3 obtains the successor node with the lowest cost in the OPEN list, uses it as the new current node for continued exploration, and adds the explored node as the parent node to the CLOSED list; S4 repeats steps S2 to S3 to reach the target node, traces back from the target node to the starting node, and constructs the optimal path; The use of the expand_array function to generate successor nodes and calculate the cost values ​​of all successor nodes specifically includes: S2.1 calculates the x offset of the current node k_x=node_x-nodef_x, and calculates the y offset of the current node k_y=node_y-nodef_y, where node_x and node_y are the x coordinate and y coordinate of the current node, and nodef_x and nodef_y are the x coordinate and y coordinate of the parent node; S2.2 generates multiple successor nodes by traversing various situations according to the different values ​​of the x offset and the y offset, and calculates the position of each successor node; S2.3 When the successor node is not in the CLOSED list, add the successor node to the OPEN list, and if the height difference between the successor node and the preset height is not greater than the first threshold, calculate the distance between the current node and the preset reference point, and obtain the threat cost and the height cost; S2.4 calculates the cost value of the successor node based on the threat cost and the height cost; The calculating of the distance between the current node and the preset reference point to obtain the threat cost specifically includes: Get the coordinates (x', y', z') of the preset reference point, get the coordinates (s_x, s_y, s_z) of the successor node, and calculate the distance between the successor node and the preset reference point If Dis_TW is greater than or equal to the second preset threshold, the threat cost h_ThreatenW is 0; if Dis_TW is less than the second preset threshold, the coordinates (x, y, z) of the intermediate node are calculated, where Calculate the distance between the intermediate node and the preset reference point Calculating the cost of threats ; The height cost is ; The cost value f(n) includes the heuristic cost g(n) and the movement cost h(n), where Where (xTarget, yTarget, zTarget) are the coordinates of the target node, is the base movement cost, is the distance between the successor node and the current node.

2. The UAV path planning method according to claim 1, It is characterized in that The process of traversing various situations to generate a successor node and calculating the position of the successor node also includes checking whether the position of the successor node is within the map boundary. If the coordinates of the successor node are between the maximum boundary value and the minimum boundary value of the map, step S2.3 is performed; if the coordinates of the successor node are not between the maximum and minimum boundary values ​​of the map, step S2.3 and subsequent steps are not performed on the successor node.

3. The UAV path planning method according to claim 1, It is characterized in that The constructed optimal path is displayed on a visualization device; or if the target node is not reached and the optimal path cannot be constructed, a warning message is displayed on the visualization device.

4. The UAV path planning method according to claim 3, It is characterized in that Displaying the constructed optimal path on a visualization device specifically includes: Draw flight paths, starting points and endpoints in a three-dimensional coordinate system, draw terrain data surfaces, draw no-fly zones, and abnormal weather areas; Construct a vertical profile of the flight path to show how the flight altitude changes with distance, extract the terrain heights corresponding to the flight path nodes, and calculate and plot the flight altitude changes and terrain heights.

5. A drone path planning device, It is characterized in that The method comprises at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the computer program is executed by the processing unit, the processing unit executes the steps of the method according to any one of claims 1 to 4.

6. A storage medium, It is characterized in that It stores a computer program executable by an access authentication device. When the computer program runs on the access authentication device, the access authentication device executes the steps of the method according to any one of claims 1 to 4.