A three-dimensional underwater underactuated AUV recovery path planning method

The AUV recovery path is optimized in a three-dimensional underwater environment through an improved genetic algorithm and a cubic B-spline curve, which solves the problems of local optimality and low efficiency in traditional methods, and achieves more stable and efficient path planning to meet the requirements of under-actuated robots. exercise requirements.

CN115202356BInactive Publication Date: 2024-10-29DALIAN MARITIME UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210869193.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing AUV path planning methods have local optimal problems and low efficiency in complex environments. Especially in three-dimensional underwater environments, traditional genetic algorithms are difficult to effectively solve the planning of under-actuated robot recovery paths, resulting in unsatisfactory optimization results.

Method used

Using an improved genetic algorithm, combined with cubic B-spline curves, the fitness function is designed through adaptive parameters and various constraints to optimize path planning, ensure the smoothness and feasibility of the path, and improve the efficiency of path planning.

Benefits of technology

In the three-dimensional underwater environment, the improved genetic algorithm can effectively avoid local optimal problems, improve the stability and efficiency of path planning, ensure the smoothness and actual trackability of the path, and optimize the path length and energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202356B_ABST
    Figure CN115202356B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for planning the recovery path of a three-dimensional underwater underactuated AUV, the method comprising: constructing an underwater three-dimensional environment model based on the position of a small hill; setting intermediate candidate path points based on the starting position, starting attitude, end position and end attitude of the AUV during the recovery process; constructing path planning constraints, the path planning constraints including hard constraints and soft constraints; screening feasible paths from candidate paths based on the hard constraints; iterating the feasible paths through an improved genetic algorithm, and when the specified number of iterations is reached, terminating the algorithm to obtain the optimal global path, and the crossover coefficient and the coefficient of variation of the population are adaptively processed in the improved genetic algorithm. The present invention uses optimized adaptive parameters and considers multiple constraints to perform global optimization on the local optimal problem that occurs prematurely in the traditional genetic method, thereby improving the efficiency of path planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of underactuated robot control, and in particular to a three-dimensional underwater underactuated AUV recovery path planning method. Background Art

[0002] The ocean is a huge common resource treasure house for mankind, containing rich mineral resources, marine biological resources and renewable energy. However, the harsh marine environment has caused great difficulties for human research, development and utilization of the ocean. Due to the lack of effective tools, people's development and utilization of the ocean is very insufficient and extremely slow. In order to minimize human exposure to dangerous marine environments, people use autonomous underwater robots (AUVs) to assist in underwater exploration and resource development. AUVs need to bring their own energy when performing tasks. Due to the limitations of size and mass, the energy they carry is very limited. In particular, AUVs carried by submarines need to be recovered and docked underwater for energy replenishment and work data exchange. Therefore, underwater docking and recovery technology has become an important direction of current AUV research.

[0003] Commonly used AUV path planning methods can be divided into two types of planning: global path and local path planning according to the classification of obstacles in the environment. Among them, global path planning is mainly aimed at obstacle objects that are stationary and have known information in the environment. In order to obtain the optimal global path, some objective functions are usually constructed according to the environmental model, and the global path planning problem is converted into a multi-objective function optimization problem. At present, the more representative target optimization algorithms in the field of path planning can generally be divided into two categories: traditional algorithms and intelligent planning algorithms. Traditional algorithms include A* algorithm, D* algorithm, unit decomposition method, artificial potential field method, etc. Traditional methods can ensure that the optimal and suboptimal solutions are found when feasible solutions exist, but they require accurate environmental mathematical models and large amounts of calculations, low search efficiency, and the optimization effect obtained is not ideal. Intelligent planning algorithms have unparalleled advantages over traditional algorithms in dealing with complex problems. Intelligent algorithms include genetic algorithms, particle swarm algorithms, ant colony algorithms, etc. Among them, genetic algorithms (GA) have powerful global search capabilities, especially in complex optimization problems, which makes GA widely used in path planning, task allocation and other problems. However, GA also has problems such as slow convergence and easy to fall into local optimal solutions. Summary of the invention

[0004] The present invention provides a three-dimensional underwater underactuated AUV recovery path planning method and device, which utilizes optimized adaptive parameters and considers multiple constraints to perform global optimization on the local optimal problem that occurs prematurely in the traditional genetic method, thereby improving the efficiency of path planning.

[0005] The technical means adopted by the present invention are as follows:

[0006] The present invention discloses a three-dimensional underwater underactuated AUV recovery path planning method, comprising the following steps:

[0007] S1. Obtain the position of a small hill in the underwater environment, and build an underwater three-dimensional environment model based on the position of the small hill, and determine the starting position, starting attitude, end position and end attitude of the AUV during the recovery process;

[0008] S2. Setting intermediate path points based on the starting position, starting attitude, end position and end attitude of the AUV during the recovery process;

[0009] S3. Construct path planning constraints, which include hard constraints and soft constraints. The hard constraints include the turning radius constraint, the diving angle constraint, and the collision avoidance constraint for the under-actuated robot itself, and the soft constraints include the path length constraint and the energy consumption constraint.

[0010] S4. In the improved genetic algorithm, the corresponding fitness function is designed according to the soft and hard constraints. The feasible path search is performed by iteratively using the fitness function designed with the hard constraints. The fitness function designed with the soft constraints is used to find the best path among the feasible paths. When the specified number of iterations is reached, the algorithm is terminated to obtain the optimal global path after cubic B-spline smoothing. The crossover coefficient and the coefficient of variation of the population are adaptively processed in the improved genetic algorithm.

[0011] Compared with the prior art, the present invention has the following advantages:

[0012] The present invention provides a recovery path planning method for an underactuated underwater robot in a three-dimensional environment. The improved genetic algorithm inherits the advantages of the traditional genetic algorithm's powerful global search capability. From the perspective of the length of the planned path and energy consumption, the improved genetic algorithm planning is superior to the traditional genetic algorithm in both aspects. After multiple experimental comparisons, the improved genetic algorithm is superior to the traditional genetic algorithm in terms of solution stability. From the perspective of the smoothness of the path, the present invention uses a cubic B-spline curve to construct the recovery path. Under the condition of ensuring smoothness, since the cubic B-spline curve has the characteristics of position continuity, first-order continuity, and second-order differential continuity, this makes the curvature of the constructed path continuous, which meets the motion requirements of the underactuated AUV, so that the planned path can be actually tracked. Combining multiple sets of simulation data, the improved genetic algorithm ensures the length and energy consumption of the path while also ensuring the smoothness of the recovery path. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0014] Figure 1 Schematic diagram of the environmental model of the present invention.

[0015] Figure 2 Schematic diagram of cubic B-spline used in the present invention.

[0016] Figure 3 This is a schematic diagram for selecting intermediate path points of the present invention.

[0017] Figure 4 It is the algorithm flow chart of the present invention.

[0018] Figure 5 shows the test environment and the comparison of the planning paths of each algorithm. (a) is the test environment test case, (b) is the planning result of the traditional genetic algorithm, (c) is the planning result of the heuristic adaptive genetic algorithm, and (d) is the planning result of the improved genetic algorithm in this paper.

[0019] Figure 6 shows the test environment and the comparison of paths planned with different weight settings. (a) is a test environment example, (b) kL = 1, kE = 0, (c) kL = 0.5, kE = 0.5, and (d) kL = 0, kE = 1. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0021] The present invention discloses a three-dimensional underwater underactuated AUV recovery path planning method, comprising the following steps:

[0022] S1. Obtain the position of a small hill in the underwater environment, and build an underwater three-dimensional environment model based on the position of the small hill, and determine the starting position, starting attitude, end position and end attitude of the AUV during the recovery process.

[0023] Environmental modeling is the premise of global path planning. Since the acoustic positioning range of AUV during docking and recovery is 0-3000m, which is a relatively small mission environment, and the resolution of electronic charts is difficult to present such an environment, this experiment simulates the seabed terrain through the following formula, and regards the seabed terrain as the main static obstacle in the environment. Therefore, the simulation of the seabed environment in S1 is simulated using the following expression:

[0024]

[0025] In formula (1), X, Y and Z represent the three-dimensional space domain, x0 represents the horizontal coordinate at the center of the seabed hillock, and y0 represents the vertical coordinate at the center of the seabed hillock. σ, a and b represent the width control coefficients of the seabed hillock. The larger σ is, the larger the width of the seabed hillock is. The smaller σ is, the smaller the width of the seabed hillock is. The larger a is, the smaller the width of the seabed hillock along the y-axis is. The smaller a is, the larger the width of the seabed hillock along the y-axis is. The larger b is, the smaller the width of the seabed hillock along the x-axis is. The larger b is, the smaller the width of the seabed hillock along the x-axis is. h represents the height of the seabed hillock. n represents the number of seabed hillocks.

[0026] S2. Setting intermediate path points based on the starting position, starting attitude, ending position and ending attitude of the AUV during the recovery process.

[0027] Specifically, the optimal path curve in this application is composed of the determined path points at both ends and the middle path points obtained by the algorithm using a cubic B-spline curve. What the algorithm of this application needs to do is to select the best middle path points from the middle candidate path points to form a recovery path. Figure 3 As shown, P4 and Pn -4 The middle candidate path point area is between them, where each line is perpendicular to P4Pn -4 There are multiple candidate path points on the dashed line of the line segment, and only one point on each dashed line is selected as the intermediate path point to form the optimal path curve, and the intermediate path point is obtained by the algorithm. The number of intermediate path points is obtained by experiment, and this embodiment preferably uses seven intermediate path points through testing.

[0028] Since the global path planning of this application is applied in the recovery and docking scenario of under-actuated AUV, compared with the global path planning of other scenarios, which considers the underwater robot as a particle in a two-dimensional environment and only considers the position of the underwater robot, this application needs to consider not only the position of the AUV in a three-dimensional environment, but also its posture. First, the recovery process of the under-actuated AUV is briefly introduced. When the under-actuated AUV completes its own task and needs to perform a recovery operation, the under-actuated AUV will send the instructions for recovery and the current position information to the recovery platform. When the recovery platform receives the request sent by the under-actuated AUV, it will send the position information of the recovery platform to the under-actuated AUV. The starting position and posture need to conform to the position information of the under-actuated underwater robot when performing the recovery and docking task, while the position and posture of the end point do not need to conform to the position information of the recovery platform, because the end point of the global path planning in the recovery and docking situation is generally a certain distance from the recovery platform and the posture direction points to the center of the recovery platform. This distance is designed for the subsequent optical guidance docking of the under-actuated AUV.

[0029] According to the characteristics of the underactuated AUV recovery process, the starting and ending path points of the global path can be set. First, the path point position at the starting end of the path should be the same as the position of the underactuated AUV during recovery, and the tangent direction of the path should be consistent with the speed direction of the underactuated AUV, so that the path is more in line with actual needs. The expression of the path point at the starting end is:

[0030]

[0031] In the above formula, P s is the starting point position, i.e. the starting position of the underactuated AUV for recovery. It is expressed as the first-order derivative of the path curve at the starting end, is the velocity vector of the underactuated AUV during recovery, and k1 is a positive real number.

[0032] For the waypoint at the end, it needs to be set on the center line of the docking platform. The waypoint expression at the end is:

[0033]

[0034] Among them, P E Represents the end point of the global planning path, It is expressed as the first-order derivative of the path curve at the end point, Indicates that from P E The unit vector pointing to the center of the dock, k2 is a positive real number

[0035] S3. Construct path planning constraints, which include hard constraints and soft constraints. The hard constraints include the turning radius constraints, diving angle constraints and collision avoidance constraints of the under-actuated robot itself, and the soft constraints include path length constraints and energy consumption constraints.

[0036] In the global path planning of recovery and docking, the underactuated underwater robot needs to consider a variety of constraints, such as the mobility constraints of the underactuated underwater robot itself, the shortest path, the optimal energy consumption, and safe obstacle avoidance. In order to add these constraints to the algorithm, it is necessary to convert them into mathematical language first, establish a fitness function to convert the global path planning problem into an extreme value problem, and obtain the optimal return path through algorithm iteration and optimization.

[0037] The mathematical model established in this paper for the safety constraints, path length constraints, energy consumption constraints and mobility constraints of underactuated robots considered in global path planning is as follows:

[0038] (1) Collision avoidance constraints and safety constraints for static obstacles

[0039] In global path planning, the safety constraint mainly considers the threat of static obstacles in the environment to the underactuated underwater robot, and the planned global path should not come into contact with obstacles. When completing the task and planning the recovery path, in order to avoid the collision between the underactuated underwater robot and the seabed obstacles as static obstacles, the navigation height of the underactuated underwater robot should always be higher than the height of the seabed obstacles, so the safety constraint conditions related to the terrain are modeled as:

[0040] Z1(x i ,y i )>Z(x i ,y i ),i=1,2,…,n (4)

[0041] In the above formula, Z1(x i ,y i ) is the global planning path curve at coordinate (x i ,y i ), Z(x i ,y i ) is the static obstacle on the seabed at coordinate (x i ,y i ) at the height value.

[0042] (2) Path length constraint

[0043] The voyage cost in global path planning mainly involves the navigation path of the underactuated underwater robot from the starting point to the end point. Assuming that the total path consists of n path points, the total cost of the path length can be expressed as:

[0044]

[0045] In the above formula, (x i ,y i ,z i ) represents the three-dimensional coordinates of the global path point. For general path planning problems, the shortest path length is usually selected as the path length constraint.

[0046] (3) Energy Consumption Constraints

[0047] For path planning in an environment without ocean currents, the energy consumption of an underactuated underwater robot is only related to the path length. The path with the shortest distance is the path with the lowest energy consumption. However, the actual working environment of an underactuated underwater robot is subject to ocean currents, and the underactuated underwater robot is much more affected by ocean currents than by wind and waves when navigating underwater. The position and posture of the underactuated underwater robot will change when disturbed by ocean currents, which will also affect the energy consumption of the underactuated underwater robot. Therefore, when performing global path planning for the navigation of an underactuated underwater robot, the influence of ocean currents cannot be ignored. Assume that the global planning path is composed of path points l i (i=1,2,…,n), then the energy consumption of the underactuated underwater robot sailing along the path curve is Total energy consumption:

[0048]

[0049] In the above formula, e i Represents each path The energy consumption of the path segment is one less than the number of path points, so i ranges from 1 to n-1, and P is the propulsion power of the underactuated underwater robot, which is related to the propulsion speed of the AUV. k is the drag coefficient, which is determined by the structure of the specific AUV. represents the speed of the underactuated underwater robot in a fixed coordinate system, which is related to the propulsion speed and the ocean current speed. There is a vector relationship as follows:

[0050]

[0051] For the global path planning problem, the minimum energy consumption can also be selected as the energy consumption constraint to optimize the path.

[0052] (4) The turning radius constraint and the diving angle constraint of the under-actuated robot itself.

[0053] Since the type of underwater robot considered in this paper is an underactuated type, it is necessary to consider the maneuverability constraints of the underactuated underwater robot, such as the rotation ability of the underactuated underwater robot in the horizontal plane and the diving ability in the vertical plane. The rotation ability in the horizontal plane can be expressed by the rotation radius R s The vertical buoyancy can be expressed by the buoyancy angle θ. The underactuated underwater robot itself has a minimum turning radius R min And the maximum diving angle θ max , these two maneuver constraints can eventually be transformed into constraints on the global planning curve. For example, the minimum turning radius can be transformed into a constraint requirement on the curvature of the curve, and the maximum potential angle can be transformed into a gradient constraint on the three directions of the curve in the coordinate system E-ξηζ.

[0054] Therefore, the cubic B-spline path curve obtained by global planning needs to satisfy the following geometric properties:

[0055]

[0056] In the above formula, represents the curvature of the cubic B-spline curve projected on the E-ξη surface, and They respectively represent the gradients of the cubic B-spline curve in the three coordinate axis directions in the coordinate system.

[0057] The present invention is aimed at the path planning of an underactuated underwater robot, and divides the constraint conditions into two categories. One category is hard constraint conditions, which means that the planned global path must meet these constraint conditions, otherwise the planned path will be judged as an infeasible path, among which safety constraints and the maneuverability constraints of the underactuated underwater robot are divided into hard constraint conditions; the other category is soft constraint conditions, which means that the planned global path is satisfied as much as possible, that is, the optimal path is sought among feasible paths that meet the hard constraint conditions, among which path constraints and energy consumption constraints are divided into soft constraint conditions, and the planned global path is made to meet the constraints of the shortest path and the least energy consumption as much as possible.

[0058] For the path length constraint and energy consumption constraint in the soft constraint conditions, the main consideration is the state requirements of the under-actuated AUV when performing the recovery and docking task. If the under-actuated AUV has less energy when performing the recovery and docking task, and the recovery path time requirement is not high, then energy consumption can be given priority, and the algorithm can be used to obtain the path with the best energy consumption. If the under-actuated AUV has sufficient energy when performing the recovery and docking task, and it is required to recover as soon as possible, then the path length can be given priority, and the algorithm can be used to obtain the path with the shortest path length. In general, both energy consumption and energy consumption may be considered. At this time, the path obtained by the algorithm will consume as little energy as possible when the path is short, although the path length at this time may be longer than the path when only the path length is considered, and the energy consumption is also greater than the path when only the energy consumption is considered. For the trade-off between path length and energy consumption, the present invention controls it according to the coefficient settings in front of the two.

[0059] S4. In the improved genetic algorithm, the corresponding fitness function is designed according to the soft and hard constraints. The feasible path search is performed by iteratively using the fitness function designed with the hard constraints. The fitness function designed with the soft constraints is used to find the best path among the feasible paths. When the specified number of iterations is reached, the algorithm is terminated to obtain the optimal global path after cubic B-spline smoothing. The crossover coefficient and the coefficient of variation of the population are adaptively processed in the improved genetic algorithm.

[0060] Considering the smoothness of the planned path, the present invention uses a cubic B-spline curve to smooth the path, so as to ensure that the planned path is actually traceable. The expression of the cubic B-spline curve is:

[0061]

[0062]

[0063] In the above formula, P j (t) is the segmented representation of the entire path curve, representing the jth segment of the path curve. The global path is composed of M+1 segments of cubic B-spline curves. Each segment of the cubic B-spline curve is determined by four path points. t is the independent variable coefficient, where P j When t is 0 in (t), it indicates the starting point of the jth path curve, P j When t is 1 in (t), it indicates the end point of the j-th path curve. In this embodiment, through experimental adjustment, it is more appropriate for the path curve to be composed of 13 segments of cubic B-spline curves, that is, M=12 is preferably selected.

[0064] According to the underwater environment model and the properties of the cubic B-spline curve, we can use the starting point P s Set triple path points to make the starting point P s On a cubic B-spline curve, the starting triple path point can therefore be set to:

[0065] P1=P2=P3=P s (11)

[0066] The path point P4 can be set according to the speed direction of the underactuated underwater robot at the starting end, so that the tangent direction of the path at the starting end is consistent with the speed direction of the underactuated underwater robot. Assuming that the speed direction of the underactuated underwater robot is approximately equal to the heading, P4 can be expressed as:

[0067] P4=(ξ s +l1cosθ s cosψ s ,η s +l1cosθ s sinψ s ,ζ s +l1sinθ s ) (12)

[0068] In the above formula, θ s and ψ s They represent the pitch angle and yaw angle of the underactuated underwater robot at the recovery starting point respectively, and l1 is a positive real number.

[0069] For the end point, the end point P can also be set by setting a triple path point E On a cubic B-spline curve, the triple path point at the same end point can be set as:

[0070] P n =P n-1 =P n-2 =P E (13)

[0071] Similarly, in order to enable the underactuated underwater robot to obtain the light source information on the docking platform at the end of the path, the line segment formed by the two path points can be set on the center line of the docking platform, and the two path points can be expressed as: Modify

[0072] P n-3 =(ξ E -l2cosψ e ,η E -l2sinψ e ,ζ E ) (14)

[0073] P n-4 =(ξ E -l3cosψ e ,η E -l3sinψ e ,ζ E ) (15)

[0074] In the above formula, ψe represents the yaw angle of the underactuated AUV at the end point, l2 and l3 are positive real numbers, and l3>l2.

[0075] After determining the path points at the starting and ending ends, the grid method is used to set the middle path points. Since the grid map can obtain better planning results in two-dimensional conditions, directly applying it to a three-dimensional environment will greatly reduce the efficiency of the algorithm. This is because the number of grids in a three-dimensional environment has increased significantly compared to that in a two-dimensional environment, which greatly increases the amount of algorithm calculation. Considering that under-actuated underwater robots in actual navigation cannot frequently float or dive, and will maintain a constant rudder angle for navigation most of the time, the three-dimensional environment can be simply highly dimensionally reduced. Specifically, the highly dimensionally reduced in this application is to design the middle path points to include the starting path point P4 and the ending path point P n-4 The plane is not necessarily projected onto the horizontal plane, because P4 and P n-4 A plane α is constructed through these two path points and parallel to the E-ζ axis of the coordinate system. A plane α is constructed perpendicular to the α plane and includes path points P4 and P n-4 plane β, in plane β, according to path point P4 and path point P n-4 Sets a non-uniform grid for the bounds as intermediate search path points.

[0076] like Figure 3 As shown, first pass through the starting path point P4 and the end path point P n-4 , draw a plane α through these two path points and parallel to the E-ζ axis of the coordinate system, and then draw a plane perpendicular to the α plane and including the path points P4 and P n-4 plane β, in plane β, according to path point P4 and path point P n-4 A non-uniform grid is set for the boundary as the intermediate search path points, from which the determined path points at both ends and the intermediate search path points are set.

[0077] The present invention designs different heuristic functions for soft and hard constraints, also called fitness functions. The fitness values ​​of individuals in the population can be calculated through the fitness function, and subsequent operations such as crossover and mutation are performed according to the fitness values.

[0078] After the population is initialized, the genetic algorithm needs to design a fitness function to evaluate the performance of individuals in the population, that is, to judge the quality of the generated path. Considering that this paper divides the constraints into hard constraints and soft constraints, it is necessary to design different fitness functions according to different constraints and put them into the improved genetic algorithm. The fitness function designed according to the hard constraints is:

[0079]

[0080] In the above formula, n represents the total number of path points of the global path planning obtained by the algorithm. Since the cubic B-spline curve is used for path optimization, the global path is connected by n-3 segments of cubic B-spline curves, where w i Indicates the weight coefficient of each curve, b i Indicates whether each curve segment meets the hard constraint condition. The expression is as follows:

[0081]

[0082] The fitness function designed based on hard constraints can select a feasible global path in the population. If you want to obtain the shortest path or the path with the best energy consumption, you need to continue to optimize based on the soft constraints. In this case, you need to design a fitness function for the soft constraints:

[0083]

[0084] In the above formula, k E and k L They represent the weight coefficients of path length L and energy consumption E, L min and E min They represent the ideal shortest path and the least energy consumption respectively.

[0085] For the selection strategy in the traditional genetic algorithm, in order to avoid the premature phenomenon of the algorithm and ensure that better individuals can directly enter the next generation population, the present invention designs a hybrid selection strategy based on soft and hard fitness functions, which is a combination of two selection methods. The first method is an elite selection strategy combining soft and hard fitness functions. The traditional elite selection strategy is to copy a small number of optimal candidate solutions to the next generation intact, while the elite selection strategy combining soft and hard fitness functions designed in this paper, when the highest fitness value of the individuals in the round population has not reached the maximum, that is, the maximum fitness value is b in formula (16) i When all are 1, a small number of individuals with high fitness will be directly retained in the next generation, which can improve the convergence effect of the algorithm. When some individuals in the population have reached the maximum fitness value, these individuals are sorted by the soft constraint fitness function, and some individuals with the maximum fitness value f1 and the smallest f2 value are directly retained in the next generation. In this way, the current optimal individuals are retained, and the population can be optimized through subsequent crossover operations. The second method is the roulette selection strategy, where the probability of an individual being selected is proportional to its fitness value.

[0086] Reasonable selection of crossover probability P in existing genetic algorithms c and mutation probability P m It is a key factor affecting the convergence of the algorithm and the quality of solving the optimal path. cand P m If the value is too small, the iterative process of calculation will be difficult to generate new individuals, resulting in a slow search process. c and P m A value that is too large is not conducive to retaining excellent individuals, resulting in a lack of search guidance and destroying the genetic model. c and P m It has a huge impact on the performance and convergence of the algorithm. In the early stage of iteration, the algorithm is expected to have a strong search ability to ensure the diversity of individuals in the population as much as possible. At the end of the iteration, the algorithm is expected to ensure that excellent individuals are stably retained, the algorithm runs stably and is not easy to fall into the local optimum. Therefore, the adaptive crossover probability P is introduced. c1 and adaptive mutation probability P m1 To replace P c and P m .

[0087] Specifically, the optimization process mainly includes:

[0088] 1. Design initialization population strategy

[0089] The initialization strategy of the traditional genetic algorithm is to randomly select path points in the search area to form individual populations to achieve population initialization. Although this method is easy to implement, there are many infeasible paths in the generated population individuals, which will affect the convergence speed of the genetic algorithm. In order to obtain more individuals with feasible paths during population initialization, the present invention fully considers the hard constraints and designs a strategy that combines the random method with the heuristic method based on hard constraints. The specific process of this strategy is as follows:

[0090] a. First determine the number of individuals in the population M;

[0091] b. According to the path points P2, P3 and P4 determined at both ends, select the path point interval that constitutes the cubic B-spline curve that meets the hard constraint conditions from the search path point P5. Similarly, according to the path point P n-2 , P n-3 and P n-4 , in P n-5 Select the path point interval that constitutes the cubic B-spline curve and satisfies the hard constraint conditions from the search path points, and randomly select from the two feasible path point intervals;

[0092] c. For P5 to P n-5 The path points between them are randomly generated in the search path points according to the original random method.

[0093] 2. Design selection strategy

[0094] Since two different fitness functions are designed according to different constraints, a mixed selection strategy is designed using two different constraints, which includes the elite strategy of the dual fitness function and the roulette strategy. The purpose of the selection strategy is to make the population evolve towards better individuals, thereby selecting high-quality individuals in the population for crossover processing with a greater probability. The selection strategy increases the number of high-quality individuals in the population and eliminates inferior individuals. The elite strategy of the dual fitness function of the present invention is when no individual in the population reaches the maximum value of f1, that is, b in the fitness function formula 16 designed according to the hard constraint condition i When all are 1, the population is sorted from large to small according to the fitness value of f1, and a small number of individuals with high fitness values ​​are directly retained in the next generation. This can increase the speed of generating feasible paths. When some individuals in the population reach the maximum value of f1, the individuals that reach f1 are sorted from small to large according to the fitness value of f2, and a small number of individuals with small f2 fitness values ​​are directly retained in the next generation. This will retain some high-quality individuals in the contemporary population, and the population can be optimized through subsequent crossover operations. The elite strategy based on the dual fitness function will select some individuals to enter the next generation, and the remaining individuals will be selected by the roulette strategy. The roulette strategy is mainly based on the fitness function f1 designed with hard constraints. This is because the acquisition of the optimal path is based on the generation of feasible paths. The selection probability of individuals in the population is determined by the fitness function value of individual f1. The expression is as follows:

[0095]

[0096] In the above formula, P(i) represents the selection probability of individual i in the population, f 1,i represents the fitness value of individual i, m represents the total number of individuals in the population, and if M individuals are selected from the population, the roulette wheel needs to be rotated M times.

[0097] 3. Design adaptive crossover coefficient and coefficient of variation

[0098] Cross coefficient P c It is used to indicate the probability that two parent individuals will be exchanged when the population individuals perform a crossover operation. After the crossover operation, two offspring individuals will be obtained. The fitness values ​​of the two offspring individuals may be better than those of the parent individuals, thus achieving the purpose of iterative optimization. m It is used to indicate the probability of whether a single individual in the population will change the position of a path point at a certain path point. The mutated individual may also obtain a higher fitness value. From this, we can know that in the genetic algorithm, the appropriate crossover coefficient P is selected. c And the coefficient of variation P m It is a key factor that affects the convergence of the algorithm and whether the optimal path can be found. In traditional genetic algorithms, the crossover coefficient P is generallyc And the coefficient of variation P m Set to a fixed value, that is, these two coefficients will not change according to the number of iterations of the algorithm. However, considering the need for optimal path search, in the early stage of algorithm iteration, it is hoped that more new individuals can be obtained, and the search area of ​​the path has a stronger search ability. At the end of the algorithm iteration, it is hoped that high-quality individuals can be retained as much as possible, and the search interval for the path may be narrowed to the interval where high-quality individuals are located, and the algorithm can be guaranteed to run stably. Therefore, the adaptive cross coefficient P is introduced here. c1 and adaptive coefficient of variation P m1 , their expressions are as follows:

[0099]

[0100]

[0101] In the above formula, g represents the number of iterations of the algorithm, g max It represents the maximum number of iterations of the algorithm. From the above formula, it can be concluded that as the number of iterations of the algorithm increases, the adaptive cross coefficient P c1 and the adaptive coefficient of variation P m1 The part controlled by g will decrease, but the coefficient should not only depend on the number of iterations, but also consider the relationship between the fitness value of individuals in the population and the overall fitness, that is, f max represents the fitness value of the best individual in the population in this iteration, f c1 Indicates the one with the lower fitness value among the two individuals that are crossovered in this iteration, f avg represents the average fitness value of the population in this iteration, f m1 Indicates the fitness value of the individual that performs mutation operation in this iteration. From the above formula, it can be concluded that when the fitness value of an individual is greater than the average fitness value of the population, the higher the fitness value of the individual, the smaller the value of the part controlled by the fitness value, that is, it has a protective effect on high-quality individuals. When the fitness value of an individual is small, the value of the part controlled by the fitness value will increase, promoting the individual to perform crossover and mutation operations to generate new individuals. k1, k2, k3 and k4 are all constants, and k1 is greater than k3, and k2 is greater than k4.

[0102] Since the expected crossover probability and mutation probability are different at the beginning and end of the algorithm iteration, the adaptive crossover and mutation probability decreases with the increase of the number of iterations, so that the diversity of individuals in the initial population can be achieved, and the individuals in the final population can be stable. Individuals with high fitness values ​​should be protected, so the closer the fitness value of the individual is to the fitness value of the best individual of this generation, the crossover probability and mutation probability should be reduced. Then, after continuous iteration of the population, the optimal global recovery path can be obtained at the end of the iteration. The overall algorithm flow chart is as follows: Figure 4 shown.

[0103] The scheme and effect of the present invention are further described below through a specific application example.

[0104] Figure 5(a) shows the simulated test environment, where the size of the test environment is 600m×600m×50m, the starting position of the AUV is defined as (300,400,35), and the initial posture of the AUV is (0,0,0).

[0105] is the path planned by the heuristic adaptive genetic algorithm, and Figure 5(d) is the path planned by the improved genetic algorithm in this paper. From the planning results of these three algorithms, it can be seen that the path planned by the improved genetic algorithm in this paper is the best.

[0106] For this test environment, each algorithm was run 20 times, and the average path length, longest path and shortest path of the 20 experimental algorithms were counted. As can be seen from the table below, the improved genetic algorithm in this paper is superior to the traditional genetic algorithm and the heuristic adaptive genetic algorithm in terms of the length of the generated path. In these 20 experiments, whether it is the average path length, the longest path or the shortest path, it is better than the other two algorithms. Since the crossover coefficient of the traditional genetic algorithm is fixed in the process of population crossover, it may destroy the optimal individual, so the minimum path and the maximum path in the experimental results are very different, indicating that the algorithm search ability is not stable enough. The heuristic adaptive genetic algorithm is adaptively designed for the crossover coefficient and the coefficient of variation of the genetic method, and protects the better individuals. Therefore, compared with the traditional genetic algorithm, the difference between the longest path length and the shortest path length is reduced, the average path length is also reduced, and the algorithm stability is improved. After further improving the algorithm crossover coefficient and the coefficient of variation, the improved genetic algorithm in this paper has a similar search for the longest path length and the shortest path length, and the average path length is shorter and basically equal to the searched shortest path length, indicating that the algorithm search is more stable.

[0107] Table 1 Comparison of path lengths generated by each algorithm

[0108]

[0109] The second case is to plan the path from the starting point to the end point in the simulated case of ocean current and no obstacles. In this case, it is assumed that the speed of the AUV is stable during the entire operation. At this time, the energy consumption of the AUV is not only affected by the path length, but also by the ocean current. That is, energy consumption can be reduced when following the ocean current, and energy consumption will increase when going against the ocean current. Therefore, for the weight coefficient in the soft constraint, the weight can be set to meet the task requirements. That is, if the recovery path length is required to be as short as possible, then k is set as large as possible.L If the energy consumption during recycling is as low as possible, k can be set as large as possible. E The value of. Figure 6(a) is a simulated test environment, in which the size of the test environment is a two-dimensional environment of 600m×600m, with x=200 as the dividing line, the current direction at x<200 is 3π / 4, and the current direction at x>200 is 3π / 4. Assuming the current size is 0.5m / s, the starting position of the AUV is defined as (400,100,0), the initial posture of the AUV is (0,0,-π), the end position of the AUV is defined as (0,100,0), and the final posture of the AUV is (0,0,-π). Figures 6(b), 6(c) and 6(d) are the paths planned by the improved genetic algorithm in this paper with different weight values. Table 2 shows the average path length and energy consumption results of 20 experiments with different weights. It can be seen from the planning results that the path planned by the improved genetic algorithm in this paper can obtain the corresponding global optimal path according to the weight set by the task.

[0110] Table 2 Comparison of path length and energy consumption with different weights

[0111]

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A three-dimensional underwater underactuated AUV recovery path planning method, characterized in that: The following steps are involved: S1. Obtain the position of a small hill in the underwater environment, and construct an underwater three-dimensional environment model based on the position of the small hill, and determine the starting position, starting attitude, end position and end attitude of the AUV during the recovery process; S2. Setting intermediate path points based on the starting position, starting attitude, end position and end attitude of the AUV during the recovery process; S3. Construct path planning constraints, which include hard constraints and soft constraints. The hard constraints include the turning radius constraint, the diving angle constraint and the collision avoidance constraint for the underactuated robot itself, and the soft constraints include the path length constraint and the energy consumption constraint. The hard constraints are obtained according to the following expression: Z(x i ,y i )>Z1(x i ,y i ),i=1,2,…,n Among them, Z(x i ,y i ) is the path curve at (x i ,y i ), Z1(x i ,y i ) is the seabed model at (x i ,y i ) at the height value; in, represents the curvature of the curve projected on the horizontal plane, and Represents the gradient of the curve in three directions, R min is the minimum radius of gyration, θ max is the maximum buoyancy angle; The soft constraint condition is obtained according to the following expression: Among them, (x i ,y i ,z i )、(x i+1 ,y i+1 ,z i+1 ) represent the three-dimensional state space coordinates of the i-th and i+1-th path points respectively; Among them, e i For each path energy consumption, P is the propulsion power of AUV, k is the drag coefficient, Indicates the speed of the AUV in a fixed coordinate system; S4, designing corresponding fitness functions according to the soft and hard constraints in the improved genetic algorithm, searching for feasible paths by iteratively utilizing the fitness functions designed by the hard constraints, and optimizing the feasible paths by utilizing the fitness functions designed by the soft constraints. When the specified number of iterations is reached, the algorithm is terminated to obtain the optimal global path after cubic B-spline smoothing, and the crossover coefficient and the coefficient of variation of the population are adaptively processed in the improved genetic algorithm; The expression for setting the fitness function for hard constraints is as follows: Among them, w i To adjust the weight, b i It means that when all n points of the curve satisfy the hard constraint conditions, it takes 1, otherwise it takes 0; The expression for setting the fitness function for soft constraints is as follows: f2=k L ·L / L min +k E ·E / E min In the above formula, k L , k E are the weight coefficients of path length L and energy consumption E, respectively. min 、E min They represent the ideal shortest path and energy consumption respectively.

2. A three-dimensional underwater underactuated AUV recovery path planning method according to claim 1, characterized in that: The underwater three-dimensional environment model described in S1 is: Among them, X, Y and Z represent the three-dimensional space domain, x0 represents the horizontal coordinate of the center of the small hills on the seabed, y0 represents the vertical coordinate of the center of the small hills on the seabed, σ, a and b represent the width control coefficients of the small hills on the seabed. The larger σ is, the larger the width of the small hills on the seabed is, the smaller σ is, the smaller the width of the small hills on the seabed is, the larger a is, the smaller the width of the small hills on the seabed is along the y-axis, the smaller a is, the larger the width of the small hills on the seabed is along the y-axis, the larger b is, the smaller the width of the small hills on the seabed is along the x-axis, the larger b is, the smaller the width of the small hills on the seabed is along the x-axis, h represents the height of the small hills on the seabed, and n represents the number of small hills on the seabed.

3. A three-dimensional underwater underactuated AUV recovery path planning method according to claim 1, characterized in that: The starting point of the path in S2 is expressed as follows: Among them, P s is the starting path point position, It is expressed as the first-order derivative of the path curve at the starting end, is the velocity vector of the underactuated AUV during recovery, k1 is a positive real number; The expression of the end position is as follows: Among them, P E It is represented as the end point of the global planning path, which is on the center line of the recovery docking platform and its posture points to the center of the docking platform. It is expressed as the first-order derivative of the path curve at the end point, Indicates that from P E The unit vector pointing to the center of the dock, k2, is expressed as a positive real number.

4. A three-dimensional underwater underactuated AUV recovery path planning method according to claim 1, characterized in that: The expression of the cubic B-spline curve in S4 is as follows: Among them, P j (t) is the segmented representation of the entire path curve, which represents the jth segment of the curve. Each segment of the B-spline curve consists of 4 path points. t is the independent variable coefficient, P j (t) where t = 0 indicates the starting point of the jth curve segment, P j (t) where t = 1 indicates the end point of the jth curve segment, N i (t) is the basis function of cubic B-spline, and the overall curve is composed of M+1 cubic B-spline curves.

5. A three-dimensional underwater underactuated AUV recovery path planning method according to claim 1, characterized in that: In S4, adaptive processing is performed on the crossover coefficient and the coefficient of variation in the genetic algorithm, including calculating the adaptive crossover probability P according to the following expression: c1 and adaptive mutation probability P m1 : Among them, f1′ is the individual with the smaller fitness value among the two individuals in the crossover operation, f2′ is the fitness value of the individual in the mutation operation, g is the number of iterations, and g max is the maximum number of iterations, f avg is the average fitness value of the population in this iteration, f max is the maximum fitness value in the population of this iteration, and k1, k2, k3 and k4 are all preset constants.

Citation Information

Patent Citations

  • Underwater positioning method for recycling AUV

    CN111650970A

  • Three-dimensional underwater under-actuated AUV path planning method based on improved ant colony algorithm

    CN113341998A