Unmanned aerial vehicle dynamic obstacle avoidance method based on improved A star algorithm

Through the improved A-star algorithm and dynamic window method, combined with the redundant path point elimination strategy, the robustness problem of UAV path planning in the face of random and dynamic obstacles is solved, and stable path planning and control in narrow environments are achieved. The high-speed dynamic obstacle avoidance capability improves the safe flight performance of the drone.

CN118760207APending Publication Date: 2024-10-11SUN YAT SEN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410934049.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing UAV path planning has poor robustness when faced with random obstacles and dynamic obstacles, and is prone to planning failure especially in narrow environments. Moreover, the traditional dynamic window method is prone to falling into a local minimum when facing high-speed dynamic obstacles. resulting in failure to avoid obstacles.

Method used

Using the improved A-star algorithm combined with the dynamic window method, through the improved evaluation function and redundant path point elimination strategy, global and local path planning is achieved to ensure that the UAV can generate paths far away from obstacles without relying on obstacle expansion processing. path and maintain a safe distance when facing dynamic obstacles.

Benefits of technology

It achieves stable generation of global paths in narrow environments, avoids planning failures, and maintains excellent obstacle avoidance capabilities in the face of high-speed dynamic obstacles, reducing algorithm time consumption and improving the safe flight performance of UAVs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760207A_ABST
    Figure CN118760207A_ABST
Patent Text Reader

Abstract

The invention provides an unmanned aerial vehicle dynamic obstacle avoidance method based on an improved A star algorithm. The method comprises the following steps: acquiring a prior obstacle grid map; performing global obstacle avoidance path planning on the prior obstacle grid map by using an improved A star algorithm; removing redundant path sub-target points in the global obstacle avoidance path; and performing local obstacle avoidance planning on the global obstacle avoidance path from which the redundant path sub-target points are eliminated by adopting an improved dynamic window method. According to the improved A satellite global planning algorithm, global path planning can be carried out without depending on an obstacle expansion map, the problem of planning failure in a narrow environment is avoided, and meanwhile, a distance is kept between a global path and an obstacle; by combining with a redundant path point deletion strategy and an improved dynamic window method, not only can the obstacle avoidance of a static obstacle be realized, but also the excellent obstacle avoidance capability is still realized when facing a high-speed dynamic obstacle, and in addition, the obstacle avoidance distance can be adjusted in advance by adjusting related parameters, so that the flexibility and the practicability of the method are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of unmanned aerial vehicle obstacle avoidance, and in particular to a dynamic obstacle avoidance method for unmanned aerial vehicle based on an improved A-star algorithm. Background Art

[0002] At present, existing path planning can be roughly divided into global path planning and local path planning according to the scope. However, the robustness of global path planning is often poor when facing random obstacles and dynamic obstacles, and local path planning is prone to fall into local optimality in complex environments. Therefore, it is necessary to combine global path planning with local path planning.

[0003] The safety of the output path of global path planning usually depends on the obstacle expansion map, which is prone to planning failure in narrow environments. Local planning requires avoiding random obstacles and dynamic obstacles.

[0004] Secondly, the traditional dynamic window method is often prone to fall into local optimality when facing high-speed dynamic obstacles, resulting in obstacle avoidance failure. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a dynamic obstacle avoidance method for a UAV based on an improved A-star algorithm. The present invention can achieve a stable output planned path for stable flight of the UAV by improving global path planning and local path planning.

[0006] The technical solution of the present invention is: a method for dynamic obstacle avoidance of unmanned aerial vehicles based on an improved A-star algorithm, comprising the following steps:

[0007] S1), obtaining a priori obstacle grid map;

[0008] S2), using the improved A-star algorithm to perform global obstacle avoidance path planning on the prior obstacle grid map;

[0009] S3), eliminating redundant path sub-target points in the global obstacle avoidance path;

[0010] S4) Using the improved dynamic window method, local obstacle avoidance planning is performed on the global obstacle avoidance path that eliminates redundant path sub-target points.

[0011] Preferably, in step S2), the improved A-star algorithm is used to perform global obstacle avoidance path planning on the obstacle grid map, which specifically includes the following steps:

[0012] S21), inputting the prior obstacle grid map, adding the starting point of the obstacle grid map to the open list as a node to be visited and adding legal neighboring nodes, and calculating the cost value of each node by the improved A-star algorithm;

[0013] S22) Take the node with the minimum cost value as the path point, add it to the closed list to ensure that it is no longer visited and continue to add its legal neighboring nodes to the development list.

[0014] Preferably, in step S21), the improved A-star algorithm refers to improving the evaluation function of the A-star algorithm, and the generated path points are kept away from obstacles by the improved evaluation function of the A-star algorithm; the expression of the evaluation function of the improved A-star algorithm is:

[0015] F(n)=G(n)+H(n)+D(n)

[0016] Where F(n) is the total cost, G(n) is the cost between the current node and the starting point, H(n) is the cost between the current node and the end point, D(n) is the cost of the relative distance between the current node and the obstacle, and n is the current node.

[0017] Preferably, in step S21), the relative distance cost value D(n) between the current node and the obstacle is calculated as follows:

[0018] D(n)=M-min{dist(node,ob)};

[0019]

[0020] Where M is a map-related constant, min{dist(node,ob)} represents the minimum distance between the current node and the surrounding obstacle nodes; x n ,y n are the horizontal and vertical coordinates of the current node, respectively. ob ,y ob They are the horizontal and vertical coordinates of the obstacle closest to the current node.

[0021] Preferably, in step S3), redundant path sub-target points in the global obstacle avoidance path are eliminated through the same straight line redundant point elimination strategy and the redundant turning point elimination strategy.

[0022] Preferably, in step S3), if a plurality of path sub-target points are on the same straight line, the same straight line redundant point elimination strategy is used to eliminate the other path sub-target points other than the two end points of the straight line path.

[0023] Preferably, in step S3), removing redundant target points using a redundant turning point removal strategy specifically includes the following steps:

[0024] S31), traversing the path point sequence obtained from the starting point, if the obstacle is less than a set threshold from the distance between the current path point and the previous path point and the distance between the two path points is less than the set threshold, delete the path point.

[0025] Preferably, in step S4), if an obstacle is found and when the distance distance2 between the UAV and the dynamic obstacle is less than the first set threshold, it is determined whether the dynamic obstacle is located within the angle range of the current orientation angle theta of the UAV; if so, it is determined whether the straight-line distance distance1 determined by the current posture of the dynamic obstacle from the UAV is less than the second preset threshold. If so, the value of the pre-obstacle avoidance evaluation function dynamic(v,ω) is calculated and substituted into the evaluation function G(v,ω) of the improved dynamic window method for calculation, so as to select a new trajectory to realize local path planning.

[0026] Preferably, in step S4), the expression of the pre-obstacle avoidance evaluation function dynamic(v,ω) is:

[0027] dynamic(v,ω)=ob_tra_dist+tra_dis;

[0028] Where ob_tra_dist represents the maximum distance between the end of the predicted trajectory and the dynamic obstacle, and tra_dist represents the maximum distance between the end of the sampled trajectory and the straight line determined by the drone's own direction angle and position.

[0029] Preferably, in step S4), the evaluation function G(v,ω) of the improved dynamic window method is expressed as:

[0030] G(v,ω)=αPHead(v,ω)+βdist(v,ω)+γvel(v,ω)+δdynamic(v,ω);

[0031] Where α, β, γ, and δ are the weights of Phead(v,ω), dist(v,ω), vel(v,ω), and dynamic(v,ω), respectively; Phead(v,ω) represents the angular error between the end of the trajectory and the end of the UAV trajectory toward the end point; dist(v,ω) represents the minimum distance between the trajectory and the nearest obstacle, and vel(v,ω) represents the velocity at the end of the trajectory; dynamic(v,ω) is the pre-obstacle avoidance evaluation function; v and ω are the linear velocity and angular acceleration, respectively.

[0032] The beneficial effects of the present invention are:

[0033] 1. The global path planning algorithm of the present invention can generate a global path away from obstacles without relying on obstacle expansion processing, avoiding the planning failure problem in narrow environments, while the global path maintains a distance from obstacles;

[0034] 2. The present invention not only realizes the obstacle avoidance of static obstacles but also has excellent obstacle avoidance capability when facing high-speed dynamic obstacles by combining with the redundant path point deletion strategy and the improved dynamic window method;

[0035] 3. The present invention adjusts the pre-obstacle avoidance distance by adjusting relevant parameters, which increases the flexibility and practicality of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the process of the present invention;

[0037] Figure 2 A schematic diagram of a strategy for removing redundant points on the same straight line according to the present invention;

[0038] Figure 3 It is a schematic diagram of the redundant turning point elimination strategy of the present invention;

[0039] Figure 4 It is a schematic diagram of the process of local path planning of the present invention;

[0040] Figure 5 A schematic diagram of the optimal trajectory selection of the present invention;

[0041] Figure 6 It is a schematic diagram of the trajectory of the present invention and the existing method, wherein, Figure 6 (a) is a trajectory diagram planned using the method of the present invention; Figure 6 (b) Trajectory diagram planned for existing methods;

[0042] Figure 7 It is a simulation trajectory speed curve diagram of the present invention and the existing method; wherein, Figure 7 (a) is a simulation trajectory speed curve diagram of the method of the present invention; Figure 7 (b) is the simulation trajectory speed curve of the existing method. DETAILED DESCRIPTION

[0043] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings:

[0044] like Figure 1 As shown, this embodiment provides a method for dynamic obstacle avoidance of a UAV based on an improved A-star algorithm, comprising the following steps:

[0045] S1), obtaining a priori obstacle grid map;

[0046] S2), using the improved A-star algorithm to perform global obstacle avoidance path planning on the prior obstacle grid map;

[0047] S3), eliminating redundant path sub-target points in the global obstacle avoidance path;

[0048] S4) Using the improved dynamic window method, local obstacle avoidance planning is performed on the global obstacle avoidance path that eliminates redundant path sub-target points.

[0049] As a preferred embodiment of this embodiment, in step S2), the improved A-star algorithm is used to perform global obstacle avoidance path planning on the obstacle grid map, which specifically includes the following steps:

[0050] S21), inputting the prior obstacle grid map, adding the starting point of the obstacle grid map to the open list as a node to be visited and adding legal neighboring nodes, and calculating the cost value of each node by the improved A-star algorithm;

[0051] S22) Take the node with the minimum cost value as the path point, add it to the closed list to ensure that it is no longer visited and continue to add its legal neighboring nodes to the development list.

[0052] As a preferred embodiment of this embodiment, in step S21), the improved A-star algorithm refers to improving the evaluation function of the A-star algorithm, and the generated path points are kept away from obstacles by the improved evaluation function of the A-star algorithm; the expression of the evaluation function of the improved A-star algorithm is:

[0053] F(n)=G(n)+H(n)+D(n)

[0054] Where F(n) is the total cost, G(n) is the cost between the current node and the starting point, H(n) is the cost between the current node and the end point, D(n) is the cost of the relative distance between the current node and the obstacle, and n is the current node.

[0055] As a preferred embodiment of this invention, in step S21), the relative distance cost value D(n) between the current node and the obstacle is calculated as follows:

[0056] D(n)=M-min{dist(node,ob)};

[0057]

[0058] Where M is a map-related constant, min{dist(node,ob)} represents the minimum distance between the current node and the surrounding obstacle nodes; x n ,y n are the horizontal and vertical coordinates of the current node, respectively. ob ,y ob They are the horizontal and vertical coordinates of the obstacle closest to the current node.

[0059] As a preferred embodiment of this embodiment, in step S3), redundant path sub-target points in the global obstacle avoidance path are eliminated through the same straight line redundant point elimination strategy and the redundant turning point elimination strategy.

[0060] As a preferred embodiment of this invention, in step S3), if Figure 2 As shown, if multiple path sub-target points are on the same straight line, the redundant point elimination strategy of the same straight line is used to eliminate the other path sub-target points except the two end points of the straight line path.

[0061] As a preferred embodiment of this invention, in step S3), if Figure 3 As shown in FIG, the redundant turning point elimination strategy is used to eliminate redundant target points, which specifically includes the following steps:

[0062] S31), traversing the path point sequence obtained from the starting point, if the obstacle is less than a set threshold from the distance between the current path point and the previous path point and the distance between the two path points is less than the set threshold, delete the path point.

[0063] As a preferred embodiment of this invention, in step S4), if Figure 4 As shown, if an obstacle is found and when the distance distance2 between the UAV and the dynamic obstacle is less than the first set threshold, it is determined whether the dynamic obstacle is located within the angle range of the current orientation angle theta of the UAV; if so, it is determined whether the straight-line distance distance1 determined by the current posture of the dynamic obstacle from the UAV is less than the second preset threshold. If so, the value of the pre-obstacle avoidance evaluation function dynamic(v,ω) is calculated and substituted into the evaluation function G(v,ω) of the improved dynamic window method for calculation, so as to select a new trajectory to realize the planning of the local path.

[0064] As a preferred embodiment of this invention, in step S4), the expression of the pre-obstacle avoidance evaluation function dynamic(v,ω) is:

[0065] dynamic(v,ω)=ob_tra_dist+tra_dis;

[0066] Where ob_tra_dist represents the maximum distance between the end of the predicted trajectory and the dynamic obstacle, and tra_dist represents the maximum distance between the end of the sampled trajectory and the straight line determined by the drone's own direction angle and position. Figure 5 shown.

[0067] As a preferred embodiment of this embodiment, in step S4), the evaluation function G(v, ω) of the improved dynamic window method is expressed as:

[0068] G(v,ω)=αPHead(v,ω)+βdist(v,ω)+γvel(v,ω)+δdynamic(v,ω);

[0069] Where α, β, γ, and δ are the weights of Phead(v,ω), dist(v,ω), vel(v,ω), and dynamic(v,ω), respectively; Phead(v,ω) represents the angular error between the end of the trajectory and the end of the UAV trajectory toward the end point; dist(v,ω) represents the minimum distance between the trajectory and the nearest obstacle, and vel(v,ω) represents the velocity at the end of the trajectory; dynamic(v,ω) is the pre-obstacle avoidance evaluation function; v and ω are the linear velocity and angular acceleration, respectively.

[0070] like Figure 6 and 7 As shown, this embodiment uses the method described in this embodiment and the existing method to perform simulation. By analyzing the running time, it can be seen that the algorithm of this embodiment reduces the time consumption by 21.8% on average compared with the algorithm of the existing method. In terms of trajectory length, the trajectory length of this embodiment is only increased by 2.1%, which has little impact on the tracking performance and energy consumption of the drone.

[0071] Figure 7 The simulation results of the prior art method and the simulation results of the present invention. Due to the redundant point elimination strategy, the number of sub-target points is greatly reduced, so that the simulation speed curve changes less. At the same time, the trajectory curve is observed to find that the traditional algorithm falls into a local optimum when facing an oncoming dynamic obstacle, and there is a risk of collision without obstacle avoidance. The algorithm of the present invention provides a guarantee for the safe flight of the drone by pre-avoiding obstacles and maintaining a safe distance from dynamic obstacles in the same scenario. As shown in Table 1, dist1-dist5 respectively represent the closest distances between the drone and the first, second, third, fourth, and fifth dynamic obstacles.

[0072] Table 1 Simulation results of this embodiment and existing method

[0073] algorithm Time t / s Path length dist1 dist2 dist3 dist4 dist5 Existing methods 125.1 247.3 0.13 0.86 1.35 0.86 1.21 This embodiment 99.5 242.4 1.48 1.68 3.92 3.29 1.67

[0074] The above embodiments and descriptions are only for illustrating the principles and best embodiments of the present invention. Without departing from the spirit and scope of the present invention, the present invention may be subject to various changes and improvements, all of which fall within the scope of the present invention to be protected.

Claims

1. A method for dynamic obstacle avoidance of unmanned aerial vehicles based on improved A-star algorithm, characterized in that: The following steps are involved: S1), obtaining a priori obstacle grid map; S2), using the improved A-star algorithm to perform global obstacle avoidance path planning on the prior obstacle grid map; S3), eliminating redundant path sub-target points in the global obstacle avoidance path; S4) Using the improved dynamic window method, local obstacle avoidance planning is performed on the global obstacle avoidance path that eliminates redundant path sub-target points.

2. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 1, characterized in that: In step S2), the improved A-star algorithm is used to perform global obstacle avoidance path planning on the obstacle grid map, which specifically includes the following steps: S21), inputting the prior obstacle grid map, adding the starting point of the obstacle grid map to the open list as a node to be visited and adding legal neighboring nodes, and calculating the cost value of each node by the improved A-star algorithm; S22) Take the node with the minimum cost value as the path point, add it to the closed list to ensure that it is no longer visited and continue to add its legal neighboring nodes to the development list.

3. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 2, characterized in that: In step S21), the improved A-star algorithm refers to improving the evaluation function of the A-star algorithm, and the generated path points are kept away from obstacles by the improved evaluation function of the A-star algorithm; the expression of the evaluation function of the improved A-star algorithm is: F(n)=G(n)+H(n)+D(n) Where F(n) is the total cost, G(n) is the cost between the current node and the starting point, H(n) is the cost between the current node and the end point, D(n) is the cost of the relative distance between the current node and the obstacle, and n is the current node.

4. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 3 is characterized in that: In step S21), the relative distance cost value D(n) between the current node and the obstacle is calculated as follows: D(n)=M-min{dist(node, ob)}; Where M is a map-related constant, min{dist(node, ob)} represents the minimum distance between the current node and the surrounding obstacle nodes; x n ,y n are the horizontal and vertical coordinates of the current node, respectively. ob ,y ob They are the horizontal and vertical coordinates of the obstacle closest to the current node.

5. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 1, characterized in that: In step S3), redundant path sub-target points in the global obstacle avoidance path are eliminated through the same straight line redundant point elimination strategy and the redundant turning point elimination strategy.

6. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 5, characterized in that: In step S3), if multiple path sub-target points are on the same straight line, the redundant point elimination strategy for the same straight line is used to eliminate the other path sub-target points except the two end points of the straight line path.

7. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 5, characterized in that: In step S3), the redundant turning point elimination strategy is used to eliminate redundant target points, which specifically includes the following steps: S31), traversing the path point sequence obtained from the starting point, if the obstacle is less than a set threshold from the distance between the current path point and the previous path point and the distance between the two path points is less than the set threshold, delete the path point.

8. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 1, characterized in that: In step S4), if an obstacle is found and when the distance distance2 between the UAV and the dynamic obstacle is less than the first set threshold, it is determined whether the dynamic obstacle is located within the angle range of the current orientation angle theta of the UAV; if so, it is determined whether the straight-line distance distance1 determined by the current posture of the dynamic obstacle from the UAV is less than the second preset threshold. If so, the value of the pre-obstacle avoidance evaluation function dynamic(v, ω) is calculated and substituted into the evaluation function G(v, ω) of the improved dynamic window method for calculation, so as to select a new trajectory to realize the planning of the local path.

9. The method for dynamic obstacle avoidance of unmanned aerial vehicles based on the improved A-star algorithm according to claim 8, characterized in that: In step S4), the expression of the pre-obstacle avoidance evaluation function dynamic(v, ω) is: dynamic(v,ω)=ob_tra_dist+tra_dis; Where ob_tra_dist represents the maximum distance between the end of the predicted trajectory and the dynamic obstacle, and tra_dist represents the maximum distance between the end of the sampled trajectory and the straight line determined by the drone's own direction angle and position.

10. The method for dynamic obstacle avoidance of an unmanned aerial vehicle based on the improved A-star algorithm according to claim 8, characterized in that: In step S4), the evaluation function G(v, ω) of the improved dynamic window method is expressed as: G(v,ω)=αPHead(v,ω)+βdist(v,ω)+γvel(v,ω)+δdynamic(v,ω); Where α, β, γ, and δ are the weights of Phead(v, ω), dist(v, ω), vel(v, ω), and dynamic(v, ω), respectively; Phead(v, ω) represents the angular error between the end of the trajectory and the end of the UAV trajectory toward the end point; dist(v, ω) represents the minimum distance between the trajectory and the nearest obstacle, and vel(v, ω) represents the velocity at the end of the trajectory; dynamic(v, ω) is the pre-obstacle avoidance evaluation function; v and ω are the linear velocity and angular acceleration, respectively.

Citation Information

Cited By

  • Orchard robot path planning method based on ground undulation degree self-adaption

    CN120820155A