A path planning method and system for unmanned ship based on artificial potential field and A-star fusion
By integrating artificial potential field and A-star algorithm in unmanned ship path planning, the problem of too many nodes and kinematic constraints is solved, more efficient path planning is achieved, hardware overhead is reduced, and path length and time are optimized.
Patent Information
- Application Number
- CN202310792556.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The traditional A-star algorithm has too many nodes, a large amount of calculation, and does not consider kinematic constraints in unmanned ship path planning. The artificial potential field method easily falls into the local optimal solution and the end point is unreachable, and does not consider kinematic constraints.
A path planning method based on the fusion of artificial potential field and A-star is adopted. By designing the gravitational potential field superposition module, increasing the search distance limit, obstacle avoidance range and oscillation filter program, and combining the improved A-star algorithm for path planning, eliminating the need for CLOSED list, adding kinematic constraints and oscillation filtering procedures.
It improves path planning efficiency, reduces hardware overhead, eliminates target unreachable and local optimal problems, optimizes path length and time, and reduces the number of inflection points of the A-star algorithm.
Smart Images

Figure CN116880473B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of unmanned ship path planning, and in particular to an unmanned ship path planning method and system based on artificial potential field and A-star fusion. Background Art
[0002] Unmanned boats are fully automatic surface intelligent robots that can navigate on the water according to preset tasks without remote control, relying on precise satellite positioning and self-sensing. They are currently widely used in environmental monitoring, scientific research and exploration, underwater mapping, search and rescue, security patrol and other fields. Unmanned boats with mission route planning, autonomous obstacle avoidance algorithms, and equipped with multi-parameter monitoring sensors and environmental management equipment can autonomously realize hydrological and water quality monitoring operations, obstacle avoidance navigation, pollution tracking and alarm, environmental management and other functions.
[0003] Path planning is an important part of motion planning. The sequence of points or curves connecting the starting point and the end point is called a path. The strategy of forming a path is path planning. Path planning has a wide range of applications in many fields, especially in the autonomous movement and obstacle avoidance of unmanned ships. Path planning is crucial. Among them, the existing path planning methods include A-star algorithm and artificial potential field method.
[0004] When the traditional A-star algorithm is directly applied to the path planning of unmanned ships, there are problems in three aspects, which affect the efficiency and quality of path planning. First, there are too many nodes in the path planning, which leads to the reduction of the control stability of the unmanned ship; second, the frequent operation and sorting of the OPEN list and the CLOSED list occupy most of the computing power and resources of the unmanned ship, resulting in the reduction of the real-time performance of the path planning; third, the kinematic constraints of the unmanned ship are not considered, making the planned path difficult to reach in some cases, or there are dangerous situations, making the safety of the unmanned ship low. Due to the above three problems, A-star is difficult to transplant to engineering projects, which limits the application of the algorithm.
[0005] The advantages of the artificial potential field method are simple principles, convenient application, floating-point numerical calculations, and small calculations. It is very suitable for environments with low main control computing power and limited matrix computing capabilities. It can also generate relatively smooth paths, which is conducive to application in the actual engineering environment of this project. The disadvantage of this algorithm is that it is easy to fall into the local optimal solution, and the problem of unreachable end point occurs, and the dynamic constraints of the unmanned ship are not considered. The end point is unreachable because the distance between the obstacle and the target point is too close. When the unmanned ship reaches the target point, according to the potential field function, the gravity of the target point drops to zero, while the repulsion of the obstacle is not zero. At this time, although the unmanned ship reaches the target point, it cannot stop under the action of the repulsive field, resulting in the problem of unreachable target. Falling into the local optimal problem is also when the combined force of gravity and repulsion is zero at a certain point or the angle between it and the obstacle is 180 degrees. Summary of the invention
[0006] The technical problems to be solved by the present invention are:
[0007] In order to solve the problem that for unmanned ships with limited computing power, the traditional A-star algorithm path planning has too many nodes, too much calculation, and does not consider kinematic constraints; the traditional artificial potential field method is prone to fall into the local optimal solution, resulting in the end point being unreachable and also not considering the kinematic constraints.
[0008] The present invention adopts the following technical solutions to solve the above technical problems:
[0009] The present invention provides an unmanned ship path planning method based on artificial potential field and A-star fusion, comprising the following steps:
[0010] Step 1: Obtain unmanned ship information and map information;
[0011] Step 2: Use the improved A-star algorithm as the overall path planning method and combine it with the improved artificial potential field method for local path planning. Specifically,
[0012] ①. Design a gravitational potential field superposition module and intercept a rectangular search area to achieve local path planning;
[0013] ②. Increase the search distance limit and smooth the original repulsive potential field;
[0014] ③. Increase the obstacle avoidance range and add buffer path nodes when the steering angle exceeds 90°;
[0015] ④. Add an oscillation filtering program to filter out useless turning points after planning;
[0016] ⑤. After completing the local planning and constraints of steps ① to ④, the final path is planned by improving the A-star algorithm.
[0017] Furthermore, in step 2①, the gravitational potential field superposition module is designed by using the improved repulsion function, and the improved repulsion function is shown in formula 1:
[0018]
[0019] Where k is the proportional coefficient; ρ(q,q0) is a vector, which points from the obstacle to the unmanned ship and has a size equal to the Euclidean distance between the unmanned ship and the obstacle |q-q0|; Represents the distance between the car and the target point, n is a positive integer.
[0020] Furthermore, in step 2①, when intercepting the rectangular search area, the superimposed gravitational potential field is constructed by using the local starting and ending points as new starting and ending points, and the rectangular area size of the new gravitational potential field is expanded.
[0021] Furthermore, the proportional coefficient of the repulsive function in the new gravitational potential field is set to 0.45-0.55, and the rectangular area size of the traditional artificial potential field is expanded outward by 16m-25m.
[0022] Furthermore, in step 2②, the maximum search distance range is 3-5 nodes.
[0023] Furthermore, the maximum search distance range is 3 nodes.
[0024] Furthermore, in step 2③, the obstacle avoidance range can be selected according to the performance and turning radius of the unmanned boat.
[0025] Furthermore, in step 2⑤, the method of planning the final path using the improved A-star algorithm is to use a search method, starting from the starting point, storing the starting point in the simplest OPEN list, then searching for nodes around the starting point and storing the node with the smallest f value as the next path node in the simplest OPEN list, repeating the above operation until the target point is stored in the simplest OPEN list, at this time the path in the simplest OPEN list is the final path.
[0026] An unmanned ship path planning system based on artificial potential field and A-star fusion, the system has a program module corresponding to the above steps, and executes the steps in the unmanned ship path planning method based on artificial potential field and A-star fusion when running.
[0027] A computer-readable storage medium stores a computer program, wherein the computer program is configured to implement the steps of an unmanned ship path planning method based on artificial potential field and A-star fusion when called by a processor.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention discloses an unmanned ship path planning method and system based on the fusion of artificial potential field and A-star. The improved A-star algorithm is used for overall path planning, and the embedded improved artificial potential field is used for local path planning. In the traditional A-star algorithm, the simplest OPEN list is used to omit the CLOSED list to improve the path planning efficiency of the algorithm and reduce the hardware cost. In combination with engineering practice, the kinematic constraints and oscillation filtering program of the unmanned ship are added. The planned path is re-filtered by adding the oscillation filtering program to avoid the problem of too many nodes. In the artificial potential field method, the repulsion function is improved to eliminate the problem of unreachable targets and local optimality.
[0030] After optimizing the algorithms separately, comprehensive consideration is given to propose a new fusion algorithm combining the two types of algorithms. The excellent performance of the new fusion algorithm is verified through simulation. It can be obtained that the fusion algorithm of the present invention effectively improves the path planning time and path length. Compared with the improved A-star algorithm, the path planning time is reduced by 76.48%, and the path planning length is reduced by 13.39%; compared with the improved artificial potential field algorithm, the path planning time is reduced by 18.33%, and the path planning length is reduced by 11.85%, and the problem of many inflection points in the A-star algorithm is optimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of an unmanned ship path planning method based on artificial potential field and A-star fusion in an embodiment of the present invention;
[0032] Figure 2 Schematic diagram of the potential field after superimposing a new potential field in an embodiment of the present invention;
[0033] Figure 3 A static obstacle simulation environment map in an embodiment of the present invention;
[0034] Figure 4 This is a path planning diagram of an unmanned ship improved based on the traditional A-star algorithm in an embodiment of the present invention;
[0035] Figure 5 A schematic diagram of a safety threshold path in an embodiment of the present invention;
[0036] Figure 6 Schematic diagram of the inflection point oscillation path in an embodiment of the present invention;
[0037] Figure 7 A schematic diagram of potential field distribution in an embodiment of the present invention;
[0038] Figure 8 This is a schematic diagram of the final planned path in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In the description of the present invention, it should be noted that the terminology nouns in the various embodiments, such as "up", "down", "front", "back", "left", "right", etc., which indicate directions, are only for simplifying the description of the positional relationship based on the drawings in the specification, and do not mean that the referred elements and devices must be operated according to the specific directions and defined operations and methods and structures in the specification. Such directional nouns do not constitute a limitation on the present invention.
[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0041] Specific implementation plan 1: Combine Figures 1 to 8 As shown, the present invention provides an unmanned ship path planning method based on artificial potential field and A-star fusion, comprising the following steps:
[0042] Step 1: Obtain unmanned ship information and map information;
[0043] Step 2: Use the improved A-star algorithm as the overall path planning method and combine it with the improved artificial potential field method for local path planning. Specifically,
[0044] ①. Design a gravitational potential field superposition module and intercept a rectangular search area to achieve local path planning;
[0045] That is, the local starting and ending points are used as new starting and ending points to construct a superimposed gravitational potential field, and the rectangular area size of the new gravitational potential field is expanded, otherwise the local optimal path cannot be planned. Among them, the gravitational potential field superposition module uses the improved repulsion function, and the gravitational function remains unchanged to solve the problems of local optimality and unreachable targets. Specifically, the proportional factor is added to the obstacle repulsion function of the traditional algorithm. To correct the original function, only when the unmanned ship reaches the end point, the repulsive force and attractive force on the unmanned ship in the combined potential field are reduced to zero at the same time, so that the above two types of problems are solved. The improved repulsive function Urep(q) is shown in Formula 1:
[0046]
[0047] Where k is the proportional coefficient; ρ(q,q0) is a vector, which points from the obstacle to the unmanned ship and has a size equal to the Euclidean distance between the unmanned ship and the obstacle |q-q0|; Represents the distance between the car and the target point, n is a positive integer;
[0048] According to multiple path planning experiments, the proportional coefficient of the repulsive function in the new gravitational potential field is set to 0.45-0.55, and the rectangular area size of the traditional artificial potential field is expanded outward by 16m-25m. When the proportional coefficient of the repulsive function in the new gravitational potential field is 0.5, the effect is relatively good when the rectangular area size of the traditional artificial potential field is expanded outward by 20m, which can enable the local artificial potential field method to reach the end point from the starting point. At this time, the magnitude of the new gravitational potential field should be at the same magnitude as the original combined potential field, otherwise the problem of uneven local potential field will occur, resulting in path planning errors. The combined potential field after superimposing the new gravitational potential field is as follows: Figure 2 As shown, the requirements of magnitude constraint and fast convergence are met;
[0049] ② Increase the search distance limit so that the gradient change of the path will not jump; then smooth the original repulsive potential field so that the path can have a "slope" down to the lowest potential field, forming a better path;
[0050] When increasing the search distance limit, the node constraint of the maximum search distance for path planning is used. The maximum search distance range is proposed to be 3-5 nodes, and the maximum search distance range is preferably 3 nodes. If the search distance is too large, the calculation amount of the unmanned ship will increase, which is not suitable for the application scenario of unmanned ships with less computing power; if the search distance is too small, the effect is poor, which affects the planning of the optimal path;
[0051] The original repulsive potential field is smoothed to avoid path truncation due to the height and gradient problems of the repulsive potential field if the global minimum potential field converges in the rectangular search area.
[0052] ③. Increase the obstacle avoidance range. You can select the appropriate obstacle avoidance range according to the performance of the unmanned ship and the turning radius. At the same time, add a buffer path node when the turning angle exceeds 90°;
[0053] The kinematic constraint problem exists in both the traditional A-star algorithm and the traditional artificial potential field algorithm, that is, in the actual movement of the unmanned ship, there is inertia that prevents the unmanned ship from turning suddenly at a certain point. If the path node is too close to the obstacle, it will cause a collision accident. In the path trajectory of the traditional A-star algorithm and the traditional artificial potential field algorithm, the unmanned ship will approach the obstacle surface when encountering an obstacle. This is because the node information they search for is all adjacent nodes. In the present invention, a long-range scan is set, that is, a range of 10m*10m, so that the distance to the obstacle is always outside the safety threshold of 10m;
[0054] When the unmanned ship faces a turn angle exceeding 90 degrees, by adding buffer nodes and automatically adding an inclined buffer path through the path planning of the fusion algorithm, the safety of the path and the stability of the unmanned ship's path tracking can be improved;
[0055] ④. Add an oscillation filtering program to filter out useless turning points after planning;
[0056] The traditional A-star algorithm has the problem of too many nodes in the filter planning process, that is, the planned path may always oscillate due to useless turning points, which greatly increases the difficulty of unmanned ship path tracking, leading to failure of track control and increasing the safety risk of unmanned ships.
[0057] By adding an oscillation filtering program, the planned path is re-filtered, so that the effect of path planning is improved and basically becomes a straight line, making it easy to achieve track control of the unmanned ship; the oscillation filtering program is a program well known in the art;
[0058] ⑤. After completing the local planning of steps ① to ④ and the overall and local constraints, the final path is planned by improving the A-star algorithm, including:
[0059] Use the search method, starting from the starting point, store the starting point in the simplest OPEN list, then search the nodes around the starting point and store the node with the smallest f value as the next path node in the simplest OPEN list, repeat the above operation until the target point is stored in the simplest OPEN list, and the path in the simplest OPEN list is the final path;
[0060] Regarding the problem of large amount of computation in the traditional A-star algorithm, the main reason for the large amount of storage resources and large amount of computation is the continuous addition, deletion and sorting of the OPEN list and the CLOSED list, which is an inevitable result of the implementation of the traditional algorithm; the solution is to no longer consider the addition and deletion of the OPEN list and the CLOSED list and the completion of the final path by pushing the child node to the parent node, use the simplest OPEN list, and omit the CLOSED list to improve the algorithm's path planning efficiency and reduce hardware overhead; in the process of algorithm implementation, use the search method instead of the method of searching and storing in two lists, no longer operate on the two lists, but real-time search and path planning.
[0061] Specific implementation plan 2: Combined Figures 1 to 8 As shown, the present invention provides an unmanned ship path planning system based on artificial potential field and A-star fusion, the system has a program module corresponding to the above steps, and executes the steps in the unmanned ship path planning method based on artificial potential field and A-star fusion when running. The other combinations and connection relationships of this embodiment are the same as those of the specific embodiment one.
[0062] Specific implementation plan three: Combined Figures 1 to 8As shown, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the unmanned ship path planning method based on artificial potential field and A-star fusion when called by a processor. The other combinations and connection relationships of this embodiment are the same as those of the specific embodiment one.
[0063] Example
[0064] A map environment with multiple static obstacles is constructed in a 2D plane, such as Figure 3 As shown, in Figure 3 In the map environment, the starting point coordinates are set to (50m, 50m), the target point coordinates are (450m, 450m), the starting heading angle is zero degrees, the detection range of the unmanned boat is 20m, the obstacle avoidance distance is 10m, the navigation speed of the unmanned boat is set to 2.0m / s, the length of the unmanned boat is 2m, and the width is 1m.
[0065] The system simulation environment is: CPU: 9th Gen Intel(R)Core(TM)i7-9750H 2.60GHz, 16G RAM; operating system: Windows11; software: algorithm simulation software R2020b.
[0066] Combination Figure 4 As shown, Figure 4 The path planning diagram planned by the improved A-star algorithm can bypass obstacles and reach the target point from the starting point, basically meeting the requirements of the unmanned ship for global path planning.
[0067] When the traditional A-star algorithm is directly applied to the path planning of the unmanned ship, the solutions to the existing problems are as follows:
[0068] First, we need to solve the problem of kinematic constraints of unmanned ships. In the actual movement of unmanned ships, there is inertia that prevents them from turning suddenly at a certain point. If the path node is too close to the obstacle, a collision accident may occur. Figure 5 -a, the planned path is too close to the obstacle to meet the project requirements. In this embodiment, obstacle avoidance starts from 10m away and a buffer path node is added when the turning angle exceeds 90 degrees, such as Figure 5 -b shows that the path of the traditional A-star algorithm is very close to the obstacle surface. This is because the node information it searches for is all adjacent nodes. In this project, long-range scanning (10m*10m range) is designed and implemented so that the distance to the obstacle is always outside the safety threshold of 10m. When the unmanned ship faces a turn of more than 90 degrees, an inclined buffer path is added to improve the safety of the path and the stability of the unmanned ship's path tracking.
[0069] Secondly, solve the problem of too many nodes in the path planning process of unmanned ships, such as Figure 6 -a, the planned path is always oscillating, which greatly increases the difficulty of the unmanned ship's path tracking, leading to the failure of track control and increasing the safety risk of the unmanned ship. By designing an oscillation filter program, the planned path is re-filtered, making the path planning effect better, such as Figure 6 -b shows that it basically becomes a straight line, making it easy to control the track of the unmanned ship.
[0070] In the simulation environment constructed in this embodiment, the gravitational potential field can be obtained as follows: Figure 7 -a, the highest point of the gravitational potential field is 576.0029, the lowest point is 7.1429, and the relative potential difference is 568.86. The relatively high potential difference makes the path planning more efficient and can find the end point more quickly; the repulsive potential field is as follows Figure 7 -b, the repulsive force around the obstacle is particularly large, which means that the gradient is large, which will make the path between the obstacles converge to the lowest point quickly, which can speed up the path planning in local path planning; the resultant potential field is as follows Figure 7 -c shows that the highest point of the combined potential field is 719.9160, the lowest point is 82.4385, and the relative potential difference is 637.4775. After superimposing the repulsive potential field, the end point can still be found quickly.
[0071] The improved artificial potential field method is used to plan the local path and optimize the global path planning. The final planned path is as follows Figure 8 As shown in the figure, the turning points of the path during some obstacle avoidance are corrected. Next, the specific performance of the new path is evaluated. After the above fusion optimization, the final path actually obtained meets the requirements of the project. The performance analysis is shown in Table 1.
[0072] Table 1 Comparison of paths planned by different algorithms
[0073]
[0074] As shown in Table 1, the path planning time and path length are improved. Compared with the improved A-star algorithm, the path planning time is reduced by 76.48%, and the path planning length is reduced by 13.39%; compared with the improved artificial potential field algorithm, the path planning time is reduced by 18.33%, and the path planning length is reduced by 11.85%. In addition, the problem of many inflection points in the A-star algorithm is optimized. The advantages of the new algorithm are very obvious.
[0075] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A path planning method for unmanned ships based on the fusion of artificial potential field and A-star. It is characterized in that The following steps are involved: Step 1: Obtain unmanned ship information and map information; Step 2: Use the improved A-star algorithm as the overall path planning method and combine it with the improved artificial potential field method for local path planning. Specifically, ①. By designing the gravitational potential field superposition module and intercepting the rectangular search area to achieve local path planning, The gravitational potential field superposition module is designed using the improved repulsion function, which is shown in Formula 1: Where k is the proportionality coefficient; ρ(q,q 0 ) is a vector, the direction is from the obstacle to the unmanned ship, and the size is the Euclidean distance between the unmanned ship and the obstacle. 0 |; Represents the distance between the car and the target point, n is a positive integer; When intercepting the rectangular search area, the superimposed gravitational potential field is constructed by taking the local starting and ending points as new starting and ending points, and the rectangular area size of the new gravitational potential field is expanded; ②. Increase the search distance limit and smooth the original repulsive potential field; ③. Increase the obstacle avoidance range and add buffer path nodes when the steering angle exceeds 90°; ④. Add an oscillation filtering program to filter out useless turning points after planning; ⑤. After completing the local planning and constraints of steps ① to ④, the final path is planned by improving the A-star algorithm. The method of planning the final path using the improved A-star algorithm is to use the search method, starting from the starting point, storing the starting point in the simplest OPEN list, then searching the nodes around the starting point and storing the node with the smallest f value as the next path node in the simplest OPEN list, repeating the above operation until the target point is stored in the simplest OPEN list. At this time, the path in the simplest OPEN list is the final path.
2. According to claim 1, a method for unmanned ship path planning based on artificial potential field and A-star fusion, Features: The proportional coefficient of the repulsive function in the new gravitational potential field is set to 0.45-0.55, and the rectangular area size of the traditional artificial potential field is expanded outward by 16m-25m.
3. According to claim 2, a method for unmanned ship path planning based on artificial potential field and A-star fusion, Features: In step 2②, the maximum search distance range is 3-5 nodes.
4. According to claim 3, a method for unmanned ship path planning based on artificial potential field and A-star fusion, Features: The maximum search distance range is 3 nodes.
5. According to claim 3, a method for unmanned ship path planning based on artificial potential field and A-star fusion, Features: In step 2③, the obstacle avoidance range can be selected according to the performance and turning radius of the unmanned boat.
6. An unmanned ship path planning system based on artificial potential field and A-star fusion, Features: The system has a program module corresponding to the steps of any one of claims 1 to 5, and executes the steps of the unmanned ship path planning method based on the fusion of artificial potential field and A-star when running.
7. A computer-readable storage medium, Features: The computer-readable storage medium stores a computer program, and the computer program is configured to implement the steps of the unmanned ship path planning method based on artificial potential field and A-star fusion according to any one of claims 1 to 5 when called by a processor.
