Unmanned aerial vehicle dynamic flight path planning method of improved three-dimensional artificial potential field
By introducing the simulated annealing algorithm and distance term optimization into the three-dimensional artificial potential field method, the problem of unreachable targets and local minima of UAVs in complex environments is solved, and efficient obstacle avoidance trajectory planning and real-time path optimization are achieved.
Patent Information
- Application Number
- CN202410681366.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
AI Technical Summary
Existing technology is difficult to solve the problem of unreachable targets and local minima of UAVs in complex environments. Especially when dynamic obstacles exist, the real-time performance and path planning efficiency of the obstacle avoidance algorithm are insufficient.
The improved three-dimensional artificial potential field method is used, combined with the simulated annealing algorithm, and the gravitational and repulsive functions are optimized by introducing the exponential term of the distance between the drone and the target point and the power term of the obstacle distance, so that the drone can operate in complex environments. Effectively avoid obstacles, find new target nodes at the local minimum point, and escape from the local minimum dilemma.
It achieves accurate obstacle avoidance trajectory planning for UAVs in complex environments, shortens path planning time, improves the timeliness and robustness of the algorithm, ensures that UAVs can successfully reach the target point, and avoids local minimum traps .
Smart Images

Figure CN118655901A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of unmanned aerial vehicle trajectory planning, and in particular relates to an improved unmanned aerial vehicle dynamic trajectory planning method of a three-dimensional artificial potential field. Background Art
[0002] At present, the development trend of drones is booming, and they have gradually expanded from the military field to civilian drones, shining brightly in forest fire fighting, material transportation, earthquake assistance, etc. Civilian drones mainly fly in low-altitude airspace and often encounter a variety of obstacles. Therefore, drones must have complete autonomous obstacle avoidance capabilities to ensure the safe completion of various operations.
[0003] Previous studies on obstacle avoidance algorithms have mainly focused on two-dimensional planes, and few have combined three-dimensional specific scenarios, especially algorithms that include dynamic obstacles. In order to solve the above situation, the artificial potential field method (APF) is one of the effective approaches that can be taken, which has outstanding advantages such as smooth path and excellent real-time performance, and is easy to combine with other algorithms. However, due to its algorithmic limitations, the artificial potential field method is prone to the problems of unreachable targets and local minima. How to effectively solve these two problems is the focus of the research on the artificial potential field method.
[0004] The invention with patent publication number CN114020032A discloses a UAV path planning method based on artificial potential field method and annealing algorithm. By means of simulated annealing algorithm, the UAV can autonomously generate disturbances and produce new solutions, thereby solving the local minimum problem existing in the traditional artificial potential field method. At the same time, in view of the interference factors such as wind in the external environment, a gravity perpendicular to the route of the UAV is added to the original potential field. The gravity is constrained by the vertical distance between the UAV and the route, so it will only take effect when the UAV deviates from the route, thereby improving the anti-interference ability of the UAV and ensuring the stability of its route during flight. However, this invention cannot solve the technical problem of unreachable targets in complex environments.
[0005] The invention with patent publication number CN117572888A discloses a method for improving the path planning of UAVs using Informed RRT*. The improved Informed RRT* method is used to obtain reasonable path planning, while accelerating the convergence speed, effectively solving the local minimum problem, and improving the stability and efficiency of finding feasible paths, thereby meeting the real-time needs of UAV formation flight. However, the invention makes the starting point and the target point generate gravitational forces on the UAV respectively, and the obstacles generate repulsive forces on the UAV, and intercepts new nodes with a step length of L in the direction of the combined force of two gravitational forces and one repulsive force, which is not very helpful for the problem of unreachable targets in complex environments.
[0006] The invention with patent publication number CN117419716A discloses a three-dimensional path planning method, system, storage medium and electronic device for unmanned aerial vehicles. It introduces a local exploration factor to jump out of the local minimum point, and does not involve the problem of unreachable targets in complex environments. It also has high requirements for the setting of the local exploration factor.
[0007] The invention with patent publication number CN115047910A discloses a UAV formation cruise control method based on a goose formation. When the resultant force acting on the UAV is zero, the repulsive field function is modified to make the UAV jump out of the local minimum point. This method also does not involve the problem of unreachable targets in complex environments.
[0008] The invention with patent publication number CN117369523A discloses a multi-UAV formation obstacle avoidance control method, device, equipment and medium, which calculates the elastic repulsion force of obstacles on UAVs, the elastic traction force of target points on UAVs, and the boundary force of UAVs in the case of unreachable targets or narrow channel oscillation; based on the elastic repulsion force, elastic traction force and boundary force, the combined force of UAVs is calculated to increase the reliability of UAV formation. It also does not involve the problem of unreachable targets in complex environments.
[0009] Therefore, although some studies have proposed to solve the problem of UAVs being trapped in local minimum points by introducing external forces or combining other algorithms, the environments set by these methods are mostly relatively simple, without considering the diversity and practicality of obstacles, nor the situation of dynamic obstacles. Some existing technologies attempt to introduce additional force functions, such as considering the gravitational force of the starting point on the UAV, the boundary force of the UAV in the case of unreachable targets or narrow channel oscillation, etc., but no one has yet combined the target point to effectively optimize the gravitational function and the repulsive function to solve the problem of unreachable targets in complex environments. Summary of the invention
[0010] The purpose of the present invention is to provide an improved three-dimensional artificial potential field UAV dynamic trajectory planning method, which integrates simulated annealing (SA) into the three-dimensional UAV autonomous obstacle avoidance trajectory planning method of the artificial potential field method, so as to realize accurate UAV obstacle avoidance trajectory planning. Compared with the traditional artificial potential field method, it can effectively deal with the unreachable target and local minimum problems in the face of complex environments, and can effectively shorten the time required for path planning, thereby ensuring the timeliness of the algorithm.
[0011] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0012] The present invention discloses an improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method, the unmanned aerial vehicle dynamic trajectory planning method comprises the following steps:
[0013] The radar is used to obtain information data of the drone, the starting point, the target point and obstacles. The information data obtained includes: the three-dimensional coordinates of the drone, the starting point, the target point and the obstacle, the radius of the obstacle and the influence radius of the obstacle;
[0014] Based on the acquired drone, starting point, target point and obstacle information data, the combined effect of the gravitational potential field generated by the target point and the repulsive potential field generated by the obstacle on the drone is considered, and the exponential term of the distance between the drone and the target point is introduced into the gravitational function equation to increase the gravitational force near the target point. At the same time, the power term of the distance between the drone and the target point is introduced into the repulsive function, so that the target point is the point with the lowest potential energy in the entire environment; combined with the set drone movement step, the drone position coordinate information is continuously updated, so that the drone continues to fly under the influence of the gravitational potential field generated by the target point and the repulsive potential field generated by the obstacle until it reaches the target point;
[0015] During the flight of the drone, it is constantly detected whether the drone enters the local minimum point. If the drone enters the local minimum point, the simulated annealing algorithm is used to find a new target node, and the new target node is used as the new coordinate position of the drone to jump out of the local minimum point.
[0016] Furthermore, the position coordinates (x, y, z) and the starting point coordinates X of the drone are obtained through radar. s (x s ,y s ,z s ), target point coordinate X g (x g ,y g ,z g ) and obstacle information data O(k) = {O x (j),O y (j),O z (k),O r (k),O R (k)}:
[0017] In the formula, X o {O x (k),O y (k),O z (k)} is the coordinate of the obstacle center point, O r (k) is the radius of the obstacle, O R (k) is the obstacle influence radius.
[0018] Furthermore, an exponential term of the distance between the drone and the target point is introduced into the gravity function equation to increase gravity near the target point, and a power term of the distance between the drone and the target point is introduced into the repulsion function to make the target point the point with the lowest potential energy in the entire environment. The process includes the following steps:
[0019] Step A1, set the gravity gain coefficient K att and repulsion gain coefficient K rep , and set the moving step length Δs for the drone position update;
[0020] Step A2, introduction factor, optimize the gravity function equation, increase the gravity near the target point, and the optimized target point generates a gravitational force F on the drone. att (X) is:
[0021]
[0022] Among them, γ is the step size influencing factor; ρ(X,X g ) is the Euclidean distance between the drone and the target point, which is calculated as:
[0023]
[0024] Step A3: Classify and discuss the repulsive force F exerted by obstacles on the drone rep (X), when the distance ρ(X,X o ) is smaller than the obstacle influence radius O R (k), the repulsive force is set to 0; otherwise, the repulsive force is set to the sum of the two modified repulsive force functions:
[0025]
[0026] Among them, the two parts of the modified repulsion function are:
[0027]
[0028] Among them, μ is the positive influencing factor of the distance between the target point and the UAV, ρ(X,X o ) is the Euclidean distance between the drone and the obstacle, which is calculated as follows:
[0029]
[0030] Step A4, calculate the combined repulsive force generated by all obstacles:
[0031]
[0032] Among them, F repg (X) is the sum of the repulsive forces on the drone at position X.
[0033] Furthermore, in combination with the set drone movement step length, the process of continuously updating the drone position coordinate information includes the following steps:
[0034] Step B1, according to the improved gravity function F att (X) and the repulsion function F repg (X), calculate the resultant force F acting on the drone s (X):
[0035] F s (X) = F att (X)+F repg (X);
[0036] Among them, F s The three-dimensional coordinate components of (X) are F sumx ,F sumy ,F simz ;
[0037] Step B2: Calculate the resultant force F acting on the drone s (X) modulus R, and calculate the angle θ between the projection of the resultant force on the horizontal plane and the x-axis x , and the angle θ between the resultant force and the z-axis z :
[0038]
[0039] Step B3, according to the resultant force F s The three-dimensional coordinate component of (X) determines the moving direction of the drone as ψ(ψ x ,ψ y ,ψ z ):
[0040] ψ x = sin(θ z )*cos(θ x );
[0041] ψ y = sin(θ z )*sin(θ x );
[0042] ψ z =cos(θ z );
[0043] Step B4: Update the next moment position X′(x′, y′, z′) of the drone based on the drone’s moving step length Δs:
[0044] x′=x+Δs*ψ x ;
[0045] y′=y+Δs*ψ y ;
[0046] z′=z+Δs*ψ z .
[0047] Furthermore, it is detected whether the drone falls into a local minimum. If the distance between the current position of the drone and the positions at the previous two moments is less than the set distance threshold, or the resultant force on the drone at the current position is 0, it is considered to fall into a local minimum.
[0048] Furthermore, the process of using the simulated annealing algorithm to find a new target node includes the following steps:
[0049] Step C1, reset the annealing temperature to T, and generate the following random angles and θ:
[0050]
[0051] θ = π * ε
[0052] where ε is a random value between 0 and 1;
[0053] Step C2, generate a new drone target node X n (x″, y″, z″):
[0054]
[0055] z″ = z + Δs * cosθ;
[0056] Step C3, determine whether the target node X n is within the radius of any obstacle in the environment. If so, repeat Step C1; otherwise, go to Step C4;
[0057] Step C4, calculate the probability p of accepting the target node X n :
[0058]
[0059] where E(X n ) is the potential energy of the target node X n and E(X) is the potential energy of the current position of the drone;
[0060] Step C5, randomly generate a probability p′ between 0 and 1 and compare it with p. If p′ < p, select to accept the target node X n , and go to Step C6; otherwise, update the annealing temperature T′:
[0061] T′ = αT
[0062] where T′ is the temperature of the next annealing cycle and α is the temperature change hyperparameter; return to Step C4;
[0063] Step C6, take the target node X nAs the next moving point of the drone, update the drone position information X and exit the simulated annealing loop.
[0064] Compared with the prior art, the present invention has the following beneficial effects:
[0065] First, the improved three-dimensional artificial potential field UAV dynamic trajectory planning method of the present invention fully considers the complexity of the environment. In three-dimensional space, three different obstacles are considered at the same time: spherical obstacles, cylindrical obstacles, and mobile obstacles, which ensures the real-time performance of the obstacle avoidance algorithm and has certain practical application value.
[0066] Second, the improved three-dimensional artificial potential field UAV dynamic trajectory planning method of the present invention improves the target unreachable problem that occurs in the traditional artificial potential field method. On the basis of the traditional gravity function, an exponential term of the distance between the UAV and the target point is introduced, so that the gravity of the UAV will not be too small when approaching the target point; at the same time, a power term of the distance between the UAV and the target point is introduced into the traditional repulsion function, so that when the UAV is very close to the obstacle, it will also be subject to a certain repulsive force, thereby achieving that only the target point is the point with the lowest potential energy in the entire environment, which can well solve the target unreachable problem.
[0067] Third, the improved three-dimensional artificial potential field UAV dynamic trajectory planning method of the present invention improves the local minimum problem that occurs in the traditional artificial potential field method. When the UAV approaches an obstacle, it judges whether it has entered the local minimum; if it falls into the local minimum, a simulated annealing algorithm is used to randomly generate a new reachable trajectory target point near the current position of the UAV, and again judge whether the UAV can reach this trajectory target point. The present invention can well break the original force balance, help the UAV get rid of the local minimum dilemma, and enable the UAV to continue to move towards the target point. Compared with the traditional artificial potential field algorithm and RRT algorithm, the flight planning method proposed by the present invention has a shorter action path and running time, and also shows stronger robustness for different complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 This is a three-dimensional scene model diagram of an embodiment of the present invention.
[0069] Figure 2 This is a flow chart of the improved three-dimensional artificial potential field UAV dynamic trajectory planning method proposed by the present invention.
[0070] Figure 3 for Figure 1 The trajectory simulation effect diagram of the present invention in the three-dimensional scene shown.
[0071] Figure 4 for Figure 1The comparison diagram of the gravitational and repulsive functions designed by the present invention and the classic APF in the three-dimensional scene is shown. Figure 4 (a) is a gravity comparison diagram. Figure 4 The figure in the figure is a repulsive force comparison chart, where the horizontal axis is the number of iterations of the drone position and the vertical axis is the magnitude of the force.
[0072] Figure 5 for Figure 1 The path comparison diagram of the present invention and the traditional APF in the three-dimensional scene when encountering the problem of target unreachability.
[0073] Figure 6 for Figure 1 The path comparison diagram of the present invention and the traditional APF when encountering the local minimum problem in the three-dimensional scene is shown.
[0074] Figure 7 for Figure 1 The path comparison diagram of the present invention and traditional APF and RRT algorithms in the three-dimensional scene is shown. DETAILED DESCRIPTION
[0075] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.
[0076] Figure 1 3D scene model diagram of the embodiment of the present invention. Figure 1 As shown, the three-dimensional scene contains various types of obstacles, which are classified into three different types in this embodiment and are considered at the same time: spherical obstacles, cylindrical obstacles, and moving obstacles.
[0077] Based on the three-dimensional scene model, the positioning information data of the UAV, target point and obstacle obtained by the radar is transmitted to the UAV data processor. The data processor uses APF-SA to process the terrain modeling, continuously provides new action points for the UAV, iterates the position information and force conditions, avoids obstacles in the environment, reaches the target point along a smoother path, and performs specific tasks.
[0078] like Figure 2 As shown, an embodiment of the present invention provides an improved three-dimensional artificial potential field UAV dynamic trajectory planning method, comprising:
[0079] Step 1: Use radar to obtain information about the drone, starting point, target point, and obstacles, including x, y, z three-dimensional coordinates, the radius of the obstacle, and its effective influence radius. The acquired information is stored in sequence as the drone position coordinate X, the starting point coordinate X s 、Target point coordinate X g , obstacle data information O(k), waiting for subsequent processing.
[0080] O(k)={O x (k),O y (k),O z (k),O r (k),O R (k)}.
[0081] Step 2: Take the data in step 1 as the original data, consider the combined effect of the gravitational potential field generated by the target point and the repulsive potential field generated by the obstacle on the drone, and appropriately increase the gravity near the target point. At the same time, optimize the repulsive function, and then update the drone position coordinate information X in combination with the set fixed step size of the drone.
[0082] Step 3, repeat step 2, continuously update the drone position coordinate information X, and detect whether the drone has entered the local minimum point. If the drone has entered the local minimum point, use the simulated annealing algorithm to find a new target node, and use this target node as the new coordinate position X of the drone to jump out of the local minimum point.
[0083] To optimize the above technical solutions, the specific measures taken also include:
[0084] The above step 1 includes:
[0085] Step 1-1: Obtain information data of drone, starting point, target point and obstacles through radar:
[0086] X(x,y,z)
[0087] X s (x s ,y s ,z s )
[0088] X g (x g ,y g ,z g )
[0089] O(k)={O x (k),O y (k),O z (k),O r (k),O R (k)}
[0090] Among them, X is the position coordinate of the drone, X s is the starting point coordinate, X g is the target point coordinate;
[0091] O(k) is the obstacle data information, including: X o {O x (k),O y(k),O z (k)} is the three-dimensional coordinate of the obstacle center point, O r (k) is the radius of the obstacle, O R (k) is the effective influence radius of the obstacle;
[0092] Step 1-2: The positioning information in step 1-1 is transmitted to the data processor mounted on the drone.
[0093] The above step 2 specifically includes:
[0094] Step 2-1: Set the gravity gain coefficient K att and repulsion gain coefficient K rep , and set a reasonable moving step length Δs for the drone position update;
[0095] Step 2-2: According to the gravitational function equation, appropriately increase the gravitational force near the target point and introduce Factor. Among them, γ is the step length influence factor; ρ(X,X g ) is the Euclidean distance between the drone and the target point, and the specific calculation method is:
[0096]
[0097] Step 2-3: Calculate the gravitational force F exerted by the target point on the drone att (X):
[0098]
[0099] Step 2-4: The repulsive force F generated by the obstacle on the drone rep (X) Classification discussion: When the distance between the drone and the obstacle is less than the maximum impact range of the obstacle, R (k), the repulsive force is set to 0; otherwise, the repulsive force is set to the sum of the two modified repulsive force functions:
[0100]
[0101] Among them, the repulsion functions of the two parts are:
[0102]
[0103]
[0104] Among them, μ is the positive influencing factor of the distance between the target point and the UAV, ρ(X,X o ) is the Euclidean distance between the drone and the obstacle, and the specific calculation formula is:
[0105]
[0106] Step 2-5, calculate the combined repulsive force generated by all obstacles:
[0107]
[0108] Among them, F repg (X) is the sum of the repulsive forces on the drone at position X.
[0109] Step 2-6: Calculate the resultant force F on the drone based on the improved attraction and repulsion functions above. s (X):
[0110] F s (X) = F att (X)+F repg (X)
[0111] Among them, F s The three-dimensional coordinate components F of (X) sumx ,F sumy ,F sumz ;
[0112] Step 2-7: Calculate the resultant force F on the drone s (X) modulus R, and calculate the angle θ between the projection of the resultant force on the horizontal plane and the x-axis x , and the angle θ between the resultant force and the z-axis z :
[0113]
[0114] Step 2-8: According to the resultant force F s The three-dimensional coordinate component of (X) determines the moving direction of the drone as ψ(ψ x ,ψ y ,ψ z ):
[0115] ψ x = sin(θ z )*cos(θ x )
[0116] ψ y = sin(θ z )*sin(θ x )
[0117] ψ z =cos(θ z )
[0118] Step 2-9: Update the next moment's position X'(x', y', z') of the drone based on the drone's moving step length Δs:
[0119] x′=x+Δs*ψ x
[0120] y' = y + Δs * ψ y
[0121] z' = z + Δs * ψ z
[0122] The above-mentioned step 3 specifically includes:
[0123] Step 3-1: Detect whether the drone has fallen into a local minimum: If the distance between the current position of the drone and the previous two moments is less than the set value, or the resultant force on the drone at the current position is 0, it is considered to have fallen into a local minimum. If the drone has fallen into a local minimum, go to step 3-2; otherwise, go to step 3-8;
[0124] Step 3-2: Set the annealing temperature to T and generate the following random angles and θ:
[0125]
[0126] θ = π * ε
[0127] where ε is a random value between 0 and 1;
[0128] Step 3-3: Generate a new drone target node X n (x″, y″, z″):
[0129] x″ = x + Δs * sinθ * cosφ
[0130] y″ = y + Δs * sinθ * sinφ
[0131] z″ = z + Δs * cosθ
[0132] Step 3-4: Determine whether the target node X n is within the radius of any obstacle in the environment. If so, repeat step 3-2; otherwise, go to step 3-5;
[0133] Step 3-5: Calculate the probability p of accepting this new point:
[0134]
[0135] where E(X n ) is the potential energy of the new point, and E(X) is the potential energy of the current position of the drone.
[0136] Step 3-6: Randomly generate a probability p' between 0 and 1 and compare it with p. If p' < p, select to accept the new solution and go to step 3-7; otherwise, update the annealing temperature T';
[0137] T′=αT
[0138] Where T' is the temperature of the next annealing cycle, and α is a temperature change hyperparameter, usually between 0.85 and 1. Repeat steps 3-5.
[0139] Step 3-7: Use the new target node as the next moving point of the drone, update the drone position information X, and exit the simulated annealing loop.
[0140] Step 3-8: Calculate the distance between the target point and the current position of the drone. If it is less than the set value, it is considered to have reached the target point; otherwise, it has not reached the target point and step 2 is executed repeatedly.
[0141] The method also includes step 4: the UAV continues to fly under the influence of the gravitational potential field generated by the target point and the repulsive potential field generated by the obstacle until it reaches the target point and performs a specific operation task.
[0142] Figure 3 This is a three-dimensional scene modeling simulation diagram of the improved three-dimensional artificial potential field UAV dynamic trajectory planning method of the present invention. It can be seen that the UAV successfully avoids all obstacles and reaches the target point smoothly. At the same time, the present invention also successfully moves from the local minimum point, that is, Figure 3 The black dot in the picture jumped out.
[0143] Figure 4 Comparison of the gravity and repulsion functions designed by the present invention and the classic APF in a three-dimensional scene. The horizontal axis is the number of iterations of the drone position, and the vertical axis is the magnitude of the force. The left picture is a gravity comparison chart, and the right picture is a repulsion comparison chart. It can be seen that the gravity function proposed by the present invention can still provide a large gravity in the late iteration, that is, when approaching the target point, which helps to solve the problem of unreachable targets; the repulsion function has a more obvious change trend in the iteration, indicating that the repulsion is more sensitive to the distance perception of the obstacle influence radius, thereby improving the obstacle avoidance performance.
[0144] Figure 5 This is a path comparison diagram of the present invention and the traditional APF when encountering the problem of unreachable target in a three-dimensional scene. It can be seen that the present invention solves the problem and successfully reaches the target point.
[0145] Figure 6 This is a path comparison diagram of the present invention and the traditional APF when encountering a local minimum problem in a three-dimensional scene. It can be seen that the present invention solves the problem and successfully reaches the target point.
[0146] Figure 7 This is a path comparison diagram of the present invention and traditional APF and RRT algorithms in a three-dimensional scene. The path planned by the present invention is smoother and has a shorter total length than that of the traditional APF path.
[0147] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0148] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0151] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0152] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method, characterized in that: The unmanned aerial vehicle dynamic trajectory planning method comprises the following steps: The radar is used to obtain information data of the drone, the starting point, the target point and obstacles. The information data obtained includes: the three-dimensional coordinates of the drone, the starting point, the target point and the obstacle, the radius of the obstacle and the influence radius of the obstacle; Based on the acquired drone, starting point, target point and obstacle information data, the combined effect of the gravitational potential field generated by the target point and the repulsive potential field generated by the obstacle on the drone is considered, and the exponential term of the distance between the drone and the target point is introduced into the gravitational function equation to increase the gravitational force near the target point. At the same time, the power term of the distance between the drone and the target point is introduced into the repulsive function, so that the target point is the point with the lowest potential energy in the entire environment; combined with the set drone movement step, the drone position coordinate information is continuously updated, so that the drone continues to fly under the influence of the gravitational potential field generated by the target point and the repulsive potential field generated by the obstacle until it reaches the target point; During the flight of the drone, it is constantly detected whether the drone enters the local minimum point. If the drone enters the local minimum point, the simulated annealing algorithm is used to find a new target node, and the new target node is used as the new coordinate position of the drone to jump out of the local minimum point.
2. The improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method according to claim 1 is characterized in that: Obtain the position coordinates (x, y, z) and starting point coordinates X of the drone through the radar s (x s ,y s ,z s ), target point coordinate X g (x g ,y g ,z g ) and obstacle information data O(k) = {O x (k),O y (k),O z (k),O r (k),O R (k)},k∈(1,n): In the formula, X o {O x (k),O y (k),O z (k)} is the coordinate of the obstacle center point, O r (k) is the radius of the obstacle, O R (k) is the obstacle influence radius, and n is the total number of obstacles.
3. The improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method according to claim 1 is characterized in that: The process of introducing the exponential term of the distance between the drone and the target point into the gravity function equation to increase the gravity near the target point and introducing the power term of the distance between the drone and the target point into the repulsion function to make the target point the point with the lowest potential energy in the entire environment includes the following steps: Step A1, set the gravity gain coefficient K att and repulsion gain coefficient K rep , and set the moving step length Δs for the drone position update; Step A2, introduction factor, optimize the gravity function equation, increase the gravity near the target point, and the optimized target point generates a gravitational force F on the drone. att (X) is: Among them, γ is the step size influencing factor; ρ(X,X g ) is the Euclidean distance between the drone and the target point, which is calculated as: Step A3: Classify and discuss the repulsive force F exerted by obstacles on the drone rep (k), when the distance ρ(X,X o ) is smaller than the obstacle influence radius O R (k), the repulsive force is set to 0; otherwise, the repulsive force is set to the sum of the two modified repulsive force functions: Among them, the two parts of the modified repulsion function are: Among them, μ is the positive influencing factor of the distance between the target point and the UAV, ρ(X,X o ) is the Euclidean distance between the drone and the obstacle, which is calculated as follows: Step A4, calculate the combined repulsive force generated by all obstacles: Among them, F repg (X) is the sum of the repulsive forces on the drone at position X.
4. The improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method according to claim 1 is characterized in that: Combined with the set UAV movement step length, the process of continuously updating the UAV position coordinate information includes the following steps: Step B1, according to the improved gravity function F att (X) and the repulsion function F repg (X), calculate the resultant force F acting on the drone s (X): F s (X)=F att (X)+F repg (X); Among them, F s The three-dimensional coordinate components of (X) are F sumx ,F sumy ,F sumz ; Step B2: Calculate the resultant force F acting on the drone s (X) modulus R, and calculate the angle θ between the projection of the resultant force on the horizontal plane and the x-axis x , and the angle θ between the resultant force and the z-axis z : Step B3, according to the resultant force F s The three-dimensional coordinate component of (X) determines the moving direction of the drone as ψ(ψ x ,ψ y ,ψ z ): ψ x =sin(θ z )*cos(θ x ); ψ y =sin(θ z )*sin(θ x ); ψ z =cos(θ z ); Step B4: Update the next moment position X′(x′, y′, z′) of the drone based on the drone’s moving step length Δs: x′=x+Δs*ψ x ; y′=y+Δs*ψ y ; z′=z+Δs*ψ z 。 5. The improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method according to claim 1 is characterized in that: Check whether the drone is trapped in a local minimum. If the distance between the current position of the drone and the previous two moments is less than the set distance threshold, or the resultant force acting on the drone at the current position is 0, it is considered to be trapped in a local minimum.
6. The improved three-dimensional artificial potential field unmanned aerial vehicle dynamic trajectory planning method according to claim 1 is characterized in that: The process of finding a new target node using the simulated annealing algorithm includes the following steps: Step C1, reset the annealing temperature to T, and generate the following random angles and θ: θ=π*ε Among them, ε is a random value between 0 and 1; Step C2, generate a new drone target node X from the above random angle n (x″,y″,z″): x″=x+Δs*sinθ*cosφ y″=y+Δs*sinθ*sinφ z″=z+Δs*cosθ; Step C3, determine the target node X n Is it within the radius of any obstacle in the environment? If yes, repeat step C1; otherwise, go to step C4; Step C4, calculate the acceptance target node X n The probability p is: Among them, E(X n ) is the target node X n The potential energy of the drone, E(X) is the potential energy of the drone’s current position; Step C5: Randomly generate a probability p' between 0 and 1 and compare it with p. If p' < p, then select and accept the target node X n , and proceed to step C6; otherwise, update the annealing temperature T': T′=αT Wherein, T′ is the temperature of the next annealing cycle, and α is the temperature change hyperparameter; return to step C4; Step C6: Set the target node X n As the next moving point of the drone, update the drone position information X and exit the simulated annealing loop.
Citation Information
Cited By
Surveying and mapping unmanned aerial vehicle capable of reducing surveying and mapping errors and surveying and mapping method
CN119045511A
