Water surface ship path planning method, device and equipment and storage medium

By integrating the improved A* algorithm and the DWA algorithm, and combining the improved heuristic function and the path node turning angle reduction strategy, the path planning of surface vessels is optimized, solving the problems of global optimization, real-time obstacle avoidance and safe and reliable trajectory, and realizing path planning with global optimization, real-time obstacle avoidance and safe and reliable trajectory.

CN117250960BActive Publication Date: 2026-11-24JIMEI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311311895.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2026-11-24
Estimated Expiration
2043-10-11

AI Technical Summary

Technical Problem

Existing surface vessel path planning technologies struggle to simultaneously achieve global optimization, real-time obstacle avoidance, and safe and reliable navigation, and do not fully consider the kinematic characteristics of vessels.

Method used

By integrating the improved A* algorithm and the Dynamic Window algorithm (DWA), the global path is optimized through improved heuristic functions and path node turning angle reduction strategies. Combined with an improved trajectory evaluation function, dynamic path planning is achieved by comprehensively considering the kinematic characteristics of the boat and environmental changes.

Benefits of technology

It achieves global optimization, real-time obstacle avoidance, and safe and reliable navigation for surface vessels, thus improving the safety and feasibility of path planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117250960B_ABST
    Figure CN117250960B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, and storage medium for path planning of surface vessels, relating to the field of path planning technology. The proposed method integrates the A* algorithm and the DWA algorithm, employing a dynamic weighting strategy to improve the heuristic function of A*, thus addressing the low search efficiency of the A* algorithm. Considering the motion characteristics constraints of surface vessels, a path corner node angle reduction strategy is used to optimize the global path obtained by the A* algorithm, further solving problems such as excessively long paths and large turning angles planned by the A* algorithm. Furthermore, an improved trajectory evaluation function based on global factors and track safety is used to enhance the coupling between the DWA algorithm and the global path optimization. The optimization of sub-target points along the global path guides the DWA algorithm in local planning to determine the optimal path. The technical solution of this application simultaneously achieves the requirements of globally optimal, real-time obstacle avoidance, and reliable track safety in path planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of path planning technology, and in particular to a method, apparatus, equipment and storage medium for path planning of surface vessels. Background Technology

[0002] With the development of wireless communication technology and artificial intelligence, the intelligent navigation problem of surface vessels has attracted widespread attention. Path planning has always been one of the key research topics in the field of intelligent navigation of surface vessels. For the path planning problem of surface vessels, scholars at home and abroad have proposed many different solutions: a journal article published in 2022 presented a tabu search optimization algorithm that can accurately plan the optimal global path in the path planning of unmanned vessels. A journal article published in 2017 presented a path planning method based on the artificial potential field method, which can effectively complete the local dynamic obstacle avoidance of surface vessels.

[0003] However, some of the aforementioned literature focuses heavily on factors such as navigation costs and static obstacles during the movement of surface vessels. Therefore, the overall solutions only emphasize obtaining the globally optimal path for the surface vessel. Other literature focuses only on local planning, lacking guidance from global factors. While achieving local obstacle avoidance in dynamic environments, it often fails to achieve a globally optimal navigation path, resulting in low overall navigation efficiency. Furthermore, none of the aforementioned literature considers the kinematic characteristics of surface vessels, ignoring the potential navigation risks arising from dynamic factors in the environment, leading to a lack of safety in trajectory planning.

[0004] Therefore, current path planning research generally fails to simultaneously achieve the requirements of global optimization, real-time obstacle avoidance, and safe and reliable flight path planning. Summary of the Invention

[0005] To achieve the above objectives, this application provides a method, apparatus, device, and storage medium for path planning of surface vessels, which integrates an improved A* algorithm and a dynamic window algorithm (DWA) to realize dynamic path planning for surface vessels. The aim is to enable surface vessels to achieve globally optimal trajectories, respond to changes in obstacles in the navigation environment, and satisfy the kinematic characteristics of surface vessels, thereby improving the safety and feasibility of trajectories planning for surface vessels.

[0006] In a first aspect, this application provides a method for planning the path of a surface vessel, the method comprising:

[0007] S1. Create a grid map based on the given environmental location information and determine the starting point and target point;

[0008] S2. In the process of global path planning of the grid map using the improved A* algorithm, the total travel cost of each of the adjacent grid nodes of the current grid node is calculated by improving the heuristic function. The adjacent grid node with the smallest total travel cost is taken as the next current grid node and the search continues.

[0009] The improved heuristic function calculates the estimated travel cost from the current grid node to the target point based on a dynamic weight coefficient. The dynamic weight coefficient decreases as the distance between the current grid node and the starting point increases, and the dynamic weight coefficient decreases as the number of globally known obstacles increases.

[0010] S3. Determine whether the target point has been found; if yes, obtain the global path found, process the global path using the path node turning angle reduction strategy, obtain an optimized global path that satisfies the preset direction constraints and preset turning distance constraints, and determine the sub-target points of each navigation stage in the optimized global path; otherwise, return to step S2.

[0011] S4. Based on the kinematic model of the surface vessel, collect velocity samples in the candidate velocity space set and predict the trajectory to obtain multiple predicted trajectories. Determine whether the multiple predicted trajectories meet the braking constraints of the kinematic model.

[0012] S5. For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, and the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function to determine the optimal path.

[0013] The influencing factors of the improved trajectory evaluation function include: the shortest distance from the end of the current predicted trajectory to the optimized global path, and the magnitude of the turning angular velocity of the surface vessel; the improved trajectory evaluation function also uses the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment as a constraint.

[0014] S6. Determine whether the surface vessel has reached the target point. If yes, obtain the final path; otherwise, return to step S4.

[0015] In one possible implementation, step S2 includes:

[0016] S21. Starting the search with the starting point as the current grid node, add each of the adjacent grid nodes of the starting point to the list of nodes to be searched, and use the improved heuristic function H'(n) to calculate the total travel cost F(n) of all grid nodes in the list of nodes to be searched. The starting point is added to the list of searched nodes as the current grid node.

[0017] in, C1 is a constant term; dis(n) is the Euclidean distance from the current grid node n to the target point; dis(start) is the Euclidean distance from the starting point to the target point; B is the number of known obstacles globally;

[0018] H(n) is the initial heuristic function, representing the estimated travel cost from the current grid node n to the target point:

[0019] H(n) = sqrt[(X n -X g ) 2 +(Y n -Y g ) 2 ]; where, (X n ,Y n ) is the coordinate of the current grid node n, (X g ,Y g () are the coordinates of the target point;

[0020] F(n) = G(n) + H'(n), where F(n) is the total travel cost of the current grid node n, and G(n) is the travel cost from the current grid node n to the starting point;

[0021] S22. Traverse the list of nodes to be searched, take the neighboring grid node with the smallest total travel cost F(n) as the next current grid node, add it to the list of searched nodes, and continue the search.

[0022] In one possible implementation, step S3 includes:

[0023] S31. Determine whether the target point has been found. Otherwise, return to step S2. If the target point has been found, proceed to step S32.

[0024] S32. Obtain all grid nodes from the list of nodes to be searched, establish a first set, traverse all grid nodes in the first set, retain the grid nodes at both ends of the straight path, delete redundant nodes that are collinear with the straight path, and save the remaining grid nodes in the first set as a second set.

[0025] S33. In the second set, starting from the starting point, traverse all grid nodes in the second set, connect the current grid node to the next grid node to form a short path, and form a path set by combining the short paths; traverse the path set and determine: if the distance between the current short path and the center of the nearest obstacle grid is less than or equal to the preset safety distance Ds, then delete the current short path and delete the isolated grid nodes in the second set that are not connected by a path.

[0026] S34. Generate new nodes among the remaining grid nodes in the second set, traverse the second set and determine: if the current grid node in the second set is connected to the adjacent new node without passing through the obstacle grid, then continue to connect the current grid node to the next grid node in the second set; if the current grid node is connected to the adjacent new node through the obstacle grid, then delete the current grid node, select the previous grid node as the current grid node, and repeat the above steps S32-S34.

[0027] S35. When the target point is reached, starting from the target point, reverse the process and determine one by one whether the remaining grid nodes in the second set meet the preset direction constraints and preset rotation distance constraints to obtain the optimized global path.

[0028] The directional constraint is expressed as follows: θ is the perpendicular distance from the target point to the line pointing to the current bow. max θ is the maximum turning angle of a surface vessel. s To allow for a safe steering angle, x i and y i These are the x and y coordinates of the current grid node, respectively. i+1 and y i+1 These represent the x and y coordinates of the next grid node, respectively.

[0029] The gyration distance constraint is expressed as: 2R·sin(θ)<L i R is the turning radius of the vessel on the water, θ is the angle between the line segments formed by connecting the current grid node to each of its two adjacent grid nodes, and L is the turning radius of the vessel on the water. i This represents the distance from the current grid node to the next grid node.

[0030] S36. For each navigation stage in the optimized global path, the end node of the path segment corresponding to the navigation stage in the optimized global path is taken as the sub-target point of the navigation stage.

[0031] In one possible implementation, step S4 includes:

[0032] S41. Establish the kinematic model of the surface vessel;

[0033] S42. In the candidate velocity space set of the kinematic model, velocity samples are collected to determine feasible velocities; based on the feasible velocities, trajectory prediction is performed to obtain multiple predicted trajectories. The candidate velocity space set is subject to constraints on the maximum values ​​of linear velocity and angular velocity, acceleration and deceleration constraints, and braking constraints.

[0034] S43. Determine whether the multiple predicted trajectories satisfy the braking constraints of the kinematic model. If yes, proceed to step S5; otherwise, return to step S42.

[0035] The braking constraint is used to ensure that the surface vessel does not collide with obstacles in the environment during its operation, and is expressed as follows: (v,ω) represents the linear velocity and angular velocity on the predicted trajectory, where v is the linear velocity, ω is the angular velocity, and a is the linear velocity. vdmax This represents the maximum linear deceleration; a ωdmax v is the maximum value of angular deceleration. n ω represents the current dynamic window linear velocity of the surface vessel, and dist(v,ω) represents the minimum distance between the predicted trajectory and the obstacle under the corresponding dynamic window linear velocity and angular velocity.

[0036] In one possible implementation, step S5 includes:

[0037] For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, and the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function. The predicted path with the largest evaluation function value is determined as the optimal path.

[0038] The improved trajectory evaluation function G'(v,ω) is expressed as follows:

[0039] G'(v,ω)=α·Heading(v,ω)+β·Dist(v,ω)+γ·

[0040] Velocity(v,ω)+δ·Dist path (v,ω)+ε·Pal(v,ω);

[0041]

[0042] Pal(v,ω)=(|ω max |-|ωΔt|) / |ω max |;

[0043] α, β, γ, δ, and ε are weighting coefficients; Heading(v,ω) is the heading evaluation subfunction, representing the angular deviation between the surface vessel and the target point when it reaches the end of the predicted trajectory; Dist(v,ω) is the obstacle threat evaluation subfunction, representing the distance between the end of the current predicted trajectory and the nearest obstacle; Velocity(v,ω) is the speed evaluation subfunction, representing how quickly the speed sample used by the current predicted trajectory reaches the target point under the premise of safe driving.

[0044] Dist path(v,ω) is the global path deviation evaluation factor, representing the shortest distance from the end of the current predicted trajectory to the optimized global path; Pal(v,ω) is the turning angular velocity evaluation factor, representing the magnitude of the turning angular velocity of the surface vessel; dist t Represents the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment; turning distance constraint L θ =2R·sin(θ), where R is the turning radius of the boat on the water, and θ is the angle between the line segments formed by connecting the current grid node in the predicted trajectory and two adjacent grid nodes in the predicted trajectory.

[0045] In one possible implementation, S1 includes:

[0046] S11. Based on the environmental location information, known obstacles are represented by "1" and free movement areas are represented by "0" to obtain a binary two-dimensional grid map.

[0047] S12. Establish a Cartesian coordinate system using two adjacent edges in the two-dimensional grid map as coordinate axes. The position of the grid node in the two-dimensional grid map is represented by the coordinates (x, y) in the coordinate system. i ,y j )express;

[0048] (x i ,y j )=[(i-1)·l+0.5l,(j-1)·l+0.5l]

[0049] x i The x-coordinate of the grid node; y j is the ordinate of the grid node; l is the unit grid side length, i is the horizontal grid number, j is the vertical grid number, and i and j are both greater than or equal to 1;

[0050] S13. Expand the area of ​​obstacles in the two-dimensional grid map that does not fill a grid cell until a grid cell is filled to obtain the grid map. In the grid map, the given starting point is denoted as S and the given target point is denoted as G.

[0051] In a second aspect, a surface vessel path planning device is provided, which includes multiple functional modules for performing corresponding steps in the surface vessel path planning method provided in the first aspect.

[0052] Thirdly, a computing device is provided, comprising a memory and a processor, wherein the memory stores at least one program, which is executed by the processor to implement the surface vessel path planning method provided in the first aspect.

[0053] Fourthly, a computer-readable storage medium is provided, wherein at least one program is stored therein, the at least one program being executed by a processor to implement the surface vessel path planning method as provided in the first aspect.

[0054] The technical solution provided in this application includes at least the following technical effects:

[0055] This paper integrates the A* and DWA algorithms, employing a dynamic weighting strategy to improve the heuristic function of A*, thus addressing the low search efficiency of the A* algorithm. Considering the motion characteristics of surface vessels, a path corner node angle reduction strategy is used to optimize the global path obtained by the A* algorithm, further resolving issues such as excessively long planned paths and large turning angles. Furthermore, an improved trajectory evaluation function based on global factors and track safety is utilized to enhance the coupling between the DWA algorithm and the global path optimization. The optimization of sub-target points along the global path guides the DWA algorithm in local planning to determine the optimal path. The technical solution of this application simultaneously achieves the requirements of globally optimal, real-time obstacle avoidance, and reliable track safety in path planning. Attached Figure Description

[0056] Figure 1 This is a flowchart illustrating a dynamic path planning method for surface vessels provided in an embodiment of this application;

[0057] Figure 2 This is a schematic diagram of a rasterized map and raster position markers provided in an embodiment of this application;

[0058] Figure 3 This is a schematic diagram illustrating different evaluation methods of a heuristic function provided in an embodiment of this application;

[0059] Figure 4 This is a schematic diagram of a tilting phenomenon provided in an embodiment of this application;

[0060] Figure 5 This is a diagram illustrating the optimization effect of a path node provided in an embodiment of this application;

[0061] Figure 6 This is a kinematic model diagram of a surface vessel provided in an embodiment of this application;

[0062] Figure 7 This is a schematic diagram of the navigation path of a surface vessel during a certain stage, provided in an embodiment of this application.

[0063] Figure 8 This is a comparison chart of global planning simulation results provided in an embodiment of this application;

[0064] Figure 9 This is a schematic diagram of the simulation process of the fusion algorithm under one of the embodiments of this application;

[0065] Figure 10 This is a schematic diagram of the simulation process of the fusion algorithm under case 2 provided in the embodiment of this application;

[0066] Figure 11 This is a schematic diagram of the simulation process of the fusion algorithm under case 3 provided in the embodiment of this application;

[0067] Figure 12 This application provides a given location Figure 1 Comparison of planned flight paths;

[0068] Figure 13 This application provides a given location Figure 2 Comparison of planned flight paths;

[0069] Figure 14 This is a top view of the verification results of a marine area as provided in an embodiment of this application;

[0070] Figure 15 This is a schematic diagram of a surface vessel path planning device provided in an embodiment of this application;

[0071] Figure 16 This is a schematic diagram of the hardware structure of a computing device provided in an embodiment of this application. Detailed Implementation

[0072] To further illustrate the various embodiments, this application provides accompanying drawings. These drawings are part of the disclosure of this application and are mainly used to illustrate the embodiments, and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these drawings, those skilled in the art should be able to understand other possible implementations and the advantages of this application. Components in the drawings are not drawn to scale, and similar component symbols are generally used to represent similar components. In this application, the term "at least one" means one or more, and the term "multiple" means two or more; for example, multiple grid nodes refer to two or more grid nodes.

[0073] Path planning is divided into global path planning and local real-time path planning. Global path planning refers to obtaining the globally optimal path for a surface vessel based on pre-known global map information through path planning algorithms. Local real-time path planning refers to obtaining the optimal path from a local starting point to a local target point by continuously acquiring surrounding environmental information through the vessel's own sensors during its journey.

[0074] The A* algorithm, an extension of Dijkstra's algorithm, is a typical heuristic intelligent algorithm widely used in path planning, artificial intelligence, and other fields. The traditional A* algorithm employs a grid-based approach, where its evaluation function comprehensively considers the cost from the current grid node to the starting point and the cost from the current grid node to the target point. It expands the range by continuously searching for low-cost nodes until the target point is reached.

[0075] Current path planning research generally fails to simultaneously achieve global optimization, real-time obstacle avoidance, and safe and reliable trajectory planning. Considering the advantages of the A* algorithm (fast computation and strong adaptability) and the DWA algorithm (smooth local obstacle avoidance while fully considering the kinematic model of surface vessels), this application proposes a path planning method for surface vessels based on the fusion of an improved A* algorithm and the DWA algorithm. This method aims to enable surface vessels to achieve global optimization of their trajectory, respond to changes in obstacles in the navigation environment, and maintain a trajectory that conforms to the kinematic characteristics of surface vessels, thereby improving the safety and feasibility of surface vessel trajectory planning.

[0076] This application will now be further described in conjunction with the accompanying drawings and specific embodiments.

[0077] Figure 1 This is a flowchart illustrating a dynamic path planning method for surface vessels provided in an embodiment of this application. See also... Figure 1 The following is combined with Figure 1 This application provides a detailed description of the dynamic path planning method for surface vessels.

[0078] S1. Create a grid map based on the given environmental location information and determine the starting point and target point.

[0079] In this embodiment of the application, the given environmental map is first rasterized. The rasterization process includes the following steps S11-S13.

[0080] S11. Based on the environmental location information, represent known obstacles with "1" and free movement areas with "0" to obtain a binary two-dimensional raster map.

[0081] Considering that the vertical height of the vessels can be ignored in the surface vessel path planning experiment and the experiment is conducted on a two-dimensional plane, this application chooses to rasterize the given environmental map. Rasterization refers to replacing the environmental map with several equally sized squares to obtain a raster map. In surface vessel path planning, continuous map data can be converted into discrete raster data, which has advantages such as simplifying data processing, facilitating coordinate positioning, and adapting to different resolutions.

[0082] S12. Establish a Cartesian coordinate system using two adjacent edges of the 2D raster map as coordinate axes. The position of the raster node in the 2D raster map is represented by the coordinates (x, y, z) in the coordinate system. i ,y j ) indicates, see formula (1).

[0083] (x i ,y j )=[(i-1)·l+0.5l,(j-1)·l+0.5l] (1)

[0084] x i The x-coordinate of the grid node; y j is the ordinate of the grid node; l is the unit grid side length; i is the horizontal grid number; j is the vertical grid number; i and j are both greater than or equal to 1.

[0085] Figure 2 This is a schematic diagram of a rasterized map and raster position markers provided in an embodiment of this application. (Reference) Figure 2 When creating a grid map, black known obstacles are represented by the value "1", white free movement areas are represented by the value "0", S represents the starting point, and G represents the target point (i.e., the endpoint of the path planning). Of course, other characters can also be used to distinguish between obstacles and free movement areas, and this application does not limit this.

[0086] S13. Expand obstacles in the two-dimensional grid map whose area does not fill a grid cell until a grid cell is filled to obtain the grid map. In the grid map, the given starting point is denoted as S, and the given target point is denoted as G.

[0087] By using an expansion-filling method to round up obstacles in the grid, the safety of ships navigating on water can be increased.

[0088] S2. In the process of global path planning of the grid map using the improved A* algorithm, the total travel cost of each adjacent grid node of the current grid node is calculated by the improved heuristic function. The adjacent grid node with the minimum total travel cost is taken as the next current grid node and the search continues.

[0089] In this embodiment, the improved A* algorithm is optimized using an improved heuristic function and a path node turning angle reduction strategy, which will be described in detail later.

[0090] Specifically, step S2 includes:

[0091] S21. Start the search with the starting point as the current grid node, add each of the starting point's adjacent grid nodes to the list of nodes to be searched, and use the improved heuristic function H'(n) to calculate the total travel cost F(n) of all grid nodes in the list of nodes to be searched. The starting point is added to the list of nodes already searched as the current grid node.

[0092] Where F(n) is the total travel cost of the current grid node n, and G(n) is the travel cost from the current grid node n to the starting point, F(n) = G(n) + H'(n).

[0093] The method used to evaluate heuristic functions directly affects the efficiency and accuracy of the search algorithm. Commonly used evaluation methods include Euclidean distance, Manhattan distance, and Chebyshev distance. Figure 3 This is a schematic diagram illustrating different evaluation methods for a heuristic function provided in an embodiment of this application. In this embodiment, Euclidean distance is used as the evaluation method for the heuristic function.

[0094] Although the A* algorithm is relatively simple to implement and runs faster than other algorithms, it can remove a large number of useless nodes during the search process and obtain the optimal path in a short time. However, the planned path generally has drawbacks such as tortuous routes, large directional angles, low efficiency in complex environments, easy getting trapped in local optima, and not conforming to the motion characteristics of boats on water, making it difficult to apply in practice.

[0095] To make the planned global path more consistent with the actual navigation route of surface vessels, this application proposes an improved heuristic function for the A* algorithm. The improved heuristic function calculates the estimated navigation cost from the current grid node to the target point based on dynamic weight coefficients. The dynamic weight coefficients decrease as the distance between the current grid node and the starting point increases, and the dynamic weight coefficients also decrease as the number of globally known obstacles increases.

[0096] The following section provides a detailed explanation of the dynamic weighting strategy for improving heuristic functions.

[0097] The heuristic function H(n) uses Euclidean distance to estimate the travel cost from the current grid node to the target point. Its value is always less than or equal to the actual travel cost. The smaller the estimated value of H(n), the more nodes are added during the search, and the slower the search speed. Therefore, in the early stages of the search, increasing the weight of the H(n) function can improve the search efficiency of the A* algorithm, allowing it to quickly approach the target point. Towards the end of the search, when approaching the target point, the weight of the H(n) function is reduced. At this point, the estimated cost based on Euclidean distance is close to the actual cost, and the A* algorithm only searches for the best path to the target point without adding unnecessary nodes, enabling the search path to reach the target point as quickly as possible and complete the search task. Simultaneously, when there are many known obstacles globally and the environmental information is complex, appropriately reducing the weight coefficient of the heuristic function increases the search range and avoids getting trapped in local optima.

[0098] Based on the above dynamic weighting strategy, the improved heuristic function provided in this application is shown in formula (2).

[0099]

[0100] Where C1 is a constant term; dis(n) is the Euclidean distance from the current grid node n to the target point; dis(start) is the Euclidean distance from the starting point to the target point; and B is the number of known obstacles globally.

[0101] In formula (2), H(n) is the heuristic function used in the traditional A* algorithm, referred to as the initial heuristic function in this embodiment. H(n) represents the estimated travel cost from the current grid node n to the target point.

[0102] H(n) = sqrt[(X n -X g ) 2 +(Y n -Y g ) 2 (3)

[0103] In equation (3), (X) n ,Y n ) is the coordinate of the current grid node n, (X g ,Y g ) are the coordinates of the target point.

[0104] S22. Traverse the list of nodes to be searched, take the neighboring grid node with the smallest total travel cost F(n) as the next current grid node, add it to the list of searched nodes, and continue the search.

[0105] S3. Determine whether the target point has been found; if yes, obtain the global path found, use the path node turning angle reduction strategy to process the global path, obtain an optimized global path that satisfies the preset direction constraints and preset turning distance constraints, and determine the sub-target points of each navigation stage in the optimized global path; otherwise, return to step S2.

[0106] In this embodiment of the application, the global path obtained by the search is further optimized.

[0107] On the one hand, path optimization is performed to address the heeling phenomenon of surface vessels. Heeling is a floating state in which a vessel tilts from its upright position to either starboard or port, resulting in unequal drafts on the port and starboard sides. The heel angle caused by heeling is limited under various conditions. The general cause of heeling in surface vessels is that when a surface vessel traveling at a certain speed makes a large rudder angle turn, the height of the point of application of the heeling force on the hull is different, forming a heeling moment, which often produces heeling (e.g., ...). Figure 4 As shown, Figure 4 This is a schematic diagram of a heeling phenomenon provided in an embodiment of this application. Increased hull resistance and reduced speed, excessive heeling not only affects seaworthiness but also seriously threatens the navigation safety of surface vessels. To ensure the navigation safety of surface vessels and avoid large heeling angles during navigation, this application optimizes the navigation path to satisfy the directional constraints of formula (4) and the turning distance constraints of formula (5).

[0108]

[0109] In equation (4), θ is the perpendicular distance from the target point to the line pointing to the current bow. max θ is the maximum turning angle of a surface vessel. s To allow for a safe steering angle, x i and y i These are the x and y coordinates of the current grid node, respectively. i+1 and y i+1 These represent the x and y coordinates of the next grid node, respectively. The superscript h indicates the vertical distance, and the subscript i indicates the current state of the surface vessel.

[0110] 2R·sin(θ)<L i (5)

[0111] In equation (5), x i and y i Let L be the horizontal and vertical coordinates of the surface vessel, R be the turning radius of the surface vessel, θ be the angle between the line segments formed by connecting the current grid node to two adjacent grid nodes, and L be the vertical coordinates of the surface vessel. iThis represents the distance from the current grid node to the next grid node.

[0112] Traditional A* algorithm, as a global planning algorithm, plans paths composed of continuous grid lines. When searching for nearby obstacles, the planned paths often have too many and too large corners, which does not conform to the motion characteristics of surface vessels and poses a significant collision risk in practical applications. To reduce path curvature and ensure the navigation safety of surface vessels, this application comprehensively considers the motion characteristics of surface vessels and proposes a path node corner reduction strategy to reprocess the generated global path, improving the feasibility and safety of the planned path. Step S3 further includes:

[0113] S31. Determine whether the target point has been found. Otherwise, return to step S2. If the target point has been found, proceed to step S32.

[0114] S32. Obtain all raster nodes from the list of nodes to be searched, and establish a first set Dot = {S, ..., M}. n Let S be the starting point, M be the starting point, ..., G, and M be the starting point. n Let G represent the intermediate nodes of the global path and G be the target point. Iterate through all grid nodes in the first set `Dot{}`, keeping the grid nodes at both ends of the straight path, deleting redundant nodes collinear with the straight path, and saving the remaining grid nodes in the first set as the second set `Se-Dot{S, ..., N}`. i , ..., G}, Ni represents the raster nodes in the second set.

[0115] S33. In the second set Se-Dot{}, starting from the starting point S, traverse all grid nodes in the second set, and then traverse the current grid node N. i With the next grid node N i+1 Connect the short paths and form a path set Path{L1, L2, ..., Ln}. Traverse the path set and determine: if the distance between the current short path and the center of the nearest obstacle grid is less than or equal to the preset safe distance Ds, then delete the current short path and delete the isolated grid nodes in the second set that have no path connection.

[0116] For ease of understanding, this application provides a diagram illustrating the optimized path node effect. See also... Figure 5 The initial path contains too many bends and is close to obstacles. The optimized path obtained by the path node corner angle reduction strategy provided in this application is close to a straight line, and the corners are greatly reduced.

[0117] S34. Generate new nodes among the remaining grid nodes in the second set. Traverse the second set and determine: if the current grid node in the second set is connected to the adjacent new node without passing through an obstacle grid, then continue to connect the current grid node to the next grid node in the second set; if the current grid node is connected to the adjacent new node through an obstacle grid, then delete the current grid node and select the previous grid node as the current grid node, and repeat the above steps S32-S34.

[0118] S35. When the target point is reached, start from the target point and reverse the process to determine whether the remaining grid nodes in the second set meet the preset direction constraints (refer to formula (4)) and preset rotation distance constraints (refer to formula (5)) to obtain the optimized global path.

[0119] S36. For each navigation stage in the optimized global path, the end node of the path segment corresponding to the navigation stage in the optimized global path is taken as the sub-target point of the navigation stage.

[0120] S4. Based on the kinematic model of the surface vessel, collect velocity samples in the candidate velocity space set and predict the trajectory to obtain multiple predicted trajectories. Determine whether the multiple predicted trajectories meet the braking constraints of the kinematic model.

[0121] The Dynamic Window Approach (DWA) is a commonly used algorithm for local path planning. In practical path planning applications, unknown obstacle information is often involved. The DWA algorithm transforms the position constraint problem into a velocity constraint problem, and by fully considering the motion model of vessels on water, it transforms the collision avoidance problem into an optimal velocity execution problem, achieving local dynamic collision avoidance. The DWA algorithm generally includes three parts: kinematic model establishment, velocity sample acquisition, and trajectory evaluation function.

[0122] This step S4 includes the following steps S41-S43.

[0123] S41. Establish a kinematic model of a surface vessel.

[0124] To reduce the overall weight and manufacturing cost of surface vessels, common surface vessels often only have two propellers at the stern or a single rudder and single propeller, providing only pitch thrust and yaw torque. However, surface vessels experience three motions during navigation: sway, pitch, and yaw, making them inherently underactuated. A surface vessel kinematic model is a mathematical model describing the motion of a surface vessel. This model can be approximated by a single-mass kinematic model, which has certain linear velocity constraints, acceleration constraints, and steering angle constraints.

[0125] In this embodiment, the DWA algorithm is used. By establishing a kinematic model of the surface vessel, the candidate velocity space can be limited, feasible speeds can be adopted, and a reasonable trajectory of the surface vessel can be predicted. Figure 6 This is a kinematic model diagram of a surface vessel provided in an embodiment of this application.

[0126] like Figure 6 As shown, the two-dimensional kinematic model of a surface vessel in the geodetic coordinate system [Y] E OX E ] in: Y E The axis points due north; X E The x-axis points due east; the black rectangles represent obstacles. In the ship's coordinate system [yox], the x-axis points to the bow, and the y-axis is perpendicular to the x-axis; x(t) and y(t) are the x-coordinate and y-coordinate of the surface vessel at time t, respectively. Figure 6 The ψ(t) in the equations (6)-(8) is the same as the ψ in the following equations. t , representing the bow angle at time t. Figure 6 ψ(t+1) in the above equation (8) is also ψ in the following equation. t+1 Let represent the bow angle at time t+1; the bow angle is the angle between true north (0 degrees) and the bow. v(t) is the linear velocity of the surface vessel at time t; ω(t) is the bow roll rate of the surface vessel at time t; Δt is the time difference between time t and t+1. The coordinates of the surface vessel in the coordinate system at time t+1 are:

[0127] x(t+1)=x(t)+v(t)Δtcos(ψ t (6)

[0128] y(t+1)=y(t)+v(t)Δtsin(ψ t (7)

[0129] ψ t+1 =ψ t +ω(t)Δt (8)

[0130] S42. In the candidate velocity space set of the kinematic model, velocity samples are collected to determine feasible velocities; based on the feasible velocities, trajectory prediction is performed to obtain multiple predicted trajectories. The candidate velocity space set is subject to constraints on the maximum values ​​of linear velocity and angular velocity, acceleration and deceleration constraints, and braking constraints.

[0131] In this embodiment, the DWA algorithm predicts the navigation trajectory of a surface vessel by repeatedly sampling from a candidate velocity space set based on the vessel's kinematic model. When a surface vessel is navigating, the candidate velocity space set is simultaneously limited by its own motion capabilities and constrained by obstacles in the environment.

[0132] The limitations of one's own movement ability and the constraints of obstacles in the environment specifically include:

[0133] (1) Maximum constraints on linear velocity and angular velocity V l :

[0134] The velocities in the candidate velocity space set should satisfy the limits of the surface vessel's own motion capabilities and must not exceed those limits.

[0135] V l ={(v,ω)|v∈[v min ,v max ],ω∈[ω min ,ω max ]} (9)

[0136] In equation (9): (v, ω) represent the linear velocity and angular velocity on the predicted trajectory, where v is the linear velocity and ω is the angular velocity. min ,v max ], is the preset linear velocity capability range, [ω min ,ω max ]} is the preset angular velocity capability range.

[0137] (2) Acceleration and deceleration capability constraints V m :

[0138] The motion control capabilities of surface vessels are limited, influenced not only by their own hull structure and external environmental factors, but also by the limits of rudder angle, the rated power of their propulsion systems, and the bounded rates of change of their linear and angular acceleration. Therefore, the current dynamic window constraint V in the candidate velocity set... m for:

[0139]

[0140] In formula (10): a vdmax This represents the maximum linear deceleration; a vimax This represents the maximum linear acceleration; a ωdmax This represents the maximum value of the angular deceleration; a ωimax This represents the maximum value of angular acceleration; v n ω represents the current dynamic window linear velocity of the surface vessel; n This represents the current dynamic window angular velocity of the surface vessel.

[0141] (3) Braking capacity constraint V n Under the conditions of equation (10), ensure that surface vessels do not collide with obstacles in the environment during navigation:

[0142]

[0143] In equation (11), (v,ω) represent the linear velocity and angular velocity on the predicted trajectory, where v is the linear velocity, ω is the angular velocity, and a is the linear velocity. vdmax This represents the maximum linear deceleration; a ωdmax ω is the maximum value of angular deceleration; dist(v,ω) is the minimum distance between the predicted trajectory and the obstacle under the corresponding dynamic window linear velocity and angular velocity.

[0144] In summary, the dynamic velocity window of surface vessels can be summarized as the constraint on the maximum values ​​of linear velocity and angular velocity V. l Acceleration and deceleration capability constraints V m Braking constraint V n The intersection of the three V o :

[0145] V o ={V l ∩V m ∩V n} (12)

[0146] S43. Determine whether multiple predicted trajectories satisfy the braking constraints of the kinematic model (refer to formula (11)). If yes, execute S5; otherwise, return to S42.

[0147] In this embodiment, the DWA algorithm is used to collect multiple sets of velocity samples from the candidate velocity space set. Then, based on the kinematic model of the surface vessel, multiple possible trajectories of the surface vessel over a future period are predicted. Each trajectory is traversed, and the obtained dist(v,ω) is substituted into the above constraints for verification. If it is not feasible, it is discarded.

[0148] S5. For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point. The evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function to determine the optimal path.

[0149] The factors influencing the improved trajectory evaluation function include: the shortest distance from the end of the current predicted trajectory to the optimized global path and the magnitude of the turning angular velocity of the surface vessel. The improved trajectory evaluation function also uses the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment as a constraint.

[0150] In this embodiment, for each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function, and the predicted path with the largest evaluation function value is determined as the optimal path.

[0151] This application provides a schematic diagram of the navigation path of a surface vessel during its navigation phase. See also... Figure 7In a two-dimensional grid map, vessels on the water generally travel along the global path planned globally. Through local planning, they can avoid unknown obstacles in real time, and use sub-target points "×" as guides for local path planning; "○" is the starting point and "△" is the target point.

[0152] To improve the coupling between the improved global planning A* algorithm and the local planning DWA algorithm, and to enhance the overall performance of the fusion algorithm, this application introduces a global path deviation evaluation factor into the trajectory evaluation function of the DWA algorithm. This ensures that surface vessels have good tracking performance on the global path provided by the improved A* algorithm, and that they can still successfully complete local obstacle avoidance using the DWA algorithm when unknown obstacles appear near the global path. Furthermore, considering the rudder angle limits of surface vessels and the finite turning angles, and that excessively large turning angles are not conducive to normal navigation, a turning angular velocity evaluation factor is added to the trajectory evaluation function to make the trajectory closely match the kinematic characteristics of the surface vessel. Therefore, the surface vessel path planning method provided in this application can also be called a fusion algorithm of improved A* and DWA (hereinafter referred to as the fusion algorithm).

[0153] Specifically, the improved trajectory evaluation function G'(v,ω) is expressed as:

[0154] G'(v,ω)=α·Heading(v,ω)+β·Dist(v,ω)+γ·

[0155] Velocity(v,ω)+δ·Dist path (v,ω)+ε·Pal(v,ω)(13)

[0156]

[0157] Pal(v,ω)=(|ω max |-|ωΔt|) / |ω max | (15)

[0158] Where α, β, γ, δ and ε are weighting coefficients; Heading(v,ω) is the heading evaluation sub-function, representing the angular deviation between the surface vessel and the target point when it reaches the end of the predicted trajectory; Dist(v,ω) is the obstacle threat evaluation sub-function, representing the distance between the end of the current predicted trajectory and the nearest obstacle; Velocity(v,ω) is the speed evaluation sub-function, representing how fast the speed sample used by the current predicted trajectory reaches the target point under the premise of safe driving.

[0159] Among them, Dist path(v,ω) is the global path deviation evaluation factor, representing the shortest distance from the end of the current predicted trajectory to the optimized global path; Pal(v,ω) is the turning angular velocity evaluation factor, representing the magnitude of the turning angular velocity of the surface vessel; dist t Represents the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment; turning distance constraint L θ = 2R·sin(θ), where R is the turning radius of the boat on the water, and θ is the angle between the line segments formed by connecting the current grid node to each of its two adjacent grid nodes. L θ =2R·sin(θ), which is the turning distance constraint in equation (5), is used as the criterion for Dist. path (v,ω) Critical conditions for function values.

[0160] S6. Determine if the surface vessel has reached the target point. If yes, obtain the final path; otherwise, return to S4.

[0161] The improved A* algorithm used in this application performs global path planning based on known static environmental information, planning a reasonable global route, but it cannot avoid unknown obstacles in the environment. While the DWA algorithm, as a local path planning algorithm, has good local obstacle avoidance capabilities, it often gets stuck in local optima due to the lack of global guidance, resulting in excessively long and winding actual driving paths, making it difficult to obtain the ideal optimal path. Therefore, this application uses the set of grid nodes on the optimized global path obtained from the improved A* algorithm as a global factor, guiding the DWA algorithm in local planning in the form of sub-target points, so that the planned final path can achieve local obstacle avoidance while ensuring global optima.

[0162] To better illustrate the technical effects achieved by the technical solution of this application, this application provides a series of experimental data, charts and figures for auxiliary explanation, mainly including the following three parts.

[0163] Part 1: Comparative simulation experiments of the improved A* algorithm in a static environment.

[0164] In a known static environment (referring to a water surface environment), the improved A* algorithm provided in this application is compared with the traditional eight-direction search A* algorithm and the ant colony algorithm (ACO) in terms of total path length, number of turns, total turning angle, and time efficiency through simulation experiments.

[0165] For example, consider a 20×20 grid map with a minimum grid size of 3m×3m. In the map: dotted lines represent paths planned using the A* algorithm; solid lines represent paths planned using the improved A* algorithm; dashed lines represent routes planned using the ACO algorithm; black grids represent known obstacles; white grids represent navigable areas; "○" represents the starting point; and "△" represents the target point. The relevant parameters are set as follows: C1 = 2, θ s=10°, θ max =60°, R min =14m, safety distance Ds=3m. (Refer to formulas (1)-(5) for parameter description)

[0166] Figure 8 This is a comparison chart of global planning simulation results provided in this application. Figure 8 Part (a) shows a comparison of global planning results in a simple environment. Figure 8 Part (b) compares the global planning results in complex environments. Table 1 compares the performance of the improved A* algorithm provided in this application with the traditional A* algorithm. Figure 8 As shown in Table 1, in both simple and complex environment maps, the improved A* algorithm proposed in this application, compared with the traditional A* algorithm, improves search efficiency by dynamically weighting the heuristic function, reducing planning time by 12.9% and 13.6% respectively. By introducing a path node turning angle reduction strategy to optimize the planned path, the path length is shortened by 4.1% and 2.0% respectively, ensuring global optimum. The total turning angle is reduced by 79.4% and 44.6% respectively, with fewer turns and zero path obstacle encounters, which is more conducive to the actual navigation of surface vessels, proving the effectiveness of the improved strategy. Observation and analysis show that the ACO algorithm's planned path data is worse than the improved A* algorithm in all aspects, indicating that the improved A* algorithm is clearly superior to the ACO algorithm. Through comparison, the improved A* algorithm effectively reduces path tortuosity, improving the feasibility and safety of surface vessel navigation.

[0167] Table 1: Performance Comparison of Improved A* Algorithm and Traditional A* Algorithm

[0168]

[0169] Part Two: Simulation Experiment of Fusion Algorithm Track.

[0170] After verifying the effectiveness of the improved A* algorithm, this application further verifies the performance of the fusion algorithm that combines the improved A* algorithm and DWA.

[0171] For example, the simulation experiment was conducted in a complex map environment: Consider a 20×20 grid map with a minimum grid size of 10m×10m. Simulation experiments were conducted under the following five conditions, with parameters set as follows: the initial orientation angle of the surface vessel is π / 6 rad deviating from the x-axis towards the y-axis; the map contains unknown stationary obstacles and unknown moving obstacles; "×" represents a sub-target point guiding local path planning; "○" represents the starting point with coordinates (1.5, 1.5); "△" represents the target point with coordinates (20.5, 20.5). α = 0.1, β = 0.2, γ = 0.2, δ = 0.3, ε = 0.2, v max =12m / s, avimax =2m / s2, ω max =6 / πrad / s, a ωimax =2π / 9rad / s2, linear velocity resolution =0.1m / s, angular velocity resolution =π / 180rad / s. (Refer to formulas (6)-(15) for parameter description)

[0172] To verify the obstacle avoidance performance of the fusion algorithm provided in this application during the path planning process of surface vessels, experiments were conducted in three scenarios: a single random unknown stationary obstacle (scenario 1), multiple random unknown stationary obstacles (scenario 2), and a random unknown stationary obstacle combined with an unknown moving obstacle (scenario 3).

[0173] Figure 9 This is a schematic diagram of the simulation process of the fusion algorithm under Case 1 provided in this application. Figure 10 This is a schematic diagram of the simulation process of the fusion algorithm under Case 2 provided in this application. Figure 11 This is a schematic diagram of the simulation process of the fusion algorithm under case 3 provided in this application.

[0174] Figure 9 In the diagram: dashed lines represent the globally planned path; solid lines (curves) represent the actual navigation trajectory of vessels on the water; dark gray squares represent unknown stationary obstacles; and red "×" marks represent sub-target points provided by the global path. (a) represents encountering unknown obstacles, (b) represents avoiding unknown obstacles, and (c) represents reaching the target point.

[0175] Figure 10 In the diagram: dashed lines represent the globally planned path; solid lines (curves) represent the actual navigation trajectory of vessels on the water; dark gray squares represent unknown stationary obstacles; and red "×" marks represent sub-target points provided by the global path. (a) represents avoiding unknown obstacles, (b) represents continuously avoiding unknown obstacles, and (c) represents reaching the target point.

[0176] Figure 11 In the diagram: dashed lines represent the globally planned path; solid lines (curves) represent the actual navigation trajectory of vessels on the water; larger dark gray squares represent unknown stationary obstacles; smaller dark gray squares represent unknown moving obstacles, and short straight solid lines represent the movement routes of unknown moving obstacles; red "×" marks sub-target points provided by the global path. (a) represents encountering unknown moving obstacles, (b) represents avoiding unknown moving obstacles, and (c) represents reaching the target point.

[0177] pass Figure 9 , Figure 10 , Figure 11It can be concluded that: when the global path does not pass through unknown obstacles, the surface vessel's trajectory changes smoothly and deviates almost from the global path; when the global path approaches or passes through unknown obstacles, the surface vessel can effectively avoid the unknown obstacles and continue to travel towards the target point with a smooth trajectory; when the surface vessel approaches an unknown moving obstacle, the surface vessel can change course in advance to avoid the unknown moving obstacle. Simulation results demonstrate the feasibility and effectiveness of the fusion algorithm provided in this application.

[0178] Part Three: Comparison Simulation Experiment of Fusion Algorithms

[0179] To verify the superiority of the fusion algorithm provided in this application over traditional global planning and local planning algorithms, the trajectories planned by the fusion algorithm and those planned by the ordinary global algorithm were compared with those planned by the ordinary local algorithm under two different environmental maps. The ordinary global planning algorithm used the improved ant colony algorithm (IACO), and the ordinary local planning algorithm used the improved artificial potential field algorithm (IAPF).

[0180] Table 2 is a performance comparison table of the fusion algorithm of this application with other algorithms. Figure 12 This application provides a given location Figure 1 Comparison of planned flight paths. Figure 13 This application provides a given location Figure 2 Comparison of planned flight paths. (Given location) Figure 1 Let it be Map1, given the location Figure 2 (Referred to as Map2)

[0181] Figure 12 and Figure 13 In the diagram, the solid path represents the fusion algorithm provided in this application, the dashed path represents the IACO algorithm, and the dotted path represents the IAPF algorithm.

[0182] Table 2: Performance Comparison of the Fusion Algorithm in this Application with Other Algorithms

[0183]

[0184] Depend on Figure 12 , Figure 13As shown in Table 2, in the absence of unknown obstacles, although the ordinary global planning algorithm has a shorter planned path length and a smaller total turning angle, it cannot achieve dynamic collision avoidance due to the lack of local planning functionality, resulting in 5 and 7 obstacle collisions respectively, which cannot guarantee the navigation safety of surface vessels. The ordinary local planning algorithm has 0 obstacle collisions and can achieve dynamic collision avoidance, but it lacks global factor guidance, resulting in poor target orientation, excessively large total turning angles, and frequent turns, leading to a long and tortuous final trajectory, low navigation efficiency, and high navigation risk. The fusion algorithm proposed in this paper has 0 obstacle collisions, a trajectory length that is not much different from that of the ordinary global planning algorithm, and a total turning angle that is much smaller than that of the ordinary local planning algorithm. It can guarantee the global optimal navigation trajectory and achieve dynamic collision avoidance, thus having higher safety.

[0185] Finally, to verify the feasibility of the fusion algorithm proposed in this application in practical applications, a water surface vessel trajectory planning experiment was conducted on a certain day near the coast of City A. Figure 14 This is an overhead view of the verification results of the actual situation in the sea area. Figure 14 Part (a) is a map of the sea area near City A on a certain day. Several ships are moored in this sea area. In order to reflect the actual navigation of the ships on the water, unknown stationary obstacles and unknown moving obstacles are assigned from the known stationary obstacles; the green "○" is the starting point; the red "△" is the target point. Figure 14 Part (b): The dashed line represents the final trajectory of the unknown moving obstacle; the solid line represents the planned trajectory of the surface vessel. Experimental results show that the fusion algorithm proposed in this application can guarantee that the navigation trajectory of the surface vessel is globally optimal, the path is smooth, and real-time obstacle avoidance is feasible.

[0186] Therefore, the technical solution itself has at least the following technical effects:

[0187] To address the issues of low efficiency, numerous inflection points, and poor practical performance of the traditional A* algorithm, this paper proposes an improvement strategy that comprehensively considers the motion characteristics of surface vessels. This strategy enhances the search efficiency of the A* algorithm and reduces path tortuosity. Furthermore, a dynamic window method is introduced and improved, employing a planning approach that integrates the improved A* and DWA algorithms to overcome the limitations of existing path planning algorithms.

[0188] It can achieve dynamic collision avoidance while ensuring the global optimal trajectory of surface vessels, maintaining high navigation efficiency and reducing navigation risks. Moreover, the planned trajectory is closer to the actual trajectory of surface vessels, which is significantly better than other comparative algorithms, proving the superiority of the fusion algorithm in this paper.

[0189] It has practical application value, and can be used not only for path planning of single surface vessels, but is also expected to be applied to path planning and control of multi-surface vessel formations.

[0190] This application also provides a schematic diagram of a surface vessel path planning device, for reference. Figure 15 The device includes a global planning module 1501 and a local planning module 1502, wherein the global planning module 1501 is used for:

[0191] S1. Create a grid map based on the given environmental location information and determine the starting point and target point;

[0192] S2. In the process of global path planning of the grid map using the improved A* algorithm, the total travel cost of each of the adjacent grid nodes of the current grid node is calculated by improving the heuristic function. The adjacent grid node with the smallest total travel cost is taken as the next current grid node and the search continues.

[0193] The improved heuristic function calculates the estimated travel cost from the current grid node to the target point based on a dynamic weight coefficient. The dynamic weight coefficient decreases as the distance between the current grid node and the starting point increases, and the dynamic weight coefficient decreases as the number of globally known obstacles increases.

[0194] S3. Determine whether the target point has been found; if yes, obtain the global path found, process the global path using the path node turning angle reduction strategy, obtain an optimized global path that satisfies the preset direction constraints and preset turning distance constraints, and determine the sub-target points of each navigation stage in the optimized global path; otherwise, return to step S2.

[0195] The local planning module 1502 is used for:

[0196] S4. Based on the kinematic model of the surface vessel, collect velocity samples in the candidate velocity space set and predict the trajectory to obtain multiple predicted trajectories. Determine whether the multiple predicted trajectories meet the braking constraints of the kinematic model.

[0197] S5. For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, and the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function to determine the optimal path.

[0198] The influencing factors of the improved trajectory evaluation function include: the shortest distance from the end of the current predicted trajectory to the optimized global path, and the magnitude of the turning angular velocity of the surface vessel; the improved trajectory evaluation function also uses the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment as a constraint.

[0199] S6. Determine whether the surface vessel has reached the target point. If yes, obtain the final path; otherwise, return to S4.

[0200] It should be noted that the surface vessel path planning device provided in the above embodiments is only illustrated by the division of the above functional modules when implementing the corresponding steps. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the surface vessel path planning device provided in the above embodiments and the surface vessel path planning method described above belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0201] The surface vessel path planning method provided in this application can be executed by a computing device. Figure 16 This is a schematic diagram of the hardware structure of a computing device provided in an embodiment of this application, such as... Figure 16 As shown, the computing device includes a processor 1601, a memory 1602, a bus 1603, and a computer program stored in the memory 1602 and executable on the processor 1601. The processor 1601 includes one or more processing cores. The memory 1602 is connected to the processor 1601 via the bus 1603 and is used to store program instructions. When the processor executes the computer program, it implements all or part of the steps in the above-described method embodiments provided in this application.

[0202] Furthermore, as an executable solution, the aforementioned computing device can be a computer unit, which may be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer unit may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the above-described computer unit structure is merely an example and does not constitute a limitation on the computer unit. It may include more or fewer components, or combine certain components, or different components. For example, the computer unit may also include input / output devices, network access devices, buses, etc., which are not limited in this application embodiment.

[0203] Furthermore, as an executable solution, the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. The processor is the control center of the computer unit, connecting various parts of the entire computer unit via various interfaces and lines.

[0204] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the computer unit by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, SmartMediaCard (SMC), Secure Digital (SD) card, Flash Card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0205] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the methods described in the embodiments of this application.

[0206] If the modules / units integrated in the computer unit are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

[0207] Although this application has been specifically shown and described in conjunction with preferred embodiments, those skilled in the art should understand that various changes in form and detail may be made to this application without departing from the spirit and scope of this application as defined by the appended claims, and all such changes shall be within the scope of protection of this application.

Claims

1. A method for planning the path of surface vessels, characterized in that, The method includes: S1. Create a grid map based on the given environmental location information and determine the starting point and target point; S2. In the process of global path planning of the grid map using the improved A* algorithm, the total travel cost of each of the adjacent grid nodes of the current grid node is calculated by improving the heuristic function. The adjacent grid node with the smallest total travel cost is taken as the next current grid node and the search continues. The improved heuristic function calculates the estimated travel cost from the current grid node to the target point based on a dynamic weight coefficient. The dynamic weight coefficient decreases as the distance between the current grid node and the starting point increases, and the dynamic weight coefficient decreases as the number of globally known obstacles increases. S3. Determine whether the target point has been found; if yes, obtain the global path found, process the global path using the path node turning angle reduction strategy, obtain an optimized global path that satisfies the preset direction constraints and preset turning distance constraints, and determine the sub-target points of each navigation stage in the optimized global path; otherwise, return to step S2. S4. Based on the kinematic model of the surface vessel, collect velocity samples in the candidate velocity space set and predict the trajectory to obtain multiple predicted trajectories. Determine whether the multiple predicted trajectories meet the braking constraints of the kinematic model. S5. For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, and the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function to determine the optimal path. The influencing factors of the improved trajectory evaluation function include: the shortest distance from the end of the current predicted trajectory to the optimized global path, and the magnitude of the turning angular velocity of the surface vessel; the improved trajectory evaluation function also uses the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment as a constraint. S6. Determine whether the surface vessel has reached the target point. If yes, obtain the final path; otherwise, return to step S4.

2. The method for planning the path of surface vessels according to claim 1, characterized in that, Step S2 includes: S21. Starting the search with the starting point as the current grid node, add each of the adjacent grid nodes of the starting point to the list of nodes to be searched, and use the improved heuristic function H'(n) to calculate the total travel cost F(n) of all grid nodes in the list of nodes to be searched. The starting point is added to the list of searched nodes as the current grid node. in, C1 is a constant term; dis(n) is the Euclidean distance from the current grid node n to the target point; dis(start) is the Euclidean distance from the starting point to the target point; B is the number of known obstacles globally; H(n) is the initial heuristic function, representing the estimated travel cost from the current grid node n to the target point: H(n) = sqrt[(X n -X g ) 2 +(Y n -Y g ) 2 ]; where, (X n ,Y n ) is the coordinate of the current grid node n, (X g ,Y g () are the coordinates of the target point; F(n) = G(n) + H'(n), where F(n) is the total travel cost of the current grid node n, and G(n) is the travel cost from the current grid node n to the starting point; S22. Traverse the list of nodes to be searched, take the neighboring grid node with the smallest total travel cost F(n) as the next current grid node, add it to the list of searched nodes, and continue the search.

3. The method for planning the path of surface vessels according to claim 2, characterized in that, Step S3 includes: S31. Determine whether the target point has been found. Otherwise, return to step S2. If the target point has been found, proceed to step S32. S32. Obtain all grid nodes from the list of nodes to be searched, establish a first set, traverse all grid nodes in the first set, retain the grid nodes at both ends of the straight path, delete redundant nodes that are collinear with the straight path, and save the remaining grid nodes in the first set as a second set. S33. In the second set, starting from the starting point, traverse all grid nodes in the second set, connect the current grid node to the next grid node to form a short path, and form a path set by combining the short paths; traverse the path set and determine: if the distance between the current short path and the center of the nearest obstacle grid is less than or equal to the preset safety distance Ds, then delete the current short path and delete the isolated grid nodes in the second set that are not connected by a path. S34. Generate new nodes among the remaining grid nodes in the second set, traverse the second set and determine: if the current grid node in the second set is connected to the adjacent new node without passing through the obstacle grid, then continue to connect the current grid node to the next grid node in the second set; if the current grid node is connected to the adjacent new node through the obstacle grid, then delete the current grid node, select the previous grid node as the current grid node, and repeat the above steps S32-S34. S35. When the target point is reached, starting from the target point, reverse the process and determine one by one whether the remaining grid nodes in the second set meet the preset direction constraints and preset rotation distance constraints to obtain the optimized global path. The directional constraint is expressed as follows: θ is the perpendicular distance from the target point to the line pointing to the current bow. max θ is the maximum turning angle of a surface vessel. s To allow for a safe steering angle, x i and y i These are the x and y coordinates of the current grid node, respectively. i+1 and y i+1 These represent the x and y coordinates of the next grid node, respectively. The gyration distance constraint is expressed as: 2R·sin(θ)<L i R is the turning radius of the vessel on the water, θ is the angle between the line segments formed by connecting the current grid node to each of its two adjacent grid nodes, and L is the turning radius of the vessel on the water. i This represents the distance from the current grid node to the next grid node. S36. For each navigation stage in the optimized global path, the end node of the path segment corresponding to the navigation stage in the optimized global path is taken as the sub-target point of the navigation stage.

4. The method for planning the path of surface vessels according to claim 1, characterized in that, Step S4 includes: S41. Establish the kinematic model of the surface vessel; S42. In the candidate velocity space set of the kinematic model, velocity samples are collected to determine feasible velocities; based on the feasible velocities, trajectory prediction is performed to obtain multiple predicted trajectories. The candidate velocity space set is subject to constraints on the maximum values ​​of linear velocity and angular velocity, acceleration and deceleration constraints, and braking constraints. S43. Determine whether the multiple predicted trajectories satisfy the braking constraints of the kinematic model. If yes, proceed to step S5; otherwise, return to step S42. The braking constraint is used to ensure that the surface vessel does not collide with obstacles in the environment during its operation, and is expressed as follows: (v,ω) represents the linear velocity and angular velocity on the predicted trajectory, where v is the linear velocity, ω is the angular velocity, and a is the linear velocity. vdmax This represents the maximum linear deceleration; a ωdmax v is the maximum value of angular deceleration; n ω represents the current dynamic window linear velocity of the surface vessel, and dist(v,ω) represents the minimum distance between the predicted trajectory and the obstacle under the corresponding dynamic window linear velocity and angular velocity.

5. The method for planning the path of surface vessels according to claim 1, characterized in that, Step S5 includes: For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, and the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function. The predicted path with the largest evaluation function value is determined as the optimal path. The improved trajectory evaluation function G'(v,ω) is expressed as follows: G'(v,ω)=α·Heading(v,ω)+β·Dist(v,ω)+γ·Velocity(v,ω)+δ·Dist path (v,ω)+ε·Pal(v,ω); Pal(v,ω)=(|ω max |-|ωΔt|) / |ω max |; α, β, γ, δ, and ε are weighting coefficients; Heading(v,ω) is the heading evaluation subfunction, representing the angular deviation between the surface vessel and the target point when it reaches the end of the predicted trajectory; Dist(v,ω) is the obstacle threat evaluation subfunction, representing the distance between the end of the current predicted trajectory and the nearest obstacle; Velocity(v,ω) is the speed evaluation subfunction, representing how quickly the speed sample used by the current predicted trajectory reaches the target point under the premise of safe driving. Dist path (v,ω) is the global path deviation evaluation factor, representing the shortest distance from the end of the current predicted trajectory to the optimized global path; Pal(v,ω) is the turning angular velocity evaluation factor, representing the magnitude of the turning angular velocity of the surface vessel; dist t Represents the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment; turning distance constraint L θ =2R·sin(θ), where R is the turning radius of the boat on the water, and θ is the angle between the line segments formed by connecting the current grid node in the predicted trajectory and two adjacent grid nodes in the predicted trajectory.

6. The method according to claim 1, characterized in that, S1 includes: S11. Based on the environmental location information, known obstacles are represented by "1" and free movement areas are represented by "0" to obtain a binary two-dimensional grid map; S12. Establish a Cartesian coordinate system using two adjacent edges in the two-dimensional grid map as coordinate axes. The position of the grid node in the two-dimensional grid map is represented by the coordinates (x, y) in the coordinate system. i ,y j )express; (x i ,y j )=[(i-1)·l+0.5l,(j-1)·l+0.5l] x i The x-coordinate of the grid node; y j is the ordinate of the grid node; l is the unit grid side length, i is the horizontal grid number, j is the vertical grid number, and i and j are both greater than or equal to 1; S13. Expand the area of ​​obstacles in the two-dimensional grid map that does not fill a grid cell until a grid cell is filled to obtain the grid map. In the grid map, the given starting point is denoted as S and the given target point is denoted as G.

7. A path planning device for surface vessels, characterized in that, The device includes a global planning module and a local planning module, wherein the global planning module is used for: S1. Create a grid map based on the given environmental location information and determine the starting point and target point; S2. In the process of global path planning of the grid map using the improved A* algorithm, the total travel cost of each of the adjacent grid nodes of the current grid node is calculated by improving the heuristic function. The adjacent grid node with the smallest total travel cost is taken as the next current grid node and the search continues. The improved heuristic function calculates the estimated travel cost from the current grid node to the target point based on a dynamic weight coefficient. The dynamic weight coefficient decreases as the distance between the current grid node and the starting point increases, and the dynamic weight coefficient decreases as the number of globally known obstacles increases. S3. Determine whether the target point has been found; if yes, obtain the global path found, process the global path using the path node turning angle reduction strategy, obtain an optimized global path that satisfies the preset direction constraints and preset turning distance constraints, and determine the sub-target points of each navigation stage in the optimized global path; otherwise, return to step S2. The local planning module is used for: S4. Based on the kinematic model of the surface vessel, collect velocity samples in the candidate velocity space set and predict the trajectory to obtain multiple predicted trajectories. Determine whether the multiple predicted trajectories meet the braking constraints of the kinematic model. S5. For each navigation stage of the predicted trajectory that satisfies the braking constraint, the corresponding sub-target point is used as the target point, and the evaluation function value of the predicted trajectory is calculated using the improved trajectory evaluation function to determine the optimal path. The influencing factors of the improved trajectory evaluation function include: the shortest distance from the end of the current predicted trajectory to the optimized global path, and the magnitude of the turning angular velocity of the surface vessel; the improved trajectory evaluation function also uses the shortest distance between the surface vessel and the center point of the nearest unknown obstacle at the current moment as a constraint. S6. Determine whether the surface vessel has reached the target point. If yes, obtain the final path; otherwise, return to S4.

8. A computing device, characterized in that, It includes a memory and a processor, the memory storing at least one program, the at least one program being executed by the processor to implement the surface vessel path planning method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The storage medium stores at least one program, which is executed by a processor to implement the surface vessel path planning method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Systems and methods for path determination

    CA3028703A1

  • Route planning method and terminal equipment for unmanned ships, and storage medium

    CN109974708A