Unmanned aerial vehicle path planning method and device, electronic equipment and storage medium

Through the path planning model and reinforcement learning algorithm, combined with zero-controlled displacement and speed deviation, the high time complexity and local optimal problems in UAV path planning are solved, and efficient and flexible path planning and obstacle avoidance capabilities are achieved.

CN118565484APending Publication Date: 2024-08-30GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410824342.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When planning UAV paths, the classic intelligent path planning algorithm faces the problem of high time complexity and the tendency to fall into local optimality.

Method used

A path planning model is used to construct the target formula, including the first part based on the zero-control displacement deviation and the second part based on the zero-control speed deviation. Using reinforcement learning and adaptive guidance algorithms, the action space is designed as the position of the drone in its current state. and speed information, and the action output is a control quantity to determine the target path planning result of the UAV.

Benefits of technology

It reduces the time complexity of UAV path planning, avoids falling into local optimality, improves the accuracy and flexibility of path planning, can efficiently determine the target path planning results, and achieve obstacle avoidance capabilities in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118565484A
    Figure CN118565484A
Patent Text Reader

Abstract

The embodiment of the invention discloses an unmanned aerial vehicle path planning method and device, electronic equipment and a storage medium. The method comprises the following steps: for an unmanned aerial vehicle to be subjected to path planning, obtaining a trained path planning model for unmanned aerial vehicle path planning and a target start-stop position of a to-be-planned path; inputting the target start-stop position into a path planning model, and determining a target path planning result of the unmanned aerial vehicle according to an output result of the path planning model; wherein the path planning model is constructed according to a target formula, the target formula comprises a first part and a second part, the first part is constructed based on the first parameter and the zero-control displacement deviation, the second part is constructed based on the second parameter and the zero-control speed deviation, and the first parameter and the second parameter are variable in the determination process of the output result. According to the technical scheme of the embodiment of the invention, the time complexity of unmanned aerial vehicle path planning is reduced, and the unmanned aerial vehicle path planning can be prevented from falling into local optimum.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of unmanned aerial vehicle path planning, and in particular, to a method, device, electronic device and storage medium for unmanned aerial vehicle path planning. Background Art

[0002] At present, drones are widely used, and drone path planning is crucial to their application.

[0003] When the UAV path planning situation is more complicated, the classic intelligent path planning algorithm often faces the problem of high time complexity and easy to fall into local optimality, which needs to be solved urgently. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, electronic device and storage medium for UAV path planning, which reduce the time complexity of UAV path planning and can prevent UAV path planning from falling into local optimum.

[0005] According to one aspect of the present invention, a method for UAV path planning is provided, which may include:

[0006] For the UAV to be path planned, obtain the trained path planning model for the UAV path planning and the target start and end positions of the path to be planned;

[0007] The target start and end positions are input into the path planning model, and the target path planning result of the UAV is determined according to the output result of the path planning model;

[0008] Among them, the path planning model is constructed according to the target formula, the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation. The first parameter and the second parameter are variable in the process of determining the output result.

[0009] According to another aspect of the present invention, a drone path planning device is provided, which may include:

[0010] The target start and end position acquisition module is used to obtain the trained path planning model for the UAV path planning and the target start and end positions of the path to be planned for the UAV to be planned;

[0011] The target path planning result determination module is used to input the target start and end positions into the path planning model, and determine the target path planning result of the UAV according to the output result of the path planning model;

[0012] Among them, the path planning model is constructed according to the target formula, the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation. The first parameter and the second parameter are variable in the process of determining the output result.

[0013] According to another aspect of the present invention, there is provided an electronic device, which may include:

[0014] at least one processor; and

[0015] a memory communicatively connected to at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the drone path planning method provided by any embodiment of the present invention is implemented when the at least one processor executes it.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, on which computer instructions are stored, and the computer instructions are used to enable a processor to implement the drone path planning method provided by any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention is to obtain a trained path planning model for the path planning of the drone and the target start and end positions of the path to be planned for the drone to be path planned; the target start and end positions are input into the path planning model, and the target path planning result of the drone is determined according to the output result of the path planning model; wherein the path planning model is constructed according to the target formula, the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero control displacement deviation, and the second part is constructed based on a second parameter and a zero control speed deviation, and the first parameter and the second parameter are variable in the process of determining the output result. The above technical solution, by adopting the path planning model to determine the target path planning result, the first parameter and the second parameter that are variable in the process of determining the output result, can efficiently and flexibly determine the target path planning result, reduce the time complexity of the drone path planning and avoid the drone path planning from falling into a local optimum.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 is a flow chart of a UAV path planning method provided according to an embodiment of the present invention;

[0022] Figure 2 is a flow chart of another UAV path planning method provided according to an embodiment of the present invention;

[0023] Figure 3 is a flow chart of another UAV path planning method provided according to an embodiment of the present invention;

[0024] Figure 4 is a flowchart of an optional example of another drone path planning method provided in an embodiment of the present invention;

[0025] Figure 5 is a schematic diagram of a three-dimensional space obstacle map in an optional example of another drone path planning method provided according to an embodiment of the present invention;

[0026] Figure 6 is a schematic diagram of a global path planning result in an optional example of another unmanned aerial vehicle path planning method provided according to an embodiment of the present invention;

[0027] Figure 7 is a schematic diagram of a reward curve in an optional example of another drone path planning method provided according to an embodiment of the present invention;

[0028] Figure 8 is a structural block diagram of a UAV path planning device provided according to an embodiment of the present invention;

[0029] Fig. 9 It is a structural schematic diagram of an electronic device for implementing the drone path planning method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. 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 comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] Before introducing the embodiments of the present invention, the implementation process of the current UAV path planning scheme and the reasons why the problem of high time complexity and easy to fall into local optimality are explained by way of example, so as to better understand why the UAV path planning scheme proposed in the embodiments of the present invention can improve the accuracy and recall rate.

[0033] For example, currently, in terms of UAV path planning algorithms, they are mainly divided into traditional planning algorithms, intelligent planning algorithms and reinforcement learning algorithms. Traditional planning algorithms include Dijkstra algorithm, A* algorithm and artificial potential field method, etc.; for complex environments with large state spaces, intelligent path planning methods have attracted much attention, and intelligent planning algorithms include genetic algorithms and particle swarm algorithms, etc.; when the UAV path planning situation is more complicated, the classic intelligent path planning algorithm often faces the problem of high time complexity and easy to fall into the local optimum; reinforcement learning algorithms mainly include Q-Learning algorithm, Deep Q Network (DQN) algorithm, Deep Deterministic Policy Gradient (DDPG) algorithm and Proximal Policy Optimization (PPO) algorithm and other algorithms that can be combined with deep learning. However, all of the above algorithms face the problem of high time complexity and easy to fall into the local optimum.

[0034] In view of this, the embodiment of the present invention adopts a path planning model to determine the target path planning result, and the variable first parameter and second parameter in the determination process of the output result can efficiently and flexibly determine the target path planning result, thereby reducing the time complexity of the drone path planning and preventing the drone path planning from falling into a local optimum. This will be explained in detail below.

[0035] Figure 1is a flow chart of a method for drone path planning provided in an embodiment of the present invention. This embodiment is applicable to the case of drone path planning. The method can be executed by a drone path planning device provided in an embodiment of the present invention, which can be implemented by software and / or hardware, and can be integrated in an electronic device, which can be various user terminals or servers.

[0036] See also Figure 1 The method of the embodiment of the present invention specifically includes the following steps:

[0037] S110. For a UAV to be path planned, a trained path planning model for the UAV path planning and the target start and end positions of the path to be planned are obtained, wherein the path planning model is constructed according to a target formula, and the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation, and the first parameter and the second parameter are variable in the process of determining the output result.

[0038] Among them, the path planning model is a trained model that can perform path planning for a drone; in the embodiment of the present invention, the structure and parameters of the path planning model are not specifically limited. The path to be planned is the path to be planned for the drone, and can also be understood as the path to be planned for the drone to perform a flight mission. The target start and end positions are the target starting position and target end position of the path to be planned, and can also be understood as the target starting position and target end position of the drone to perform a flight mission, that is, the target start and end positions include the target starting position and target end position. The target starting position is the starting position where the drone starts to perform a flight mission. The target end position is the end position where the drone ends the flight mission. The target formula is a formula used to construct a path planning model. For example, the path planning model can include a target formula, and can also include a variant formula of the target formula. The first part is the part of the target formula that includes the first parameter and the zero control displacement deviation. The second part is the part of the target formula that includes the second parameter and the zero control speed deviation. The first parameter is a parameter in the target formula corresponding to the first constant in the first expression of the classical zero-effort-miss / Zero-Effort-Velocity feedback guidance algorithm, ZEM / ZEV. The first constant is a constant in the third part of the first expression corresponding to the first part. The second parameter is a parameter in the target formula corresponding to the second constant in the first expression of the classical zero-effort-miss / Zero-Effort-Velocity feedback guidance algorithm, ZEM / ZEV. The second constant is a constant in the fourth part of the first expression corresponding to the second part.

[0039] In the embodiment of the present invention, the zero control displacement deviation can be represented by ZEM, the zero control velocity deviation can be represented by ZEV, and the zero control displacement deviation and the zero control velocity deviation can be represented by the formula: It is determined that, among which, r f is the location that the UAV expects to reach on the current path planning section, v f is the speed that the UAV is expected to reach at the expected location on the current path planning section, r nc is the position of the drone at the end of the mission without control instructions, v nc It is the speed of the drone when the mission ends without control instructions. It should be noted that the end of the drone mission without control instructions refers to the situation where the drone ends its flight mission when there is no control instruction to control its flight.

[0040] Optionally, the first part is the product of the first ratio and the zero control displacement deviation, the first ratio is the ratio of the first parameter to the square of the mission time of the UAV flight; and / or, the second part is the product of the second ratio and the zero control speed deviation, the second ratio is the ratio of the second parameter to the mission time. Among them, the mission time is the time taken from the target starting position to the target ending position when the UAV performs the flight mission. The above technical solution can increase the accuracy of the output result of the constructed path planning model.

[0041] It is understandable that the ZEM / ZEV algorithm has great advantages in terms of accuracy and ease of implementation, but it also has some limitations, the main limitation of which is that the path solution is unique. In the embodiment of the present invention, the adaptive guidance algorithm of ZEM / ZEV based on the proximal policy optimization algorithm (PPO) can be improved, and reinforcement learning can be used to overcome its limitations. It can flexibly adapt to specific constraint situations. Reinforcement learning uses trial and error to explore, does not require prior knowledge, and obtains rewards through the interaction between the drone and the environment to optimize the strategy. It does not require a lot of manual parameter adjustment and has good adaptability and robustness. It can provide an efficient and intelligent solution to the drone path planning problem. The first expression in the ZEM / ZEV algorithm is Among them, ZEM is the zero control displacement deviation, ZEV is the zero control velocity deviation, t go is the task time, a is the control quantity such as acceleration; the ZEM / ZEV algorithm can be used to plan a smooth path from the target starting position to the target ending position, but its limitation is that the solution is unique, which is not enough to achieve obstacle avoidance. Therefore, the ZEM / ZEV adaptive guidance algorithm can be improved to a generalized ZEM / ZEV feedback guidance algorithm. The second expression of the generalized ZEM / ZEV feedback guidance algorithm is The second expression can be used as the target expression, where K R is the first parameter, K V As the second parameter, K R and K V As the action output of reinforcement learning, a smooth path that can avoid known obstacles can be quickly iterated while ensuring that the target terminal position is reached.

[0042] It should be noted that the action space of the path planning model can be designed according to the first parameter and the second parameter, and the first parameter and the second parameter can be changed in the process of determining the output result. Specifically, in the process of training the path planning model, the path planning model can be trained so that the first parameter and the second parameter can be changed according to the situation during the path planning process; in the process of path planning, the path planning model may not directly plan the entire path in one go, but a section of the path. For example, the target starting position can be used as the starting point of the first section of the path. The path planning model can determine the control amount according to the target starting position and the first parameter and the second parameter determined by the current path planning model, and determine the first starting position according to the control amount as the starting point of the next planned path of the first section of the path. The path planning model can determine the control amount according to the starting point and the changed first parameter and the second parameter determined by the current path planning model, and determine the second starting position according to the control amount, and so on, until the planning is completed for the entire path.

[0043] S120: Input the target start and end positions into the path planning model, and determine the target path planning result of the UAV according to the output result of the path planning model.

[0044] Among them, the target path planning result is the result obtained by path planning for the UAV's flight mission.

[0045] In an embodiment of the present invention, environmental information can be obtained, and the environmental information is information about the environment in which the path to be planned is located. The environmental information may include, for example, an environmental map, an environmental point cloud, and / or information about fixed and unchangeable obstacles in the environment, etc., which are not specifically limited here. The target starting and ending positions and the environmental information may be input into a path planning model, and the target path planning result of the UAV may be determined based on the output result of the path planning model. In an embodiment of the present invention, the target starting and ending positions, and at least one of the environmental information, the target starting speed, and the target ending speed may be input into the path planning model, and the target path planning result of the UAV may be determined based on the output result of the path planning model. When any one of the environmental information, the target starting speed, and the target ending speed is not input into the path planning model, but the path planning of the path planning model needs to use the above information, the default value of the above information may be used as the value required for the path planning of the path planning model.

[0046] For example, according to the target formula The path planning process is modeled by the Markov decision process to obtain the path planning model. The state space of the path planning model is designed to be the position and speed information of the UAV in the current state, that is, the position and speed of the starting point of the UAV in a certain planned section, which can be expressed as The action space is designed as the first parameter K R and the second parameter K V ,Right now Among them, x, y, and z are the positions of the starting point of the drone in the three directions of the three-dimensional space. The three directions of the three-dimensional space can be, for example, three mutually perpendicular and intersecting directions in the world coordinate system, etc. are the speeds of the drone in three directions of the three-dimensional space at the starting point of the road section, are the first parameters of the three directions of the three-dimensional space, are the second parameters of the three directions of the three-dimensional space respectively; the path planning model can be obtained by Find the control quantity, where x f ,y f and z f They are the positions that the UAV is expected to reach in three directions of three-dimensional space on the current path planning section. and They are the speeds that the UAV is expected to reach in three directions of three-dimensional space at the expected location on the current path planning section, x nc ,y nc and z nc They are the positions of the drone in three directions in three-dimensional space when the mission without control instructions ends. and They are the speeds of the drone in three directions in three-dimensional space at the end of the mission without control instructions, a x 、a y and a z They are the control quantities such as acceleration in the three directions of three-dimensional space; the path planning model can be based on the control quantity through the formula Determine the speed and position of the next segment of the path planning, where x 0 ,y 0 and z 0 It is the position of the starting point of the drone in the three directions of the three-dimensional space on the current path planning section. and is the speed of the drone in the three directions of the three-dimensional space at the starting point of the current path planning section, Δt is the solution time step, which can also be understood as the expected length of time the drone will spend flying in the path planning section, g is the gravitational acceleration, x 1 ,y 1 and z 1 It is the position of the starting point of the next section of the UAV path planning in three directions in three-dimensional space. and It is the speed of the UAV in three directions of the three-dimensional space at the starting point of the next section of the current path planning; and so on, until all sections are planned. The path planning model outputs the output result of the path planning; the planning result can be used as the target path planning result of the UAV.

[0047] The technical solution of the embodiment of the present invention is to obtain a trained path planning model for the path planning of the drone and the target start and end positions of the path to be planned for the drone to be path planned; the target start and end positions are input into the path planning model, and the target path planning result of the drone is determined according to the output result of the path planning model; wherein the path planning model is constructed according to the target formula, the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero control displacement deviation, and the second part is constructed based on a second parameter and a zero control speed deviation, and the first parameter and the second parameter are variable in the process of determining the output result. The above technical solution, by adopting the path planning model to determine the target path planning result, the first parameter and the second parameter that are variable in the process of determining the output result, can efficiently and flexibly determine the target path planning result, reduce the time complexity of the drone path planning and avoid the drone path planning from falling into a local optimum.

[0048] Figure 2 It is a flow chart of another UAV path planning method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, after determining the target path planning result of the UAV according to the output result of the path planning model, it also includes: controlling the flight of the UAV according to the target path planning result; when an obstacle is detected, obtaining the obstacle information of the obstacle, and determining the obstacle path planning result of the UAV according to the target path planning result and the obstacle information, so as to control the UAV to bypass the obstacle according to the obstacle path. Among them, the explanations of the terms that are the same or corresponding to the above-mentioned embodiments are not repeated here.

[0049] See also Figure 2 The method of this embodiment may specifically include the following steps:

[0050] S210. For a UAV to be path planned, a trained path planning model for the UAV path planning and the target start and end positions of the path to be planned are obtained, wherein the path planning model is constructed according to a target formula, and the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control velocity deviation, and the first parameter and the second parameter are variable in the process of determining the output result.

[0051] S220: Input the target start and end positions into the path planning model, and determine the target path planning result of the UAV according to the output result of the path planning model.

[0052] S230: Control the flight of the UAV according to the target path planning result.

[0053] In the embodiment of the present invention, the UAV can be controlled to fly according to the target path planning result.

[0054] S240: When an obstacle is detected, the obstacle information of the obstacle is obtained, and the obstacle path planning result of the UAV is determined according to the target path planning result and the obstacle information, so as to control the UAV to bypass the obstacle according to the obstacle path.

[0055] The obstacle is a previously unknown obstacle detected during the flight of the drone. The obstacle information is information related to the obstacle; the obstacle information may include at least one of the obstacle location, the distance between the drone and the obstacle, the obstacle size, the obstacle shape, the obstacle potential energy change information, and the obstacle type. The obstacle path planning result is the result of path planning for the drone to bypass the obstacle.

[0056] It is understandable that in the application of drones, autonomous and safe flight needs to be achieved in non-clearance environments. However, in the actual application environment of drones, due to factors such as map surveying and application scenario development levels, the obstacle information of various obstacles in the drone flight environment is generally difficult to fully grasp before flight. During the flight, obstacles are partially known and partially unknown. Therefore, the flight process of the drone includes two elements: global path planning based on known obstacles and autonomous obstacle avoidance for unknown obstacles. The target path planning result determined in the embodiment of the present invention is a global path planning based on known obstacles, and a local autonomous obstacle avoidance algorithm can also be introduced to ensure the safety of the drone flight mission. Therefore, in the embodiment of the present invention, a method for autonomous obstacle avoidance for unknown obstacles can be designed. It should be noted that, at present, the autonomous flight of drones is generally decomposed into two separate problems, path planning and autonomous perception and obstacle avoidance, for research. In order to achieve safe flight of drones in semi-known environments, the embodiment of the present invention proposes a hybrid path planning method for drones based on hierarchical deep reinforcement learning in the embodiment of the present invention, which takes into account the realization of global path planning and autonomous perception and obstacle avoidance capabilities, and can achieve composite functions.

[0057] In the embodiment of the present invention, when an obstacle is detected, obstacle information obtained by radar or sensor or the like can be obtained, and the obstacle path planning result of the drone can be determined according to the target path planning result and the obstacle information, so as to control the drone to bypass the obstacle according to the obstacle path. In the embodiment of the present invention, the method of determining the obstacle path planning result of the drone according to the target path planning result and the obstacle information is not specifically limited.

[0058] In an embodiment of the present invention, the global path planning based on known obstacles to determine the target path planning result can be used as a subtask, and the autonomous obstacle avoidance for unknown obstacles to determine the obstacle path planning result can be used as a subtask. These two subtasks are integrated, and the execution of the subtasks is regulated by adding a top-level controller to complete the overall task of drone path planning and safe flight.

[0059] The technical solution of the embodiment of the present invention controls the flight of the drone according to the target path planning result; when an obstacle is detected, the obstacle information of the obstacle is obtained, and the obstacle path planning result of the drone is determined according to the target path planning result and the obstacle information, so as to control the drone to bypass the obstacle according to the obstacle path. The above technical solution can plan the path of the drone to bypass the obstacle when an obstacle is detected, thereby avoiding the problem of collision caused by the appearance of unknown obstacles.

[0060] Figure 3 It is a flow chart of another UAV path planning method provided in an embodiment of the present invention. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, the obstacle path planning result of the UAV is optionally determined according to the target path planning result and the obstacle information, including: determining the obstacle start and end positions of the UAV to bypass the obstacle according to the target path planning result and the obstacle information; according to the obstacle information and the obstacle start and end positions, using a dynamic window algorithm to determine the obstacle path planning result of the UAV.

[0061] The explanations of the terms that are the same as or corresponding to the above embodiments are not repeated here.

[0062] See also Figure 3 The method of this embodiment may specifically include the following steps:

[0063] S310. For a UAV to be path planned, a trained path planning model for the UAV path planning and the target start and end positions of the path to be planned are obtained, wherein the path planning model is constructed according to a target formula, and the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation, and the first parameter and the second parameter are variable in the process of determining the output result.

[0064] S320: Input the target start and end positions into the path planning model, and determine the target path planning result of the UAV according to the output result of the path planning model.

[0065] S330: Control the flight of the UAV according to the target path planning result.

[0066] S340: When an obstacle is detected, obtain obstacle information of the obstacle.

[0067] S350: Determine the starting and ending positions of the obstacle for the drone to bypass the obstacle based on the target path planning result and the obstacle information.

[0068] The obstacle start and end positions are the obstacle start position and obstacle end position of the path to be planned for the UAV to bypass the obstacle, that is, the obstacle start and end positions include the obstacle start position and obstacle end position. The obstacle start position is the starting position where the UAV starts to bypass the obstacle. The obstacle end position is the end position where the UAV stops bypassing the obstacle.

[0069] In the embodiment of the present invention, for example, the current position of the drone can be used as the starting position of the obstacle, and the position on the path represented by the target path planning result after bypassing the obstacle can be used as the ending position of the obstacle. In the embodiment of the present invention, the method of determining the starting and ending positions of the obstacle for the drone to bypass the obstacle based on the target path planning result and the obstacle information is not specifically limited.

[0070] S360: According to the obstacle information and the starting and ending positions of the obstacle, a dynamic window algorithm is used to determine the obstacle path planning result of the UAV, so as to control the UAV to bypass the obstacle according to the obstacle path.

[0071] In the embodiment of the present invention, in terms of autonomous obstacle avoidance, a map can be constructed from a first-person perspective based on the data obtained by the sensor, and the action sequence of the drone can be used to achieve obstacle avoidance; a deep adversarial Q neural network can also be used. Under the premise that there is a lot of noise in the depth information generated from the RGB image, the network mechanism can effectively learn how to avoid obstacles; a layered architecture can also be used to obtain obstacle avoidance strategies using a reinforcement learning training model to control the drone's actions to achieve autonomous flight. However, the above scheme has some defects, such as the defect of static environment assumption. The above scheme assumes that the position and motion state of obstacles in the environment are known and fixed, and cannot adapt to dynamically changing obstacle situations. When the speed and direction of the moving obstacle change, the above scheme cannot update the path planning results in time, resulting in an increased risk of collision; another example is the defect of poor scalability. The above scheme is usually designed for specific types of obstacles, and cannot effectively deal with unknown types or complex obstacle situations. In addition, the above scheme is also difficult to handle the interaction between multiple moving obstacles. In view of this, a technical solution of an embodiment of the present invention is proposed to overcome the above problems.

[0072] It can be understood that the dynamic window approach (DWA) samples multiple groups of speeds in the speed space, simulates the motion trajectories of these speeds within a certain period of time, evaluates these trajectories through an evaluation function, and selects the speed instruction corresponding to the optimal trajectory to drive the UAV to move. Therefore, in an embodiment of the present invention, the dynamic window algorithm can be used to determine the obstacle path planning result of the UAV.

[0073] In an embodiment of the present invention, the dynamic window algorithm applicable to a three-degree-of-freedom space may be extended to a six-degree-of-freedom space by introducing velocity sampling in the gravity direction dimension, so as to improve the accuracy of path planning.

[0074] The technical solution of the embodiment of the present invention determines the obstacle start and end positions of the drone to bypass the obstacle based on the target path planning result and the obstacle information; and uses a dynamic window algorithm to determine the obstacle path planning result of the drone based on the obstacle information and the obstacle start and end positions. The above technical solution can determine the obstacle path planning result with high accuracy by using a dynamic window algorithm.

[0075] An optional technical solution uses a dynamic window algorithm to determine the obstacle path planning result of the UAV based on obstacle information and the starting and ending positions of the obstacle, including: determining the potential energy change information of the obstacle based on the obstacle information; and using a dynamic window algorithm to determine the obstacle path planning result of the UAV based on the obstacle information, the potential energy change information and the starting and ending positions of the obstacle.

[0076] The potential energy change information is information about the change of the potential energy of the obstacle.

[0077] In the embodiment of the present invention, considering that the traditional dynamic window algorithm is prone to fall into the local optimum when planning the path, it cannot be planned normally when encountering a concave obstacle, and the reference position of the azimuth evaluation function in the dynamic window algorithm may produce errors due to the different distances between the UAV and the obstacle during flight. In view of these limitations, the idea of ​​adding a gravitational repulsive potential field to the obstacle is introduced by the artificial potential field method, and the change of the potential energy increment is used to guide the UAV out of the concave obstacle to enhance the overall path search capability. Therefore, the potential energy change information can be used as a determining factor for determining the obstacle path planning result to reduce errors. In the embodiment of the present invention, there is no specific limitation on the method of determining the potential energy change information of the obstacle according to the obstacle information; and determining the obstacle path planning result of the UAV using the dynamic window algorithm according to the obstacle information, the potential energy change information and the starting and ending positions of the obstacle.

[0078] Optionally, the obstacle path planning result includes a proximal path planning result and a distal path planning result; the proximal path planning result includes at least one proximal path segment, the proximal path segment is determined based on obstacle information, potential energy change information, and the starting and ending positions of the obstacle, and the distance between the proximal starting position of the proximal path segment and the obstacle is less than or equal to a preset near obstacle distance; the distal path planning result includes at least one distal path segment, the distal path segment is determined based on obstacle information and the starting and ending positions of the obstacle, and the distance between the distal starting position of the distal path segment and the obstacle is greater than the near obstacle distance.

[0079] Among them, the path planned in the proximal path planning result is determined based on the obstacle information, potential energy change information and the starting and ending positions of the obstacle. The path planned in the distal path planning result is determined based on the obstacle information and the starting and ending positions of the obstacle. The proximal path segment takes the proximal starting point position as the starting point for planning the path, and is the path segment planned based on the obstacle information, potential energy change information and the starting and ending positions of the obstacle. The distal path segment takes the distal starting point position as the starting point for planning the path, and is the path segment planned based on the obstacle information and the starting and ending positions of the obstacle. The proximal starting point position is the starting point position where the distance to the obstacle is less than or equal to the preset near obstacle distance. The distal starting point position is the starting point position where the distance to the obstacle is greater than the near obstacle distance. The near obstacle distance is the maximum distance between the obstacle and the proximal starting point position.

[0080] It is understandable that when the UAV approaches an obstacle, the reference position of the azimuth evaluation function of the dynamic window algorithm may produce an error due to the long distance, and the direct use of the azimuth evaluation function will cause the planned path to deviate; when the distance between the UAV and the obstacle is far, when the dynamic window algorithm is used for path planning, the path trajectories of each plan are not much different, and the azimuth evaluation function can be used directly. Therefore, in an embodiment of the present invention, when the dynamic window algorithm is used for path planning, when the starting position is close to the obstacle, the path segment corresponding to the starting position is planned according to the obstacle information, the potential energy change information and the starting and ending positions of the obstacle; when the starting position is far from the obstacle, the path segment corresponding to the starting position is planned according to the obstacle information and the starting and ending positions of the obstacle. The above technical solution can realize navigation by using the potential energy change of the obstacle when the UAV approaches the target, can improve the global search capability of path planning, and can overcome the limitations caused by the reference position error of the azimuth evaluation function.

[0081] In the embodiment of the present invention, the error of the obstacle path planning result determined by using the dynamic window algorithm can be reduced by using the energy-variable information as a determining factor for determining the obstacle path planning result.

[0082] Another optional technical solution is that the starting and ending positions of the obstacle include at least the end position of the obstacle, and the target path planning result includes the end position of the obstacle; the method also includes: when it is detected that the UAV is at the end position of the obstacle, repeating the step of controlling the flight of the UAV according to the target path planning result.

[0083] It is understandable that since the obstacle path planning result is a local path planning for bypassing obstacles, if the drone is required to continue to perform the flight mission to reach the target end position, it is also necessary to continue to control the drone flight according to the target path planning result after bypassing the obstacle. Therefore, the target path planning result may include the obstacle end position, so that when it is detected that the drone is at the obstacle end position, that is, when the drone bypasses the obstacle, the step of controlling the drone flight according to the target path planning result is repeated. The above technical solution can enable the drone to continue to perform the flight mission according to the target path planning result after bypassing the obstacle.

[0084] In order to better understand the technical solution of the above embodiment of the present invention, an optional example is provided here. Figure 4, the step of determining the target path planning result in the embodiment of the present invention can be regarded as the A-ZEM / ZEV algorithm, that is, the improved ZEM / ZEV algorithm, and the step of determining the obstacle path planning result can be regarded as the improved DWA algorithm. Specifically, environmental information including an environmental map, a path planning model, and target start and end positions are obtained; the target path planning result is determined according to the A-ZEM / ZEV algorithm using the above-obtained data; the UAV is controlled to fly according to the target path planning result; it is determined whether the target end position is reached; if the target end position is not reached and an obstacle is detected, the improved DWA algorithm is used to determine the obstacle path planning result; the UAV is controlled to fly according to the obstacle path planning result, and the step of determining whether the target end position is reached is repeated; if the target end position is not reached and no obstacle is detected, the step of controlling the UAV to fly according to the target path planning result is repeated; if the target end position is reached and no obstacle is detected, the UAV is controlled to end the flight.

[0085] In order to verify the effectiveness of the above technical solution, Figure 5 The three-dimensional space obstacle map shown in the figure is used as an example to train the drone path planning. The blue dot is the target starting position, which has a certain degree of randomness, the green dot is the target end position, and the red ball is the obstacle. The global path planning result after training, including the target path planning result and the obstacle path planning result, is shown in Figure 6 As shown, from Figure 6 As can be seen from the figure, the global path planning result can avoid known obstacles on the map. The reward curve of the training process is as follows: Figure 7 Based on the above training results, it can be seen that the UAV path planning algorithm of the embodiment of the present invention is feasible, and intelligent agents such as UAVs can quickly iterate a feasible global planning path based on the path planning model of the pre-trained network.

[0086] Figure 8 This is a structural block diagram of a drone path planning device provided in an embodiment of the present invention, and the device is used to execute the drone path planning method provided in any of the above embodiments. The device and the drone path planning method in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the drone path planning device, please refer to the above drone path planning method embodiment. Figure 8 The device may specifically include: a target start and end position acquisition module 410 and a target path planning result determination module 420.

[0087] The target start and end position acquisition module 410 is used to acquire the trained path planning model for the UAV path planning and the target start and end positions of the path to be planned for the UAV to be path planned;

[0088] The target path planning result determination module 420 is used to input the target start and end positions into the path planning model, and determine the target path planning result of the UAV according to the output result of the path planning model;

[0089] Among them, the path planning model is constructed according to the target formula, the target formula includes a first part and a second part, the first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation. The first parameter and the second parameter are variable in the process of determining the output result.

[0090] Optionally, the device may further include:

[0091] The UAV flight control module is used to control the flight of the UAV according to the target path planning result after determining the target path planning result of the UAV according to the output result of the path planning model;

[0092] The obstacle path planning result determination module is used to obtain the obstacle information of the obstacle when an obstacle is detected, and determine the obstacle path planning result of the drone based on the target path planning result and the obstacle information, so as to control the drone to bypass the obstacle according to the obstacle path.

[0093] Optionally, based on the above device, the obstacle path planning result determination module may include:

[0094] The obstacle start and end position determination submodule is used to determine the obstacle start and end positions for the drone to bypass the obstacle based on the target path planning results and obstacle information;

[0095] The obstacle path planning result determination submodule is used to determine the obstacle path planning result of the UAV based on the obstacle information and the starting and ending positions of the obstacle using a dynamic window algorithm.

[0096] Optionally, based on the above device, the obstacle path planning result determination submodule may include:

[0097] A potential energy change information determining unit, used to determine the potential energy change information of the obstacle according to the obstacle information;

[0098] The obstacle path planning result determination unit is used to determine the obstacle path planning result of the UAV by using a dynamic window algorithm according to obstacle information, potential energy change information and obstacle start and end positions.

[0099] Optionally, based on the above device, the obstacle path planning result includes a proximal path planning result and a distal path planning result;

[0100] The proximal path planning result includes at least one proximal path segment, the proximal path segment is determined according to obstacle information, potential energy change information, and obstacle start and end positions, and the distance between the proximal start position of the proximal path segment and the obstacle is less than or equal to a preset proximal obstacle distance;

[0101] The remote path planning result includes at least one remote path segment, which is determined according to obstacle information and the starting and ending positions of the obstacle. The distance between the remote starting position of the remote path segment and the obstacle is greater than the distance to the near obstacle.

[0102] Optionally, based on the above device, the obstacle start and end positions at least include the obstacle end position, and the target path planning result includes the obstacle end position;

[0103] The device may also include:

[0104] The step repetition execution module is used to repeatedly execute the steps of controlling the flight of the drone according to the target path planning results when it is detected that the drone is at the end position of the obstacle.

[0105] Optionally, the first part is the product of the first ratio and the zero control displacement deviation, and the first ratio is the ratio of the first parameter to the square of the mission time of the UAV flight; and / or,

[0106] The second part is the product of the second ratio and the zero control speed deviation, and the second ratio is the ratio between the second parameter and the mission time.

[0107] The unmanned aerial vehicle path planning device provided by the embodiment of the present invention obtains the trained path planning model for the unmanned aerial vehicle path planning and the target start and end positions of the path to be planned for the unmanned aerial vehicle through the target start and end position acquisition module; the target start and end positions are input into the path planning model through the target path planning result determination module, and the target path planning result of the unmanned aerial vehicle is determined according to the output result of the path planning model; wherein the path planning model is constructed according to the target formula, the target formula includes a first part and a second part, the first part is constructed based on the first parameter and the zero control displacement deviation, the second part is constructed based on the second parameter and the zero control speed deviation, and the first parameter and the second parameter are variable in the process of determining the output result. The above device, by adopting the path planning model to determine the target path planning result, the first parameter and the second parameter that are variable in the process of determining the output result can efficiently and flexibly determine the target path planning result, reduce the time complexity of the unmanned aerial vehicle path planning and avoid the unmanned aerial vehicle path planning from falling into the local optimum.

[0108] The drone path planning device provided in the embodiment of the present invention can execute the drone path planning method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0109] It is worth noting that in the embodiment of the above-mentioned UAV path planning device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0110] Fig. 9 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0111] like Fig. 9 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0112] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0113] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a drone path planning method.

[0114] In some embodiments, the drone path planning method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the drone path planning method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the drone path planning method in any other appropriate manner (e.g., by means of firmware).

[0115] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0116] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0117] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0118] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0119] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0120] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for UAV path planning, characterized in that: include: For the UAV to be path planned, obtain the trained path planning model for the UAV path planning and the target start and end positions of the path to be planned; Inputting the target start and end positions into the path planning model, and determining the target path planning result of the UAV according to the output result of the path planning model; Among them, the path planning model is constructed according to the target formula, and the target formula includes a first part and a second part. The first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation. The first parameter and the second parameter are variable in the process of determining the output result.

2. The method according to claim 1, characterized in that After determining the target path planning result of the UAV according to the output result of the path planning model, the method further includes: Controlling the flight of the UAV according to the target path planning result; When an obstacle is detected, obstacle information of the obstacle is obtained, and an obstacle path planning result of the UAV is determined according to the target path planning result and the obstacle information, so as to control the UAV to bypass the obstacle according to the obstacle path.

3. The method according to claim 2, characterized in that The determining the obstacle path planning result of the UAV according to the target path planning result and the obstacle information includes: Determine the obstacle start and end positions for the UAV to bypass the obstacle according to the target path planning result and the obstacle information; According to the obstacle information and the starting and ending positions of the obstacle, a dynamic window algorithm is used to determine the obstacle path planning result of the UAV.

4. The method according to claim 3, characterized in that The method of determining the obstacle path planning result of the UAV by using a dynamic window algorithm according to the obstacle information and the starting and ending positions of the obstacle includes: Determining potential energy change information of the obstacle according to the obstacle information; According to the obstacle information, the potential energy change information and the starting and ending positions of the obstacle, a dynamic window algorithm is used to determine the obstacle path planning result of the UAV.

5. The method according to claim 4, characterized in that The obstacle path planning result includes a proximal path planning result and a distal path planning result; The proximal path planning result includes at least one proximal path segment, the proximal path segment is determined according to the obstacle information, the potential energy change information, and the starting and ending positions of the obstacle, and the distance between the proximal starting position of the proximal path segment and the obstacle is less than or equal to a preset proximal obstacle distance; The remote path planning result includes at least one remote path segment, which is determined according to the obstacle information and the starting and ending positions of the obstacle, and the distance between the remote starting position of the remote path segment and the obstacle is greater than the near obstacle distance.

6. The method according to claim 3, characterized in that The obstacle start and end positions at least include an obstacle end position, and the target path planning result includes the obstacle end position; The method further comprises: When it is detected that the UAV is located at the obstacle end position, the step of controlling the flight of the UAV according to the target path planning result is repeated.

7. The method according to claim 1, characterized in that The first part is the product of a first ratio and the zero control displacement deviation, and the first ratio is the ratio of the first parameter to the square of the mission time of the UAV flight; and / or, The second part is a product of a second ratio and a zero control speed deviation, and the second ratio is a ratio of the second parameter to the mission time.

8. A drone path planning device, characterized in that: include: The target start and end position acquisition module is used to obtain the trained path planning model for the UAV path planning and the target start and end positions of the path to be planned for the UAV to be planned; A target path planning result determination module, used to input the target start and end positions into the path planning model, and determine the target path planning result of the UAV according to the output result of the path planning model; Among them, the path planning model is constructed according to the target formula, and the target formula includes a first part and a second part. The first part is constructed based on a first parameter and a zero-control displacement deviation, and the second part is constructed based on a second parameter and a zero-control speed deviation. The first parameter and the second parameter are variable in the process of determining the output result.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the drone path planning method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the drone path planning method as described in any one of claims 1-7 when executed.