AUV path planning method based on improved RRT algorithm

By adopting adaptive sampling and steering strategies in autonomous underwater vehicle path planning, adjusting the sampling point to be close to the end point and bypassing obstacles, the blindness and high computational overhead of path planning in the offshore environment of the RRT algorithm are solved, and the problem is improved. Efficiency and adaptability of path planning.

CN115390568BActive Publication Date: 2024-09-06HARBIN ENG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211129260.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2024-09-06
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

When autonomous underwater vehicles use the RRT algorithm for path planning in complex offshore environments, there are problems such as search blindness, slow convergence speed, and high computational overhead.

Method used

Adopt adaptive sampling strategy and steering strategy, adjust the position of the sampling point to make it closer to the end point, and expand the path on both sides of the original growth direction when encountering obstacles to avoid local minima, and use the sampling point reselection strategy to improve Efficiency of path planning.

Benefits of technology

It accelerates the convergence speed of the algorithm, solves the problem of search blindness, improves the efficiency of path planning and its adaptability to complex environments, and avoids the trap of local minima and invalid expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115390568B
    Figure CN115390568B
Patent Text Reader

Abstract

The AUV path planning method based on the improved RRT algorithm specifically relates to a coastal patrol type autonomous underwater vehicle AUV path planning method based on the improved RRT algorithm. In order to solve the problems of blind search, slow convergence speed and high computational overhead when the autonomous underwater vehicle uses the RRT algorithm for path planning in the complex offshore environment, it includes initializing various parameters, setting the starting point and end point of the autonomous underwater vehicle; establishing a sampling space according to the set starting point and end point, and obtaining a sampling point in the sampling space; obtaining a new sampling point in the map space according to the sampling point using an adaptive sampling strategy; calculating the distance between all nodes and the new sampling point in the random tree space, obtaining the point closest to the new sampling point, taking the vector direction of the point toward the new sampling point as the expansion direction, and expanding the random tree in combination with the initialized expansion step. It belongs to the field of path planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a path planning method, in particular to a path planning method for an offshore patrol type autonomous underwater vehicle AUV based on an improved RRT algorithm, and belongs to the field of path planning. 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 is very complicated, and the corresponding speed requirements for path planning will be higher.

[0003] Rapid-exploration Random Tree (RRT) is widely used to solve path planning problems, but the RRT algorithm has problems such as blind expansion, high path redundancy, and uneven path. The main improvement directions include increasing the algorithm's guidance and improving the path feasibility. Improvements to increase the algorithm's guidance Liu Chengju proposed in "RoboCup Robot Dynamic Path Planning Based on Improved RRT Algorithm" that the target point is selected with a certain probability during the expansion phase, and the other sampled points are increased in gravity 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; and Wang Shuo proposed in "Research on Improved Rapid-exploration Random Tree Algorithm in Robot Path Planning" that the growth direction of the random tree is changed to the direction of the vector direction of the nearest point toward the sampling point and the vector direction of the nearest point toward the end point to increase the guidance of the direction, and the weight coefficient strategy is used to increase the algorithm's obstacle avoidance ability. Improvements in improving path feasibility include adding dynamic constraints in the node expansion phase and approximating the track distance in "UAV Trajectory Planning Based on Improved RRT Algorithm" Yin Gaoyang proposed in "UAV Trajectory Planning Based on Improved RRT Algorithm" to increase the path feasibility and shorten the distance. However, the various algorithms proposed above still have the problem of high computational overhead and are not suitable for path planning in offshore environments with complex obstacles. Summary of the invention

[0004] In order to solve the problems of search blindness, slow convergence speed and high computational overhead when an autonomous underwater vehicle uses an RRT algorithm for path planning in a complex offshore environment, the present invention proposes an AUV path planning method based on an improved RRT algorithm.

[0005] The technical solution adopted by the present invention is:

[0006] It includes the following steps:

[0007] S1, initialize the adaptive scale factor, random tree space, expansion step size, map space of the autonomous underwater vehicle, and set the starting point and end point of the autonomous underwater vehicle;

[0008] S2. Establish a sampling space based on the set starting point and end point, and obtain a sampling point x in the sampling space rand ;

[0009] S3, according to the sampling point x rand Use adaptive sampling strategy to get new sampling point x in map space rand ';

[0010] S4. Calculate all nodes and new sampling points x in the random tree space rand ', get the distance from the new sampling point x rand 'The nearest point x near ′, point x near ′Towards the new sampling point x rand 'The vector direction is used as the expansion direction, and the random tree is expanded in combination with the initialized expansion step;

[0011] a. If the expansion is successful, the total number of successes and failures is processed, and then it is determined whether the expansion node is the end point. If the expansion node is not the end point, the adaptive scale factor is updated and S2-S4 is executed; otherwise, the path planning is completed;

[0012] b. If the expansion fails, use the steering strategy to expand again to determine whether the expansion is successful. If the expansion is successful, execute a. Otherwise, process the total number of successes and the total number of failures, and then use the sampling point reselection strategy to expand again. If this expansion is successful, execute a to determine whether the expansion node is the end point. Otherwise, abandon this expansion and execute S2-S4 until the path is obtained.

[0013] Furthermore, the adaptive sampling strategy is to multiply the distance between the sampling point and the end point by the adaptive scaling factor to obtain a result, and move the sampling point according to the direction of the sampling point toward the end point and the obtained result to obtain a new sampling point.

[0014] Furthermore, in S3, according to the sampling point x rand Use adaptive sampling strategy to get new sampling point x in map space rand ', the specific process is:

[0015]

[0016] Where p represents the adaptive scaling factor; d represents the sampling point x rand and the end point x goal distance.

[0017] Furthermore, the total number of successes and the total number of failures are processed, and the specific process is as follows:

[0018] When the expansion is successful, n′ success =n success +1, n′ fail = x × n fail ;

[0019] When the expansion fails, n′ success =δ×n success , n′ fail =n fail +1;

[0020] Among them, n success Indicates the total number of successes; n fail represents the total number of failures; χ and δ are coefficients.

[0021] Furthermore, the updating adaptive scaling factor is:

[0022]

[0023] Among them, p∈[0,1]; p i represents the current adaptive scaling factor, p0∈p i ; α represents the coefficient in the case of successful expansion; β represents the coefficient in the case of failed expansion; n′ success Indicates the total number of successful processing; n' fail Indicates the total number of failures after processing.

[0024] Furthermore, if the expansion fails in b, the diversion strategy is used to expand again to determine whether the expansion is successful. If the expansion is successful, a is executed. Otherwise, the total number of successes and the total number of failures are processed, and the sampling point reselection strategy is used to re-expand. If the expansion is successful this time, the determination of whether the expansion node is the end point in a is executed. Otherwise, the expansion is abandoned and S2-S4 is executed. The specific process is:

[0025] Taking the direction of the line connecting the sampling point and the point closest to the sampling point in the random tree space as the axis, a fan-shaped area is radiated to the surrounding area. In the fan-shaped area, multiple paths are obtained at intervals of angles. The collision-free path with the smallest angle with the axis among the multiple paths is used as the expansion path, and then it is judged whether the expansion is successful. If the expansion is successful, a is executed. If there is no collision-free path, the expansion failure is defined, and the total number of successes and the total number of failures are processed. Then the sampling point reselection strategy is used to re-expand. If this expansion is successful, the judgment in a is executed to determine whether the expansion node is the end point. Otherwise, the expansion is abandoned and S2-S4 is executed.

[0026] Furthermore, the sampling point reselection strategy is to abandon the current sampling point and re-expand the sampling point before the adaptive sampling strategy as a new sampling point.

[0027] Beneficial effects:

[0028] The present invention first initializes an adaptive scale factor, a random tree space, an expansion step, and a map space of an autonomous underwater vehicle, and sets a starting point and an end point of the autonomous underwater vehicle; establishes a sampling space according to the set starting point and end point, and obtains a sampling point in the sampling space; obtains a new sampling point in the map space according to the sampling point using an adaptive sampling strategy; calculates the distance between all nodes and the new sampling point in the random tree space, obtains the point closest to the new sampling point, takes the vector direction of the point toward the new sampling point as the expansion direction, and expands the random tree in combination with the initialized expansion step; if the expansion is successful, processes the total number of successes and the total number of failures, and determines whether the expanded node is the end point; if the expanded node is not the end point, updates the adaptive scale factor, and repeatedly executes the acquisition of the sampling point and the above operations; otherwise, completes the path planning; if the expansion fails, uses the steering strategy to expand again; if the expansion still fails, uses the sampling point reselection strategy to expand again; if the expansion is successful this time, executes the expansion success step; otherwise, abandons the expansion this time, updates the adaptive scale factor, and repeatedly executes the acquisition of the sampling point and the above operations until the path is obtained.

[0029] The adaptive sampling strategy proposed in the present invention ensures that each sampling point is close to the end point at a certain proportional distance according to the complexity of the environment, that is, it ensures that the parent node used by the random tree for each expansion is closer to the end point, so that the random tree grows towards the end point each time, which not only speeds up the convergence speed of the algorithm and solves the problem of search blindness, but also maintains probability completeness and adaptability to complex environments.

[0030] When the random tree growth and expansion encounters obstacles, the present invention adopts a steering strategy to expand multiple paths with a certain angle interval on both sides of the original growth direction under the premise that the random tree growth and expansion direction remains unchanged, so that the random tree growth and expansion can bypass the obstacles, thereby accelerating the convergence speed of the algorithm. At the same time, the angle of the fan-shaped area selected by the steering strategy does not exceed 180 degrees, avoiding the selection of some points with local minimum values ​​as parent nodes, accelerating the convergence speed and avoiding invalid expansion.

[0031] The sampling point reselection strategy adopted by the present invention prevents the growth of the random tree from falling into a local minimum, and at the same time makes the sampling points and parent nodes obtained by the algorithm each time close to the end point. The sampling point reselection strategy used by the present invention is executed after the steering strategy fails to execute. Therefore, there is a great probability that the expansion point this time is in the local minimum. The sampling point reselection strategy is used to ensure the completeness of the probability while effectively avoiding the continued use of the local minimum point as the expansion point, thereby accelerating the convergence speed of the algorithm and the adaptability to complex environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of the algorithm of the present invention;

[0033] Figure 2 It is a schematic diagram of the adaptive sampling strategy;

[0034] Figure 3 It is a schematic diagram of the steering strategy;

[0035] Figure 4 It is a schematic diagram of the sampling point reselection strategy;

[0036] Figure 5 Yes Figure 1 The experimental results diagram of

[0037] Figure 6 Yes Figure 2 The experimental results diagram of DETAILED DESCRIPTION

[0038] Specific implementation method 1: Combination Figure 1-Figure 4 The present embodiment describes an AUV path planning method based on an improved RRT algorithm, which includes the following steps:

[0039] S1, initialize the adaptive scale factor p0, random tree space T, expansion step l, map space V of the autonomous underwater vehicle, and set the starting point x of the autonomous underwater vehicle start , end point x goal ;

[0040] S2, according to the set starting point x start , end point x goal Establish a sampling space and obtain a sampling point x in the sampling space rand ; The sampling space is the space formed by the starting point and the end point, and the sampling point is a certain position point between the starting point and the end point of the autonomous underwater vehicle.

[0041] S3, according to the sampling point x rand Use adaptive sampling strategy to get new sampling point x in map space rand ', the specific process is:

[0042] like Figure 2 As shown, in the map space V, the sampling point x rand Use an adaptive sampling strategy to get a new sampling point x that is closer to the end point rand ', the adaptive sampling strategy is to set the sampling point x rand The distance d from the end point is multiplied by the adaptive proportional factor p to obtain the result d'. rand Move the sampling point x towards the end point and obtain the result d' rand , get the new sampling point x rand '. Its mathematical expression is:

[0043]

[0044] The traditional method for improving the orientation of the RRT algorithm is generally to change the direction of the random tree's growth each time, so that the random tree grows directional to the target point. Although this improvement method increases the directionality of growth to a certain extent, the position of the parent node closest to the sampling point has not changed, which may lead to many useless expansions. Therefore, the adaptive sampling strategy proposed in the present invention makes the points sampled each time close to the end point at a certain proportional distance according to the complexity of the environment, that is, to ensure that the parent node used in each expansion of the random tree is closer to the end point, so that the random tree grows towards the end point each time, which not only speeds up the convergence speed of the algorithm, solves the problem of search blindness, but also retains the probability completeness and adaptability to complex environments.

[0045] S4. Calculate all nodes and new sampling points x in the random tree space T rand ', get the distance from the new sampling point x rand 'The nearest point x near ′, point x near ′Towards the new sampling point x rand The vector direction of ' is used as the expansion direction, and the random tree is expanded with the initial expansion step l. If the expansion node can be directly obtained each time the expansion is performed, the expansion is defined to be successful; otherwise, the expansion is defined to be failed.

[0046] a. If the expansion is successful, the total number of successes n success and the total number of failures n fail Process it and then determine whether the expansion node is the end point x goal , if the expansion node is not the end point x goal , then use the initialized adaptive scale factor p0, the total number of successful times n success and the total number of failures n fail Update the adaptive scaling factor and execute S2-S4; otherwise, complete the path planning.

[0047] The mathematical expression for updating the adaptive scaling factor is as follows:

[0048]

[0049] Among them, p∈[0,1]; p i represents the current adaptive scaling factor, p0∈p i , p0 is an initial value that will not change with the update, and p is used after each update; α represents the custom coefficient in the case of successful expansion; β represents the custom coefficient in the case of failed expansion; n′ success Indicates the total number of successful processing; n' fail Indicates the total number of failures after processing.

[0050] b. If the expansion fails, use the redirection strategy to expand again to determine whether the expansion is successful. If the expansion is successful, execute a. Otherwise, for the total number of successes n success And the total number of failures n fail Process it, and then use the sampling point reselection strategy to re-expand. If the expansion is successful, execute a to determine whether the expansion node is the end point x. goal Otherwise, abandon this expansion and execute S2-S4 until the path is obtained. The specific process is:

[0051] If the extension fails, it means that a collision or an obstacle occurred during the path extension stage, so the present invention adopts a steering strategy to solve this problem. Figure 3 As shown in FIG. 1 , the steering strategy is to use the direction of the line connecting the sampling point and the point closest to the sampling point in the random tree space T as the axis, radiate a fan-shaped area with a fixed angle to the surrounding area, and obtain multiple paths with an angle α as an interval in the fan-shaped area. The collision-free path with the smallest angle with the axis among the multiple paths is used as the expansion path, and then determine whether the expansion is successful. If the expansion is successful, execute a. If there is no collision-free path, the expansion is defined as failed, and the total number of successes n is calculated. success And the total number of failures n fail Process it, and then use the sampling point reselection strategy to re-expand. If the expansion is successful, execute a to determine whether the expansion node is the end point x. goal Otherwise, abandon this expansion and execute S2-S4 until a path is obtained. If a collision still occurs after using the steering strategy, use the sampling point reselection strategy, such as Figure 4 The sampling point reselection strategy is to abandon the current sampling point (new sampling point x rand '), the sampling point before the adaptive sampling strategy will be used (sampling point x rand ) as new sampling points for expansion.

[0052] The growth path of the random tree usually abandons this path when encountering an obstacle, which will also abandon some paths closer to the end point, increasing the planning time of the path. Therefore, the present invention adopts a steering strategy. When the random tree growth and expansion encounter obstacles, the random tree growth can bypass some small obstacles or the edges of large obstacles by adopting a steering strategy under the premise that the random tree growth and expansion direction remains unchanged, and multiple paths with a certain angle as intervals are expanded on both sides of the original growth direction, so that the growth and expansion of the random tree can bypass obstacles, thereby accelerating the convergence speed of the algorithm. At the same time, the angle of the fan-shaped area selected by the steering strategy does not exceed 180 degrees, avoiding the selection of some points with local minimum values ​​as parent nodes, accelerating the convergence speed and avoiding invalid expansion.

[0053] The sampling point reselection strategy adopted by the present invention prevents the growth of the random tree from falling into a local minimum, and at the same time makes the sampling points and parent nodes obtained by the algorithm each time close to the end point. The sampling point reselection strategy used by the present invention is executed after the steering strategy fails to execute. Therefore, there is a great probability that the expansion point this time is in the local minimum. The sampling point reselection strategy is used to increase the probability completeness while effectively avoiding the continued use of the local minimum point as the expansion point, thereby accelerating the convergence speed of the algorithm and the adaptability to complex environments.

[0054] The total number of successes n for successful and failed expansions success and the total number of failures n fail The specific process is as follows:

[0055] When the expansion is successful, n′ success =n success +1, n′ fail = x × n fail ;

[0056] When the expansion fails, n′ success =δ×n success , n′ fail =n fail +1;

[0057] Among them, χ and δ are custom coefficients.

[0058] Example

[0059] land Figure 1 The size of is 1000*1000, the starting point of the experiment is (50,50), and the end point is (950,950). The final experimental results obtained by using the present invention are as follows: Figure 5 As shown in the figure, in this experimental map, since there is no local minimum point, each expansion is an effective expansion, which not only speeds up the convergence speed of the present invention, but also verifies the effectiveness of the present invention.

[0060] land Figure 2 The size is 1000*1000, the starting point of the experiment is (50,50), and the end point is (950,950). The final experimental results are as follows: Figure 6 Even if a local minimum value is encountered during the random tree expansion stage, the steering strategy and sampling point reselection strategy of the present invention can be used to avoid it, which verifies the effectiveness of the present invention.

Claims

1. AUV path planning method based on improved RRT algorithm, characterized by: It includes the following steps: S1, initialize the adaptive scale factor, random tree space, expansion step size, map space of the autonomous underwater vehicle, and set the starting point and end point of the autonomous underwater vehicle; S2. Establish a sampling space based on the set starting point and end point, and obtain a sampling point x in the sampling space rand ; S3, according to the sampling point x rand Use adaptive sampling strategy to get new sampling point x in map space rand '; S4. Calculate all nodes and new sampling points x in the random tree space rand ', get the distance from the new sampling point x rand 'The nearest point x near ′, point x near ′Towards the new sampling point x rand 'The vector direction is used as the expansion direction, and the random tree is expanded in combination with the initialized expansion step; a. If the expansion is successful, the total number of successes and failures is processed, and then it is determined whether the expansion node is the end point. If the expansion node is not the end point, the adaptive scale factor is updated and S2-S4 is executed; otherwise, the path planning is completed; The updated adaptive scaling factor: Among them, p∈[0,1]; p i represents the current adaptive scaling factor, α represents the coefficient in the case of successful expansion; β represents the coefficient in the case of failed expansion, n s ' uccess Indicates the total number of successful processing; n' fail Indicates the total number of failures after processing; b. If the expansion fails, use the steering strategy to expand again to determine whether the expansion is successful. If the expansion is successful, execute a. Otherwise, process the total number of successes and failures, and then use the sampling point reselection strategy to expand again. If the expansion is successful, execute a to determine whether the expansion node is the end point. Otherwise, abandon the expansion and execute S2-S4 until the path is obtained. The total number of successes and failures are processed. The specific process is as follows: When the expansion is successful, n s ' uccess =n success +1, n′ fail = x × n fail ; When the expansion fails, n s ' uccess =δ×n success , n′ fail =n fail +1; Among them, n success Indicates the total number of successes; n fail represents the total number of failures; χ and δ are both custom coefficients.

2. The AUV path planning method based on the improved RRT algorithm according to claim 1, characterized in that: The adaptive sampling strategy is to multiply the distance between the sampling point and the end point by the adaptive scaling factor to obtain a result, and move the sampling point according to the direction of the sampling point toward the end point and the obtained result to obtain a new sampling point.

3. The AUV path planning method based on the improved RRT algorithm according to claim 2, characterized in that: In S3, according to the sampling point x rand Use adaptive sampling strategy to get new sampling point x in map space rand ', the specific process is: Where p represents the adaptive scaling factor; d represents the sampling point x rand and the end point x goal distance.

4. The AUV path planning method based on the improved RRT algorithm according to claim 3, characterized in that: If the expansion fails in b, the diversion strategy is used to expand again to determine whether the expansion is successful. If the expansion is successful, a is executed. Otherwise, the total number of successes and the total number of failures are processed, and the sampling point reselection strategy is used to re-expand. If the expansion is successful this time, the determination of whether the expansion node is the end point in a is executed. Otherwise, the expansion is abandoned and S2-S4 is executed. The specific process is as follows: Taking the direction of the line connecting the sampling point and the point closest to the sampling point in the random tree space as the axis, a fan-shaped area is radiated to the surrounding area. In the fan-shaped area, multiple paths are obtained at intervals of angles. The collision-free path with the smallest angle with the axis among the multiple paths is used as the expansion path, and then it is judged whether the expansion is successful. If the expansion is successful, a is executed. If there is no collision-free path, the expansion failure is defined, and the total number of successes and the total number of failures are processed. Then the sampling point reselection strategy is used to re-expand. If this expansion is successful, the judgment in a is executed to determine whether the expansion node is the end point. Otherwise, the expansion is abandoned and S2-S4 is executed.

5. The AUV path planning method based on the improved RRT algorithm according to claim 4, characterized in that: The sampling point reselection strategy is to abandon the current sampling point and re-expand the sampling point before the adaptive sampling strategy as a new sampling point.