A path planning method for offshore inspection AUV

Through the combination of the improved RRT algorithm and DWA algorithm, combined with marker space expansion, path expansion and adaptive sub-target point selection strategies, the problems of high computational overhead and local minima in offshore AUV path planning are solved, and the problem of complex dynamic obstacles is achieved. Efficient path planning in physical environments.

CN115454107BActive Publication Date: 2024-10-15HARBIN ENG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211100761.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2024-10-15
Estimated Expiration
2042-09-08

Smart Images

  • Figure CN115454107B_ABST
    Figure CN115454107B_ABST
Patent Text Reader

Abstract

A path planning method for offshore inspection AUVs relates to the path planning field of autonomous underwater vehicles (AUVs). The present invention aims to solve the problem that the existing offshore inspection AUV path planning method still has large computational overhead and is very easy to fall into local minimum values, resulting in the inability to complete path planning in offshore environments with complex dynamics and large obstacles. The present invention includes: Step 1, initializing the map space V, the random tree space T, the expansion step size l, the AUV kinematic parameters, the adaptive sub-target point selection threshold k, setting the starting point x rand , end point x goal ; Step 2, using the parameter values ​​initialized in step 1, the RRT algorithm is used to obtain the planned global path; Step 3, using the AUV kinematic parameters as constraints, the DWA algorithm is used to process the planned global path obtained in step 2, so that the AUV inspection path can achieve dynamic obstacle avoidance while meeting the kinematic constraints. The present invention is used for path planning of inspection AUVs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of path planning of autonomous underwater vehicles (AUVs), and in particular to a path planning method for offshore inspection AUVs. Background Art

[0002] Autonomous underwater vehicles (AUVs) play an important role in underwater search and rescue, terrain exploration, resource detection and other fields, and autonomous path planning is one of the core technologies of AUVs, which determines the efficiency and safety of AUVs in performing tasks. In the offshore environment, due to the presence of a large number of reefs, artificial buildings and sailing fishing boats, the navigation of AUVs becomes extremely complicated, and the corresponding requirements for the speed of path planning are also higher.

[0003] At present, the Rapid-exploration Random Tree (RRT) algorithm is widely used to solve path planning problems. However, the RRT algorithm has problems such as blind expansion, high path redundancy, and uneven path. The main improvement directions are to increase the algorithm's guidance and improve the path feasibility. Improvements to increase the algorithm's guidance include Liu Chengju's proposal in "RoboCup Robot Dynamic Path Planning Based on Improved RRT Algorithm" to select the target point with a certain probability during the expansion phase, and increase the gravity component of other sampled points to make them biased towards the target point. At the same time, the path cache strategy and dynamic expansion strategy are used to solve the dynamic collision avoidance problem. Improvements to improve path feasibility include Yin Gaoyang's proposal in "UAV Trajectory Planning Based on Improved RRT Algorithm" to add kinematic constraints in the node expansion phase and track distance to increase the path feasibility and shorten the distance. The above-mentioned algorithms have high computational overhead and are not suitable for path planning problems with complex dynamic obstacles in offshore environments. Dynamic Window Approach (DWA) is an online planning algorithm. It discretizes the performance of the AUV at the next moment into a series of trajectories that meet the kinematic constraints of the AUV based on the current state of the AUV, the external environment, and the performance of the AUV itself. Then, according to the scores of each trajectory given by the evaluation function, the motion state of the trajectory with the highest score among many trajectories is selected as the motion parameter of the AUV at the next moment. The evaluation function consists of three parts: the heading angle score, the safety distance score, and the speed score. The heading angle score is higher the more it is toward the target point, the safety distance score is higher the longer the sailing distance is when it sails at the current state speed until it encounters an obstacle, and the speed score is higher the faster the sailing speed is. However, the DWA algorithm can only evaluate the transportation parameters within the range of the window size, so it is very easy to fall into the local minimum when planning the path in some small spaces, resulting in the inability to complete the path planning when encountering larger obstacles. Summary of the invention

[0004] The purpose of the present invention is to solve the problem that the existing path planning method for offshore inspection AUV still has high computational overhead and is very easy to fall into the local minimum, resulting in the inability to complete path planning in the offshore environment with complex dynamics and large obstacles, and proposes a path planning method for offshore inspection AUV.

[0005] The specific process of a path planning method for offshore inspection AUV is as follows:

[0006] Step 1: Initialize the map space V, random tree space T, expansion step size l, AUV kinematic parameters, adaptive sub-target point selection threshold k, and set the starting point x rand , end point x goal ;

[0007] Step 2: Using the parameter values ​​initialized in step 1, the RRT algorithm is used to obtain the planned global path;

[0008] The RRT algorithm is an improved RRT algorithm, which specifically includes:

[0009] First, a random number is generated, and the sampling point is determined to be an end point or a random point according to the random number, thereby generating an expansion path;

[0010] Then, collision detection is performed on the newly generated extension paths, and the extension paths that do not produce collisions form a tree from the starting point to the end point;

[0011] Finally, starting from the end point, search for the parent node of the node in sequence until the starting point is found, obtain a global path, and then remove the redundant nodes on the global path to obtain the planned global path;

[0012] Step 3: Taking the AUV kinematic parameters as constraints, the DWA algorithm is used to process the planned global path obtained in step 2 to obtain the AUV inspection path to achieve dynamic obstacle avoidance.

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

[0014] The present invention proposes an improved RRT algorithm, which includes a marking space expansion strategy, that is, setting two marking bits for each node: target sampling and random sampling: first, generating a random number, selecting a target point as a sampling node when the random number is less than a threshold, and marking the target sampling mark bit of this node as failure if the expansion fails; performing random sampling in the sampling space when the random number is greater than a threshold, and adding one to the random sampling mark bit of this node if the expansion fails; then, when using the target point as a sampling point for expansion, the selection of the parent node removes the node whose target sampling mark bit is marked as failure, and when using a random node for expansion, the selection of the parent node removes the node whose random sampling mark bit reaches the threshold. The improved RRT algorithm reduces the expansion of invalid paths and speeds up the convergence speed; then, executing the path expansion strategy, adding a safety distance constraint to the detection of the path during the collision detection process, increasing the distance between the path and the obstacle, improving the safety of the path, and reducing the probability of collision of the AUV. After completing the planning of the global path, the present invention traces back from the starting point to the end point to remove the redundant nodes of the global path, improve the smoothness of the path, and make the RRT algorithm proposed by the present invention better combined with DWA, so as to perform AUV path planning.

[0015] The present invention integrates the improved RRT algorithm with the DWA algorithm to plan a path that meets the kinematic constraints, and at the same time realizes the obstacle avoidance function for unknown dynamic obstacles, making up for the problem that the path planned by only using the improved RRT algorithm does not meet the kinematic constraints of the AUV and the problem that the improved RRT algorithm cannot avoid unknown dynamic obstacles, as well as the defect that the DWA algorithm cannot use the global information of the map for path planning, which leads to the easy fall into the local minimum. The adaptive sub-target point selection strategy proposed in the present invention improves the smoothness of the DWA algorithm when bypassing obstacles and prevents the occurrence of the problem of falling into the local minimum; the present invention proposes a re-planning strategy. When a large unknown obstacle appears in the path planning process and there is no feasible path, the improved RRT algorithm is called with the current position as the starting point to re-plan a globally feasible and safe path, and then the DWA algorithm is re-executed based on the newly planned path, so that the path planning can quickly get rid of the minimum, thereby completing the path planning in the offshore environment with complex dynamics and large obstacles. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is the overall flow chart of the present invention;

[0017] Figure 2 This is a schematic diagram of the path expansion strategy;

[0018] Figure 3 Schematic diagram for removing redundant nodes;

[0019] Figure 4 Schematic diagram for adaptive sub-target point selection;

[0020] Figure 5 This is a graph showing the results of the replanning strategy. DETAILED DESCRIPTION

[0021] Specific implementation method 1: Figure 1 As shown, the specific process of the path planning method of a near-shore inspection AUV in this embodiment is as follows:

[0022] Step 1: Initialize the map space V, random tree space T, expansion step size l, AUV kinematic parameters, adaptive sub-target point selection threshold k, and set the starting point x rand , end point x goal ;

[0023] Step 2: Use the RRT algorithm to obtain the planned global path using the parameter values ​​initialized in step 1:

[0024] Step 21: Figure 4 As shown, a random number is generated, and the generated random number is compared with a first threshold value, and the sampling point is determined to be a random sampling point or an end point according to the comparison result. If the sampling point is an end point, (i) is executed; if the sampling point is a random sampling point, (ii) is executed;

[0025] If the random number is less than the first threshold, the end point is used as the sampling point; if the random number is greater than the first threshold, the random sampling point is used as the sampling point;

[0026] (i) If the sampling point is the end point, the vector direction from the node closest to the end point to the end point is used as the expansion direction, and a new node is obtained by expanding according to the expansion step. At this time, it is determined whether the newly generated path has a collision. If no collision occurs, the expansion is successful and the node is added to the random tree space; if the newly generated path has a collision, the expansion fails;

[0027] Then, a random number is regenerated and compared with the first threshold value, and the sampling point is determined to be a random sampling point or an end point according to the comparison result; if the end point is the sampling point, the direction from the node closest to the end point in the current random tree space to the end point is used as the expansion direction for expansion;

[0028] Wherein, each node includes: a target sampling mark bit and a random sampling mark bit;

[0029] The initial values ​​of the target sampling flag bit and the random sampling flag bit are 0;

[0030] When judging whether a newly generated path has a collision, a path expansion strategy is used, such as Figure 2 Specifically shown are:

[0031] First, in the process of path expansion, the parent node of the node is taken as the starting point, the vector direction from the parent node to the sampling point is taken as the expansion direction, and the distance l is expanded to obtain the expansion path;

[0032] Then, the width of the preset safety distance is extended on both sides of the extended path to obtain the distance a between the obstacle and the extended path. If a is less than the preset safety distance, the extension fails, and the newly generated path collides; if a is greater than or equal to the preset safety distance, the extension is successful, and the newly generated path does not collide;

[0033] (ii) If the sampling point is a random sampling point, the direction from the starting point to the random sampling point is used as the expansion direction, and a new node is obtained by expansion according to the expansion step l. At this time, it is determined whether the newly generated path has a collision. If no collision occurs, the expansion is successful and the node is added to the random tree space; if the newly generated path has a collision, the expansion fails;

[0034] Then, a random number is regenerated and compared with the first threshold value, and the sampling point is determined to be a random sampling point or an end point according to the comparison result; if the direction from the starting point to the random sampling point is the expansion direction, the direction from the node closest to the random sampling point in the current random tree space to the random sampling point is used as the expansion direction for expansion;

[0035] When expanding with the connection direction of the node closest to the end point in the current random tree space as the expansion direction, ignore the nodes with the target sampling flag bit as 1 when searching for the parent node in the random tree space;

[0036] The node whose target sampling flag is 1 is the node where the target sampling fails, that is, the node selected as the parent node when the expansion fails with the end point as the sampling point; at the same time, this node will not be selected as the parent node when the end point is used as the sampling point.

[0037] When expanding with the connection direction of the node closest to the random sampling point in the current random tree space as the expansion direction, ignore the nodes whose random sampling mark bit marking times reach the threshold when searching for the parent node in the random tree space;

[0038] The node whose random sampling mark bit marking times reaches the threshold is obtained in the following manner: when the expansion fails with the random point as the expansion point, the random sampling mark bit number of the node n is increased by one, and when the value of the random sampling mark bit of the node n is greater than the preset second threshold, this node will not be selected as the parent node when the random point is used as the sampling point again;

[0039] The node n is a node selected as a parent node when expansion using a random point as an expansion point fails.

[0040] Step 22: Repeat step 2 until a tree from the starting point to the end point is obtained;

[0041] Step 2 and 3: Start from the end point in the random tree space and search for the parent node of the node until the starting point is found, obtain a global path, and then remove the redundant nodes on the global path to obtain the global path after removing the redundant nodes, that is, the planned global path:

[0042] like Figure 3 As shown, the starting point and the next sub-node are connected to perform collision detection. If no collision occurs, check whether the line connecting the next sub-target and the starting point collides. Check point by point until it is connected to the sub-target point where the collision occurs. Remove the redundant nodes between this sub-target point and the starting point, and obtain the global path after removing the redundant nodes, that is, the planned global path.

[0043] Step 3: Using the AUV kinematic parameters as constraints, the DWA algorithm is used to process the planned global path obtained in step 2 to obtain the AUV inspection path:

[0044] Step 31: Extend the nodes on the global path obtained in step 21 after removing the redundant nodes to obtain the extended global path, specifically:

[0045] S1, calculate the ratio b of the distance between the current position of the AUV and the sub-target point along the global path and the Euclidean distance between the current position of the AUV and the sub-target point;

[0046]

[0047] Among them, d path_dis is the distance from the current starting point to the sub-target point along the global path, d euc_dis The Euclidean distance from the current starting point to the sub-target point;

[0048] S2, when b is less than the threshold k, extend the sub-target point on the global path until it is equal to the threshold k; when it is extended to the end point, even if the ratio is still less than the threshold, the end point will be used as the sub-target point; S3, after reaching the sub-target point, re-execute S1 with the current position as the starting point and use the adaptive sub-target point selection strategy to select a new sub-target point for the next DWA dynamic trajectory planning;

[0049] Step 32: Figure 5 As shown, the inspection is carried out according to the extended global path. If it falls into a local minimum, the current AUV position is used as the starting point, and steps one to three are re-executed to obtain the re-planned inspection path:

[0050] When encountering a larger obstacle, it may be impossible to bypass the obstacle, causing the DWA algorithm to fall into a local minimum. When the DWA algorithm falls into a local minimum, a replanning strategy is used, that is, step 1 is re-executed with the current position as the new starting point to use the improved RRT algorithm to re-plan a global path, and then the DWA algorithm is enabled to re-plan the path based on the re-planned global path.

[0051] In this embodiment, the improved RRT algorithm of the present invention uses probability to select target points as sampling nodes, reduces invalid expansion of the algorithm, and speeds up the convergence of the algorithm; the mark space expansion strategy used prevents nodes with low success rate of random tree space expansion from being selected as parent nodes to avoid invalid expansion; the path expansion strategy used adds safety distance constraints to the detection of the path during collision detection, increases the distance between the path and the obstacle, improves the safety of the path, and reduces the probability of collision of the AUV. The parent nodes that fail to use different expansion methods are marked. When the target point is selected as the expansion point, if its parent node is selected as the expansion point again, it will also fail to expand. Therefore, it will be removed in the next expansion, which will avoid invalid expansion; when a random point is used as an expansion point, the more expansion failures a node has when it is selected as a parent node, the lower the probability of its successful expansion. After reaching a certain threshold, the probability of its successful expansion will be reduced to a minimum value. When using a random node as an expansion point, removing it will avoid certain invalid expansion. The final planned global path removes its redundant nodes, improves the smoothness of the path, and facilitates the use of the global path by the subsequent DWA algorithm.

Claims

1. A path planning method for offshore inspection AUV, characterized in that The specific process of the method is: Step 1: Initialize the map space , random tree space , expansion step length , AUV kinematic parameters, adaptive sub-target point selection threshold , set the starting point ,end ; Step 2: Using the parameter values ​​initialized in step 1, the RRT algorithm is used to obtain the planned global path; The RRT algorithm is an improved RRT algorithm, which specifically includes: First, a random number is generated, and the sampling point is determined to be an end point or a random point according to the random number, thereby generating an expansion path; Then, collision detection is performed on the newly generated extension paths, and the extension paths that do not produce collisions form a tree from the starting point to the end point; Finally, starting from the end point, search for the parent node of the node in sequence until the starting point is found, obtain a global path, and then remove the redundant nodes on the global path to obtain the planned global path; The step 2 of using the parameter values ​​initialized in step 1 to obtain the planned global path using the RRT algorithm includes the following steps: Step 21: Generate a random number, compare the generated random number with the first threshold, and determine whether the sampling point is a random sampling point or an end point according to the comparison result. If the sampling point is an end point, execute (i); if the sampling point is a random sampling point, execute (ii); (i) Take the vector direction from the node closest to the end point to the end point as the expansion direction, and follow the expansion step length Expand to obtain a new node, and determine whether the newly generated path collides. If no collision occurs, the expansion is successful and the node is added to the random tree space; if the newly generated path collides, the expansion fails; Wherein, each node includes: a target sampling mark bit and a random sampling mark bit; The initial values ​​of the target sampling flag bit and the random sampling flag bit are 0; Then, a random number is regenerated and compared with the first threshold value, and the sampling point is determined to be a random sampling point or an end point according to the comparison result; if the end point is the sampling point, the direction from the node closest to the end point in the current random tree space to the end point is used as the expansion direction for expansion; (ii) Take the direction from the starting point to the random sampling point as the expansion direction, and follow the expansion step length Expand to obtain a new node, and determine whether the newly generated path collides. If no collision occurs, the expansion is successful and the node is added to the random tree space; if the newly generated path collides, the expansion fails; Then, a random number is regenerated and compared with the first threshold value, and the sampling point is determined to be a random sampling point or an end point according to the comparison result; if the direction from the starting point to the random sampling point is the expansion direction, the direction from the node closest to the random sampling point in the current random tree space to the random sampling point is used as the expansion direction for expansion; Step 22: Repeat step 2 until a tree from the starting point to the end point is obtained; Step 2 and 3: Search for the parent node of the node in the random tree space from the end point until the starting point is found, obtain a global path, and then remove the redundant nodes on the global path to obtain the global path after removing the redundant nodes, that is, the planned global path; Step 3: Taking the AUV kinematic parameters as constraints, the DWA algorithm is used to process the planned global path obtained in step 2 to obtain the AUV inspection path to achieve dynamic obstacle avoidance.

2. A path planning method for an offshore inspection AUV according to claim 1, characterized in that: the generated random number in step 21 is compared with the first threshold value, and the sampling point is determined to be a random sampling point or an end point according to the comparison result, specifically: If the random number is less than the first threshold, the end point is used as the sampling point; if the random number is greater than the first threshold, the random sampling point is used as the sampling point.

3. A path planning method for an offshore inspection AUV according to claim 2, characterized in that: the path expansion strategy is used to determine whether the newly generated path has a collision, specifically: First, in the process of path expansion, the parent node of the node is taken as the starting point, and the vector direction from the parent node to the sampling point is taken as the expansion direction. The distance to obtain the expansion path; Then, the width of the preset safety distance is extended on both sides of the extended path to obtain the distance a between the obstacle and the extended path. If a is less than the preset safety distance, the extension fails and the newly generated path collides; if a is greater than or equal to the preset safety distance, the extension is successful and the newly generated path does not collide.

4. A path planning method for an offshore inspection AUV according to claim 3, characterized in that: when expanding in the direction from the node closest to the end point in the current random tree space to the end point as the expansion direction, the node with the target sampling flag bit of 1 is ignored when searching for the parent node in the random tree space; The node whose target sampling flag is 1 is the node where the target sampling fails, that is, the node selected as the parent node when the expansion fails with the end point as the sampling point; at the same time, this node will not be selected as the parent node when the end point is used as the sampling point.

5. A path planning method for an offshore inspection AUV according to claim 4, characterized in that: if the direction from the starting point to the random sampling point is used as the expansion direction in the step 21, when expanding from the direction from the node closest to the random sampling point in the current random tree space to the random sampling point, the node whose random sampling mark bit mark times reaches the threshold is ignored when searching for the parent node in the random tree space; The node whose random sampling mark bit marking times reaches the threshold is obtained in the following manner: when the expansion fails with the random point as the expansion point, the random sampling mark bit number of the node n is increased by one, and when the value of the random sampling mark bit of the node n is greater than the preset second threshold, this node will not be selected as the parent node when the random point is used as the sampling point again; The node n is a node selected as a parent node when expansion using a random point as an expansion point fails.

6. A path planning method for an offshore inspection AUV according to claim 5, characterized in that: the redundant nodes on the global path are removed in steps 2 and 3 to obtain a global path after removing the redundant nodes, that is, a planned global path, specifically: Connect the starting point and the next node to perform collision detection. If no collision occurs, check whether the next node collides with the starting line. Check point by point until it is connected to the node where the collision occurs. Remove the redundant nodes between this node and the starting point to obtain the global path after removing the redundant nodes, which is the planned global path.

7. A path planning method for an offshore inspection AUV according to claim 6, characterized in that: the DWA algorithm is used to process the planned global path obtained in step 2 with the AUV kinematic parameters as constraints in step 3 to obtain the AUV inspection path to achieve dynamic obstacle avoidance, comprising the following steps: Step 31: Extend the nodes on the global path obtained in step 23 after removing the redundant nodes to obtain an extended global path; Step 32: Perform inspection according to the extended global path. If it falls into a local minimum, take the current AUV position as the starting point and re-execute steps 1 to 3 to obtain the re-planned AUV inspection path.

8. A path planning method for an offshore inspection AUV according to claim 7, characterized in that: the step 31 in which the nodes on the global path after removing redundant nodes obtained in step 23 are extended to obtain the extended global path comprises the following steps: S1. Set the initial sub-target point and calculate and The ratio b: in, is the distance from the current starting point to the sub-target point along the global path, The Euclidean distance from the current starting point to the sub-target point; S2, when b is less than the threshold When b is equal to the threshold, the sub-target point is extended on the global path until b is equal to the threshold Get the sub-target point; when expanding to the end point, even if the ratio is still less than the threshold, the end point will be used as the sub-target point; S3: After reaching the sub-target point, re-execute S1 with the current position as the starting point to carry out the next dynamic trajectory planning.