Path planning method based on improved A star and improved artificial potential field

By introducing weight factors and five-direction search into the A-star algorithm, and combining it with the virtual target point method in the artificial potential field method, the problems of traditional algorithms being inefficient and prone to falling into local optimality in UAV path planning are solved, achieving for more efficient and accurate path planning.

CN118654675APending Publication Date: 2024-09-17NANJING TECH UNIV
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202410718415.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The traditional A-star algorithm and artificial potential field algorithm have problems in UAV path planning such as low search efficiency, many path turning points and redundant points, and easy falling into local optimal solutions.

Method used

By introducing weight factors, five-direction search methods and redundant node elimination strategies into the A-star algorithm, combined with the introduction of the virtual target point method into the artificial potential field method, the algorithm is improved to improve search efficiency and accuracy and avoid local optimal solutions.

Benefits of technology

The efficiency and accuracy of path planning are improved, the generated paths are safer and more efficient, redundant nodes are reduced, local optimal traps are avoided, and path length and planning time are significantly optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118654675A
    Figure CN118654675A
Patent Text Reader

Abstract

The invention discloses a path planning method based on an improved satellite A and an artificial potential field, and belongs to the technical field of path planning, and the method comprises the steps: firstly, building a map through a grid method, enabling each grid unit to represent a walkable region or node in an environment, and marking the grid unit where an obstacle is located; secondly, setting a starting point and an ending point in a modeling environment, and ensuring that the starting point and the ending point are in a feasible region and are not positioned in an obstacle region; then performing global path search based on the improved A star algorithm, introducing a weighting factor lambda, calculating a new cost function f (n), eliminating three directions with maximum angle difference values to realize a five-direction search mode of the A star algorithm, and then performing redundant node elimination operation to obtain a global optimal path; on the basis of a global path, an improved artificial potential field method is adopted for local path planning, local optimum is avoided by introducing a virtual target point method, a plurality of sub-target points are set, a synthetic potential field and force borne by the unmanned aerial vehicle are calculated, and obstacles are avoided and the unmanned aerial vehicle reaches the target points. According to the method, the efficiency and precision of global path planning are improved by improving the A star algorithm, the problem of local optimum is solved by combining with the improved artificial potential field method, and finally efficient path planning and obstacle avoidance are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of path planning, and in particular relates to a path planning method based on an improved A-star algorithm and an improved artificial potential field. Background Art

[0002] Path planning is a technology in the field of computer science and operations research. Its core task is to find the optimal path from the starting point to the end point for a mobile entity. This path should take into account multiple factors such as time, distance, cost or safety. The goal of path planning is not only to find a feasible path, but more importantly to optimize the path to meet specific performance indicators. It has a wide range of applications in many fields, including logistics, transportation, robotics, game design, and drone path planning. Among them, drone path planning has a wide range of application scenarios and is a particularly interesting and challenging subfield in the field of path planning, involving autonomous navigation and obstacle avoidance of drones during missions. The complexity of this field comes not only from the dynamic limitations of the drone itself, such as flight speed and maneuverability, but also from the uncertainty of the external environment, such as weather changes and unforeseen obstacles.

[0003] Autonomous obstacle avoidance path planning is divided into two cases: two-dimensional planning and three-dimensional planning. The present invention mainly focuses on the path planning problem of UAVs in a two-dimensional plane. Existing path planning is divided into local dynamic path planning and global static path planning. Local dynamic path planning is that the UAV does not know the surrounding environment information. During the flight, it relies on its own sensors to perceive the surrounding environment information and changes of the flight, establish a dynamic model in real time, and plan an optimal path to avoid obstacles. It is a path planning strategy designed while flying. Knowing the surrounding environment, by modeling the flight range environment, combined with path planning constraints and standards, an optimal path from the starting point to the target point that bypasses obstacles is planned.

[0004] In global static path planning, the A-star algorithm is one of the most commonly used algorithms. The A-star algorithm is an algorithm based on a heuristic search strategy that takes into account both search efficiency and optimal path. It draws on and improves the Dijkstra algorithm and the greedy algorithm, changes the disordered search method in the Dijkstra algorithm, and thus becomes one of the main algorithms for grid path planning. However, the traditional A-star algorithm has problems such as too many search nodes, low search efficiency, and many turning points and redundant points in the planned path. The artificial potential field algorithm is a commonly used local path planning method that simulates the force field of interaction between objects and guides the drone according to these force fields to avoid obstacles and reach the target position. Although the artificial potential field algorithm has many advantages in path planning, its disadvantages are also obvious. The artificial potential field algorithm has the problem of being easily trapped in the local optimal solution in path planning, which means that the algorithm may be trapped in the potential energy minimum point around the local obstacle, so that a better global path cannot be searched. In order to solve these problems, the present invention improves the traditional A-star algorithm and the artificial potential field algorithm respectively, and proposes a path planning method based on the improved A-star algorithm and the improved artificial potential field method. On the basis of the traditional A-star algorithm, by adding weight factors, five-direction search methods and redundant node elimination strategies, the low planning efficiency of the original algorithm is overcome, and the algorithm search efficiency and accuracy are improved; the virtual target point method is introduced into the traditional artificial potential field algorithm to overcome the original algorithm's shortcomings of being prone to unreachable targets during path planning. The improved A-star algorithm is used for global path planning, and the improved artificial potential field method is used for local path planning. This method can overcome the limitations of traditional algorithms, improve the efficiency and accuracy of path planning, and enable the target to complete the flight mission more safely and efficiently. Summary of the invention

[0005] The technical problem to be solved by the present invention is: to overcome the deficiencies of the prior art, to propose a path planning method based on an improved A-star algorithm and an improved artificial potential field algorithm, and to obtain a better planning effect by improving and combining these two algorithms.

[0006] The technical solution adopted by the present invention is: a path planning method based on an improved A-star algorithm and an improved artificial potential field algorithm, comprising:

[0007] Step 1: Based on the environmental information, a map model is constructed using the grid method. Each grid cell represents a walkable area or node in the environment, and the grid cells where obstacles are located are marked.

[0008] Step 2: Specify the start and end points in the modeled environment, ensuring that the start and end points are within the feasible area and are not located in the obstacle area;

[0009] Step 3: Perform global path planning search based on the improved A-star algorithm;

[0010] Step 4: Based on the global path obtained in step 3, the local path planning is performed by using the improved artificial potential field method, and the virtual target point method is introduced to avoid falling into the local optimum, and finally the final planned path is obtained;

[0011] The above step 3 about improving the A-star algorithm for global path planning includes: Initialize an open list and a closed list. The open list is used to store nodes to be explored, and the closed list is used to store nodes that have been explored. Add the starting point to the open list and set its g(n) = 0;

[0012] Calculate the cost function value f(n) of each point in the OPEN list, and set the node with the smallest f(n) value as the current node.

[0013] The weighting factor λ is introduced into the calculation of the path cost function f(n) of the traditional A-star algorithm to increase the weight ratio of the unknown path cost in the total distance cost estimate f(n) of the node. The new path cost function calculation formula is: f(n) = g(n) + λ·h(n). In the formula, f(n) represents the estimated distance cost from the starting node to the target node via the current node n; g(n) represents the actual distance cost from the starting node to the current traversed node n; h(n) represents the estimated heuristic cost from the current node n to the target node, which is calculated using the Euclidean distance, that is, h(n) is the Euclidean distance, which is defined as follows:

[0015] Traverse the neighbor nodes of the current node. When processing neighbor nodes, the present invention improves the search direction of the original A-star algorithm, using the angle of the line from the starting node to the target node, and eliminating the three directions with the largest difference from the angle: a. Calculate the angle between the line from the start point to the end point and the horizontal line (with the x-axis to the right as the positive direction). b. Determine the search angles in eight directions: up (90°), down (-90°), left (180°), and right (0°). The four diagonal directions are 40°, 135°, -45°, and -135° respectively. c. For each direction, calculate the difference between the angle of the line connecting the starting point and the end point and the direction. Sort the absolute values ​​of these differences, find the directions corresponding to the three values ​​with the largest differences and eliminate them. The remaining five directions are the search directions to be used by the improved A-star algorithm.

[0016] Traverse the neighbor nodes in the five search directions: a. If it is already in the closed list, ignore it. b. If it is not in the open list, add it to the open list and calculate the g(n) and h(n) values. c. If it is already in the open list, check if the path from the current node to the neighbor node is shorter. If it is shorter, update the g(n) value.

[0017] Repeat the above steps until the target node is reached or the open list is empty.

[0018] When reaching the target node, perform redundant node elimination on the path: if nodes A, B, and C are three consecutive nodes on the planned path, and if any point on the AC line is not on an obstacle, node B is considered a redundant node and is eliminated. Starting from the starting node, traverse all nodes until all key nodes are extracted. The path formed by the key nodes is the global optimal path of the A-star plan.

[0019] In the above step 4, local path planning is performed using the artificial potential field method based on the global optimal path obtained in step 3, including: The artificial potential field method applies a virtual potential field to each path point based on the local perception information of the location to affect the movement direction of the drone. In order to overcome the problem of local minimum trap in this method, the present invention improves the artificial potential field method by introducing virtual target points to more effectively guide the path planning process. First, five sub-target points are evenly divided according to the length of the global optimal path, where the fifth sub-target point is the end point of the path, and the position of the virtual target point is determined to form a sub-target point sequence; then each divided sub-target point is used as the current target point of the artificial potential field method, and the synthetic potential field and force exerted on the drone are calculated. The resultant force mainly includes the gravitational force exerted by the virtual target point on the drone and the repulsive force exerted by the obstacle. The virtual target point method can help the drone avoid local minima and obstacles, reach the first virtual target point, and then navigate to the next virtual target point after arriving, until it reaches the end point, completing the local path planning. Its main contents include:

[0020] ① The gravitational field function is defined as U attx (q), the closer the distance to the target point, the smaller the gravitational field, and the attraction is 0 when reaching the target point, otherwise it becomes larger. The gravitational potential field function is defined as:

[0021] Among them, k attx is the position gravity gain coefficient, P rg =||qq g || represents the position q and the target point position q g The relative distance between them, gravity is the gradient of the gravitational field: The direction of gravity is from position q to the target point position q g .

[0022] ②The repulsive field function is expressed as U repx (q), the closer the distance to the obstacle, the greater the repulsive field, and vice versa. Beyond a certain range, it becomes zero. The repulsive potential field function is defined as:

[0023] Among them, k repx is the position repulsion gain coefficient, P ro =||q-q0|| represents the position q of the drone and the position q of the obstacle o The relative distance between them, p0 is a constant, which indicates the maximum range of the repulsive force of the obstacle, and the repulsive force is the gradient of the repulsive field: The direction of the repulsive force is from the obstacle position q0 to the position q.

[0024] According to the gravitational field function and repulsive field function defined above, the global field function in the entire space can be obtained as follows: U(q)=U attx (q)+U repx (q) The resultant force is the gradient of the global field:

[0025] The resultant force of the drone at a certain position is the vector sum of the gravitational force and the repulsive force. The resultant force F has a component toward the target point. attx and k repx , and the repulsive force influence distance ρ0, the forward movement behavior can be controlled. Through the artificial potential field method, it can move towards the target while avoiding obstacles, and move under the action of the resultant force until it reaches the target point. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of the present invention.

[0027] Figure 2 This is a schematic diagram of the APF virtual potential field method.

[0028] Figure 3 It is the path planning graph of instance 1.

[0029] Figure 4 It is the path planning graph of instance 2. DETAILED DESCRIPTION

[0030] The present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods. The following embodiments are used to illustrate the present invention but are not used to limit the protection scope of the present invention.

[0031] Example 1: In an obstacle 1 environment, set the starting point to (6, 10) and the end point to (64, 58) for path planning.

[0032] Process such as Figure 1 As shown, follow these steps to improve the experiment:

[0033] Firstly, the raster method is used to construct the map environment information;

[0034] Set the start and end points;

[0035] Use improved A-star algorithm for global path planning;

[0036] Based on the global path planning, the improved artificial potential field method is used for local path planning. The potential field is set for the surrounding environment, and the resultant force on the drone is calculated according to the position of the repulsive obstacle and the gravitational position of the target point. This resultant force will affect the direction of travel.

[0037] Secondly, the virtual target point method is used to avoid the UAV from falling into the local optimal problem. The schematic diagram of the virtual target point method is as follows: Figure 2 As shown, it includes the starting point and the end point of the path, the red "x" represents the virtual sub-target point of the division, and the black line represents the global optimal path.

[0038] The path completed by local path planning using the artificial potential field method is the final planned path. The final planned path is as follows: Figure 3 As shown, the red line represents the planning path of the traditional A-star algorithm, the green line represents the planning path of the traditional A-star combined with the traditional artificial potential field method, and the blue line represents the planning path of the method of the present invention.

[0039] The method of the present invention mainly compares and analyzes the effects of the traditional A-star algorithm and the traditional A-star algorithm combined with the traditional artificial potential field method path planning, mainly comparing the planned path length and planning time. The results of Example 1 are shown in Table 1: Table 1 Comparison results under environment 1

[0040] Example 2: In environment 2, set the starting point (10,40) and the end point (66,30) and plan the path as follows: Figure 4 shown.

[0041] The results of Example 2 are shown in Table 2: Table 2 Comparison results under environment 2

[0042] In experiments under two different environments, the path lengths planned by the method of the present invention are 79.7321 meters and 58.9621 meters, respectively, which are significantly better than the traditional A-star algorithm (87.1543 meters and 65.9411 meters) and the traditional A-star algorithm combined with the traditional artificial potential field method (86.4605 meters and 65.2270 meters). This shows the efficiency and accuracy advantages of the method of the present invention in path planning. The method of the present invention also performs well in planning time, which is 2.5984 seconds and 2.6750 seconds, respectively, which is significantly faster than the A-star algorithm (2.3854 seconds and 2.3319 seconds) and the traditional A-star combined with the traditional artificial potential field method (3.2656 seconds and 3.2316 seconds). While increasing the search accuracy, the method of the present invention can also complete path planning in a shorter time.

[0043] In summary, the method of the present invention shows better performance than the traditional A-star algorithm and the traditional A-star algorithm combined with the traditional artificial potential field method in the path planning process, with a shorter path length and faster planning time.

Claims

1. A path planning method based on improved A-star and artificial potential field, characterized in that: The steps include: Step 1: Based on the environmental information, a map model is constructed using the grid method. Each grid cell represents a walkable area or node in the environment, and the grid cells where obstacles are located are marked. Step 2: Specify the start and end points in the modeled environment, ensuring that the start and end points are within the feasible area and are not located in the obstacle area: Step 3: Perform global path planning search based on the improved A-star algorithm; Step 4: Based on the global path planning obtained in step 3, local path planning is performed using the improved artificial potential field method, and the virtual target point method is introduced to avoid falling into the local optimum, and finally the final planned path is obtained.

2. The path planning method based on improved A star and artificial potential field as described in claim 1 above is characterized in that: The step 3 of improving the A-star algorithm for global path planning includes: Initialize an open list and a closed list; the open list is used to store nodes to be explored, and the closed list is used to store nodes that have been explored: add the starting point to the open list and set its g(n) = 0; Calculate the cost function value f(n) of each point in the OPEN list, and set the node with the smallest f(n) value as the current node; In the calculation of the path cost function f(n) of the traditional A-star algorithm, a weighting factor λ is introduced to increase the weight ratio of the unknown path cost in the total distance cost estimate f(n) of the node. The new path cost function calculation formula is: f(n) = g(n) + λ h(n); where f(n) represents the estimated distance cost from the starting node to the target node via the current node n; g(n) represents the actual distance cost from the starting node to the current traversed node n; h(n) represents the estimated heuristic cost from the current node n to the target node, which is calculated using the Euclidean distance, that is, h(n) is the Euclidean distance, which is defined as follows: Traverse the neighboring nodes of the current node; when processing the neighboring nodes, the present invention improves the search direction of the original A-star algorithm, using the angle of the line from the starting node to the target node, and eliminating the three directions with the largest difference from the angle: a. Calculate the angle between the line from the starting point to the end point and the horizontal line (with the x-axis to the right as the positive direction); b. Determine the search angles in eight directions: up (90°), down (-90°), left (180°), right (0°), and the four diagonal directions are 40°, 135°, -45°, and -135° respectively; c. For each direction, calculate the difference between the angle of the line connecting the starting point to the end point and the direction; sort the absolute values ​​of these differences, find out the directions corresponding to the three values ​​with the largest differences and eliminate them. The remaining five directions are the search directions to be used by the improved A-star algorithm; Traverse the neighbor nodes in the five search directions: a. If it is already in the closed list, ignore it; b. If it is not in the open list, add it to the open list and calculate the g(n) and h(n) values; c. If it is already in the open list, check whether the path from the current node to the neighbor node is shorter. If so, update the g(n) value. Repeat the above steps until the target node is reached or the open list is empty; When reaching the target node, the path is subjected to redundant node elimination: if nodes A, B, and C are three consecutive nodes on the planned path, and if any point on the AC line is not on an obstacle, node B is considered a redundant node and is eliminated; starting from the starting node, all nodes are traversed until all key nodes are extracted. The path formed by the key nodes obtained at this time is the global optimal path of the A star plan.

3. The path planning method based on improved A star and artificial potential field as described in claim 1 above is characterized in that: The step 4 uses the artificial potential field method to perform local path planning based on the global optimal path obtained in step 3, including: The artificial potential field method applies a virtual potential field to each path point based on the local perception information of the location to affect the movement direction of the drone. In order to overcome the local minimum trap problem of this method, the present invention improves the artificial potential field method by introducing a virtual target point to more effectively guide the path planning process. First, multiple sub-target points are evenly divided according to the length of the global optimal path, and the position of the virtual target point is determined to form a sub-target point sequence. Then, each divided sub-target point is used as the current target point of the artificial potential field method to calculate the synthetic potential field and force exerted on the drone. The resultant force mainly includes the gravitational force exerted by the virtual target point on the drone and the repulsive force exerted by the obstacle. The virtual target point method can help the drone avoid local minima and obstacles and reach the first virtual target point. After reaching the first virtual target point, it navigates to the next virtual target point until it reaches the end point to complete the local path planning. Its main contents include: ① The gravitational field function is defined as U attx (q), the closer the distance to the target point, the smaller the gravitational field, and the attraction is 0 when reaching the target point, otherwise it becomes larger; The gravitational potential field function is defined as: Among them, k attx is the position gravity gain coefficient, P rg =||qq g ||, represents the position q and the target point position q g The relative distance between them, gravity is the gradient of the gravitational field: The direction of gravity is from position q to the target point position q g ; ②The repulsive field function is expressed as U repx (q), the closer the distance to the obstacle, the greater the repulsive field, and vice versa, it becomes smaller and becomes zero beyond a certain range; The repulsive potential field function is defined as: Among them, k repx is the position repulsion gain coefficient, P ro =||q-q0|| represents the position q of the drone and the position q of the obstacle o The relative distance between them, ρ0 is a constant, which indicates the maximum range of the repulsive force of the obstacle, and the repulsive force is the gradient of the repulsive field: The direction of repulsion is from the obstacle position q0 to position q; According to the gravitational field function and repulsive field function defined above, the global field function in the entire space can be obtained as follows: U(q)=U attx (q)+U repx (q) The resultant force is the gradient of the global field: The resultant force of the drone at a certain position is the vector sum of the gravitational force and the repulsive force. The resultant force F has a component toward the target point. By adjusting k attx and k repx , and the repulsive force influence distance ρ0, the forward movement behavior can be controlled. Through the artificial potential field method, it can move towards the target while avoiding obstacles, and move under the action of the resultant force until it reaches the target point.

Citation Information

Cited By

  • Path planning method based on information grid division

    CN119984292A

  • Dynamic obstacle avoidance method and system based on global algorithm and local improved potential field method

    CN120010460A

  • Motion agent path planning method and device, equipment and medium

    CN120406297A

  • Dynamic obstacle avoidance emergency landing method for unmanned aerial vehicle

    CN120722920A

  • Dynamic obstacle avoidance and emergency landing methods for drones

    CN120722920B