Global trajectory planning method for underwater vehicle under multi-constraint condition
Through B-spline parameterization and regional optimization RRT algorithm, the problem of low efficiency of trajectory planning of underwater vehicles in complex environments is solved, efficient and safe trajectory planning is achieved, multiple constraints are met, and the performance and performance of the aircraft are improved. Responsiveness.
Patent Information
- Application Number
- CN202410633337.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-03
AI Technical Summary
When existing underwater vehicles are planning trajectories in complex environments, the algorithm complexity and computational burden are large, resulting in low efficiency. Especially in non-stationary initial states, trajectory optimization is more likely to fail, making it difficult to meet real-time requirements.
B-spline is used to parameterize the underwater vehicle trajectory, and multiple constraints are converted into B-spline control point constraints. Combined with the regional optimization RRT algorithm, a regional optimization node expansion strategy is designed to achieve global trajectory planning.
It improves the efficiency and performance of trajectory planning, ensures the stability and safety of the trajectory in complex environments, reduces mechanical wear and energy consumption, meets various constraints, and improves the navigation reliability of underwater vehicles.
Smart Images

Figure CN118584983A
Abstract
Description
Technical Field
[0001] The invention relates to the field of global trajectory planning of underwater vehicles, and in particular to a global trajectory planning method of underwater vehicles under multiple constraints. Background Art
[0002] An underwater vehicle is a robotic system that performs detection, mapping, and search in an underwater environment. Its applications involve the fields of marine science research, seabed resource exploration, underwater rescue, and marine engineering. However, underwater vehicles face many challenges and problems in their application and trajectory planning.
[0003] In order for underwater vehicles to navigate underwater in complex environments with various static obstacles, it is necessary to consider multiple constraints for global trajectory planning to provide a safe and feasible trajectory. Due to the limited computing power of airborne equipment, most popular global trajectory planning methods adopt a hierarchical framework. Although the hierarchical framework is an efficient strategy, when the initial state of the underwater vehicle is a non-stationary state, the possibility of trajectory optimization failure is relatively high. There are many complex implementation steps and algorithms in the existing technology, including local area planning, optimization analysis and complex algorithm tuning, which may increase the implementation difficulty and computational burden of practical applications. The complexity of the algorithm and the dependence on parameter setting and tuning may lead to low efficiency, which may be challenging for underwater applications with high real-time requirements. Summary of the invention
[0004] The purpose of the present invention is to provide a global trajectory planning method under multiple constraints for underwater vehicles. First, the actual underwater navigation requirements and system physical limitations of underwater vehicles are considered, and a global trajectory planning model under multiple constraints is established; then, the underwater vehicle trajectory is parameterized using B-spline, the original constraints are converted into constraints on B-spline control points, and a regional optimization node expansion strategy is designed in combination with the characteristics of B-spline; finally, a regional optimization RRT algorithm is designed to finally realize the global trajectory planning of underwater vehicles.
[0005] A global trajectory planning method for an underwater vehicle under multiple constraints of the present invention comprises the following steps:
[0006] S1. Considering the actual underwater navigation requirements of the underwater vehicle and the physical limitations of the system, a global trajectory planning model under multiple constraints including dynamic constraints, endpoint constraints, feasibility constraints and safety constraints is established;
[0007] S2, deriving a global trajectory planning problem according to the global trajectory planning model, parameterizing the trajectory of the underwater vehicle using B-spline, converting the constraints into constraints on B-spline control points; and converting the global trajectory planning problem from solving polynomial coefficients to solving a B-spline control point sequence;
[0008] S3. Design a regional optimization node expansion scheme: First, along the sampling point c rand The direction of the expansion node c near The parent node c parent Expand once with a fixed step size l to get the expanded node c nearest ; Then, c nearest As a new expansion node, it is expanded for the second time to generate a new node c new Then, the regional optimization node expansion strategy is combined with the RRT algorithm, and a regional optimization RRT algorithm characterized by nearest neighbor state search and regional optimization expansion is designed, and the B-spline control point constraints are solved to obtain the global trajectory.
[0009] Furthermore, in S1, the actual underwater navigation requirements of the underwater vehicle and the physical limitations of the system are considered to establish a global trajectory planning model under multiple constraints:
[0010] map Contains different stationary obstacles, which constitute the obstacle area The free space in which underwater vehicles can safely navigate underwater is Given a starting point and target point The goal of local trajectory planning is to find init To the target point p goal The trajectory Where t0 is the starting time, t f is the target point time. The trajectory p(t) can be expressed by the following time parameter polynomial function:
[0011]
[0012] where a i i=1, ...k) are polynomial coefficients, k is the polynomial order, and t is time.
[0013] Considering the actual underwater navigation requirements and physical limitations of underwater vehicles, the trajectory obtained by trajectory planning must meet the following constraints, specifically:
[0014] Dynamic constraints:
[0015]
[0016] in u p (t) is the control input, For x p The first derivative of (t), are the first, second, and third order derivatives of the trajectory, A p is the structure matrix, B pis the input matrix;
[0017]
[0018] Where I3 is the 3rd order identity matrix and 03 is the 3rd order zero matrix.
[0019] Endpoint constraints:
[0020]
[0021]
[0022] where p(t0), are the starting point of the trajectory and its first, second and third order derivatives, respectively, p(t f ), are the trajectory target point and its first, second and third order derivatives, respectively, v init , v goal are the speeds of the underwater vehicle at the starting point and the target point, respectively, init , a goal are the accelerations of the underwater vehicle at the starting point and the target point, respectively, init , j goal are the acceleration derivatives of the underwater vehicle at the starting point and the target point, respectively. The endpoint constraint requires that the state of the planned trajectory at the endpoint is consistent with the desired state of the underwater vehicle, thereby avoiding unnecessary tracking errors;
[0023] Feasibility constraints:
[0024]
[0025] in are the maximum speed and maximum acceleration that the underwater vehicle can reach, 13 is the third-order unit matrix, t0 is the initial time, t f is the termination time. Considering that the energy of the actual underwater vehicle system is limited, this constraint limits the velocity and acceleration of the trajectory.
[0026] Security constraints:
[0027]
[0028] This constraint requires that the trajectory does not collide with any obstacles, thereby ensuring the safety of the underwater vehicle during underwater navigation. In summary, the global trajectory planning problem is:
[0029] Given the starting point of the underwater vehicle Target point Determine the polynomial coefficient a i , i = 1, ..., k, so that the trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints, and safety constraints;
[0030] In S2, the underwater vehicle trajectory is parameterized using B-spline, and the constraints are converted into constraints on B-spline control points, specifically:
[0031] Using B-spline to parameterize the trajectory, the trajectory can be re-expressed as:
[0032]
[0033] where [t0, t1, ..., t m-1 , t m ] is the B-spline knot vector, {c0, c1, ..., c n-1 , c n} is the set of B-spline control points, k is the degree of B-spline, N i,k (t) is the B-spline basis function, the number of nodes m+1 and the number of control points n+1 satisfy m=n+k+1, N i,k (t) can be calculated by the following recursive formula:
[0034]
[0035]
[0036] Uniform B-spline is used to represent the trajectory, that is, for i=0, 1, ..., m-1, Δt i =t i+1 -t i have the same value Δt;
[0037] B-spline basis function N i,k (t) is N i,0 (t), N i+1,0 (t), ..., N i+p,0 The linear combination of (t), N i,k (t) Only in the node interval [t i , t i+k+1 ) is non-zero, the node interval [t i , t i+1 ) can be calculated by the following formula:
[0038]
[0039] In [t i , t i+1 ) to normalize t, let As an intermediate variable, the above formula can be written in the following matrix representation:
[0040]
[0041] in are the B-spline basis vectors, is a B-spline basis matrix whose elements satisfy i, j = 0, ..., k, P i-k =[c i-k , ..., c i ] T is the node interval [t i , t i+1 ) is the control point vector on .
[0042] Dynamic constraint: Choose quintic B-spline to represent the trajectory, that is, k = 5. At this time, the fourth-order and lower derivatives of the trajectory are continuous and bounded, ensuring that the trajectory satisfies the dynamic constraint;
[0043] Endpoint constraint: The interval between the i-th node [t i , t i+1 )B-spline curve about The first, second, and third order derivatives of are:
[0044]
[0045]
[0046] in All are intermediate variables;
[0047] According to the local controllability of B-spline, any trajectory endpoint state can be converted into the corresponding control point through the above formula, and the control point can be directly specified to obtain different trajectory endpoint states.
[0048] Feasibility constraints: For a k-order uniform B-spline curve, its first-order and second-order derivatives are k-1 and k-2-order uniform B-spline curves respectively, and the control points v of the first-order and second-order derivatives are i and a i for:
[0049]
[0050] In order to ensure that the B-spline curve meets the velocity and acceleration constraints of the underwater vehicle, according to the convexity of the B-spline, its control points must meet the following conditions:
[0051]
[0052]
[0053] At this point, the feasibility constraints on the trajectory are converted into constraints on the B-spline control points. i and ci+1 Limiting the distance between can ensure that the B-spline trajectory always meets the feasibility constraint;
[0054] Safety constraint: Since the deviation between the geometric path and the corresponding trajectory is limited, the safety of the geometric path can ensure the safety of the trajectory by dilating the obstacles to a certain extent. First, the maximum deviation between the geometric path and the corresponding trajectory needs to be determined. This method improves the search method to determine the B-spline control points based on the local controllability of the B-spline to determine the maximum deviation value;
[0055] The control points of the quintic B-spline are c1, c2, c3, c4, c5, c6, and the control point c i , c i+1 The distance between them is l, i = 1, 2, 3, 4, 5, then the coordinates of any point on the trajectory corresponding to these control points are:
[0056]
[0057] in w i (·) is the control point c i The corresponding coefficients are i=1, 2, 3, 4, 5, 6;
[0058] The corresponding coefficients w1 and w6 of control points c1 and c6 are much smaller than those of the other four control points, so the influence of these two control points on the trajectory can be ignored. In the above formula, any point on the trajectory can be approximately determined by the following formula:
[0059]
[0060] Since the above formula only involves four control points, we can keep control points c3 and c4 fixed and change control points c2 and c5 to get different trajectories. When the distance between two control points is l, their positional relationship can be expressed as:
[0061] c i+1 =c i +lf i,i+1 ,
[0062] in θ i,i+1 ∈[0,π] is a vector The angle between the positive z-axis and the origin of the rectangular coordinate system is ci. is a vector The projection on the rectangular coordinate system xOy plane and x The angle of the positive axis can be obtained from the above formula:
[0063]
[0064] The coefficients of control points c3 and c4 are much larger than those of other control points, which makes the two endpoints of the quintic B-spline trajectory near c3 and c4 respectively, and the overall trajectory is close to the geometric path formed by points c3 and c4. To this end, the following method is used to select three points c3, 0.5 (c3 + c4), and c5 to determine the maximum deviation value; for any Calculate separately The distance to points c3, 0.5(c3+c4), c5, the maximum deviation between the geometric path and the corresponding trajectory can be expressed as:
[0065]
[0066] Substituting (2) into (1) we can obtain:
[0067]
[0068] Since the control points c3 and c4 are freely determinable, the maximum deviation value can be calculated iteratively through (1) and (2); specifically, iteratively selecting different θ i,i+1 and The deviation distance at this time is calculated by (1) and (2), thereby determining the maximum deviation value; i,i+1 and The sampling interval is set to 20°. The sampling interval is set to 0.05, and the calculated expansion value is 0.16671.
[0069] At this point, the trajectory planning problem is transformed from solving polynomial coefficients to solving the B-spline control point sequence, and the global trajectory planning problem can be restated as:
[0070] Given the starting point of the underwater vehicle Target point Determine the B-spline control point sequence {c0,...,c n}, so that its corresponding B-spline trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints and safety constraints.
[0071] Furthermore, in S3, the regional optimization node expansion strategy is combined with the RRT algorithm, the regional optimization RRT algorithm is designed and the B-spline control point constraints are solved to obtain the global trajectory, specifically:
[0072] First, along the sampling point c rand The direction of the expansion node c near The parent node c parent Expand once with a fixed step size l to get the expanded node c nearest ; Then, c nearestAs a new expansion node, it is expanded for the second time to generate a new node c new The implementation process of regional optimized expansion is as follows.
[0073]
[0074] In the region-optimized expansion strategy, the first node expansion determines c nearest ; The second node expansion starts from a candidate sampling point set The optimal node that meets the collision condition is selected to complete the expansion process, where the sampling point set The sampling point within c nearest The distance is the expansion step length l. Since the second-order derivative of the trajectory reflects the overall smoothness of the trajectory, the following formula is used to determine the new node c during the second node expansion: new :
[0075]
[0076] where γ is a non-negative constant, P=[c k , ..., c 1 , c parent , c nearest , c] T , where c i It is c i-1 The parent node of .
[0077] In order to determine the B-spline control point sequence to complete global trajectory planning, the regional optimization node expansion strategy and the RRT algorithm are combined, and a regional optimization RRT algorithm is proposed.
[0078] Nearest neighbor state search: The regional optimization RRT algorithm determines the random tree according to the following cost function The node c that is "closest" to the sampling point near :
[0079]
[0080] where ∈ is a non-negative constant, cos -1 (·) is the arccosine function, c T (1) = b(1)M k P, P = [c k , ..., c 1 , c] T , where c 1 is the parent node of c, c i It is c i-1 The parent node of .
[0081] Regional optimization expansion: The regional optimization RRT algorithm uses regional optimization expansion, so each iteration generates two new control points and two new edges. In order to ensure that the trajectory can meet the speed constraint, the expansion step l of the regional optimization expansion is set to v max Δt.
[0082] The main process of the algorithm is as follows:
[0083]
[0084] Compared with the prior art, the present invention has the following beneficial effects:
[0085] (1) Global trajectory planning model under multiple constraints: Considering the actual underwater navigation requirements of underwater vehicles and the physical limitations of the system, a global trajectory planning model suitable for multiple constraints is proposed. This model can better meet the path planning requirements under complex constraints in underwater environments.
[0086] (2) B-spline parameterized trajectory design: B-spline is used to parameterize the underwater vehicle trajectory, and the original constraints are converted into constraints on the B-spline control points. Its continuous derivative characteristics can ensure the smoothness of the underwater vehicle during its movement and reduce mechanical wear and energy consumption.
[0087] (3) Regional Optimization Node Expansion Strategy: The patent has designed a regional optimization node expansion strategy, which uses the B-spline characteristics and regional optimization algorithm to achieve the optimization and adjustment of nodes in the underwater vehicle trajectory planning process. This strategy can improve the efficiency and performance of trajectory planning.
[0088] (4) Regional optimization RRT algorithm: The regional optimization RRT algorithm is introduced to realize the global trajectory planning of the underwater vehicle.
[0089] The RRT algorithm is an efficient path search algorithm that combines random sampling and tree search and is suitable for path planning tasks in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] Figure 1 It is a schematic diagram of the process of the present invention;
[0091] Figure 2 This is the result diagram of the narrow channel environment planning;
[0092] Figure 3 It is a narrow channel environment trajectory information map;
[0093] Figure 4 is the minimum distance graph between the trajectory and the narrow channel;
[0094] Figure 5 This is the planning result diagram of complex channel environment. DETAILED DESCRIPTION
[0095] The present invention will be further described in detail below in conjunction with the specific drawings.
[0096] The present invention discloses a global trajectory planning method under multiple constraints for an underwater vehicle. The method comprises the following steps: first, considering the actual underwater navigation requirements and system physical limitations of the underwater vehicle, a global trajectory planning model under multiple constraints is established; then, the underwater vehicle trajectory is parameterized using B-spline, the original constraints are converted into constraints on B-spline control points, and a regional optimization node expansion strategy is designed in combination with the characteristics of B-spline; finally, a regional optimization RRT algorithm is designed to finally realize the global trajectory planning of the underwater vehicle. In order to illustrate the feasibility of the present invention, two specific embodiments will be described below.
[0097] In order to perform global trajectory planning, a reasonable method is needed to deal with multiple constraints. Compared with polynomial curves, B-spline curves have clearer physical meanings because they are determined by a sequence of control points in space. B-spline curves are more flexible and have many good properties. In fact, for trajectory planning, the unique properties of B-splines are used to convert the original constraints into a simpler form, thereby reducing the difficulty of planning. Due to its good scalability, the RRT algorithm can consider multiple constraints for trajectory planning, and avoid the problems of the hierarchical planning framework. In view of the problem that the traditional RRT algorithm is difficult to obtain high-quality trajectories, this method combines the characteristics of B-splines to design a regional optimization node expansion strategy, which can optimize the existing trajectories in some areas when the nodes are expanded, thereby improving the overall smoothness of the trajectory.
[0098] Embodiment 1
[0099] like Figure 1 As shown, a global trajectory planning method for an underwater vehicle under multiple constraints of the present invention comprises the following steps:
[0100] S1. Considering the actual underwater navigation requirements of the underwater vehicle and the physical limitations of the system, a global trajectory planning model under multi-constraint conditions is established:
[0101] This method is based on map information, which contains different stationary obstacles, so that the environment can be modeled more accurately, so as to plan the navigation trajectory more effectively. The trajectory is represented by a time-parameter polynomial function, which is concise and flexible, and can well describe the shape and characteristics of the navigation path. It is also convenient to optimize and adjust the trajectory.
[0102] map Contains different stationary obstacles, which constitute the obstacle area The free space in which underwater vehicles can safely navigate underwater is Given a starting point and target point The goal of local trajectory planning is to find init To the target point p goal The trajectory Where t0 is the starting time, t f is the target point time. The trajectory p(t) can be expressed by the following time parameter polynomial function:
[0103]
[0104] where a i (i=1, . . . k) are polynomial coefficients, k is the polynomial order, and t is time.
[0105] This method comprehensively considers the actual underwater navigation requirements and physical limitations of underwater vehicles. By comprehensively considering dynamic constraints, endpoint constraints, feasibility constraints and safety constraints, this method can generate trajectories that meet multiple requirements and improve the safety and reliability of navigation. Among them, the endpoint constraint ensures that the state of the trajectory at the starting point and the target point is consistent with the expected state, reducing the tracking error; the feasibility constraint takes into account the limited energy and limits the speed and acceleration of the trajectory, making the trajectory more in line with actual underwater navigation conditions; the safety constraint ensures that the trajectory does not collide with any obstacles, ensuring the safety of the underwater vehicle. The comprehensive advantages of this method enable it to generate efficient and safe trajectories, providing reliable guarantees for the practical application of underwater vehicles.
[0106] Considering the actual underwater navigation requirements and physical limitations of underwater vehicles, the trajectory obtained by trajectory planning must meet the following constraints, specifically:
[0107] Dynamic constraints:
[0108]
[0109] in u p (t) is the control input, For x p The first derivative of (t), are the first, second, and third order derivatives of the trajectory, respectively.
[0110]
[0111] Where I3 is the 3rd order identity matrix and 03 is the 3rd order zero matrix.
[0112] Endpoint constraints:
[0113]
[0114]
[0115] where p(t0), are the starting point of the trajectory and its first, second and third order derivatives, respectively, p(t f ), are the trajectory target point and its first, second and third order derivatives, respectively, v init , v goal are the speeds of the underwater vehicle at the starting point and the target point, respectively, init , a goal are the accelerations of the underwater vehicle at the starting point and the target point, respectively, init , j goal are the acceleration derivatives of the underwater vehicle at the starting point and the target point, respectively. The endpoint constraint requires that the state of the planned trajectory at the endpoint is consistent with the desired state of the underwater vehicle, thereby avoiding unnecessary tracking errors;
[0116] Feasibility constraints:
[0117]
[0118] in are the maximum speed and maximum acceleration that the underwater vehicle can reach, 13 is the third-order unit matrix, t0 is the initial time, t f is the termination time. Considering that the energy of the actual underwater vehicle system is limited, this constraint limits the velocity and acceleration of the trajectory.
[0119] Security constraints:
[0120]
[0121] This constraint requires that the trajectory does not collide with any obstacles, thereby ensuring the safety of the underwater vehicle during underwater navigation. In summary, the global trajectory planning can be expressed as the following problem:
[0122] Given the starting point of the underwater vehicle Target point Determine the polynomial coefficient a i , i = 1, ..., k, so that the trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints, and safety constraints;
[0123] The advantage of this approach is that it combines the rigor of mathematical optimization with the flexibility of practical applications, allowing for precise control of the vehicle's path while taking into account the various constraints and requirements of actual operations.
[0124] S2. A global trajectory planning problem is obtained according to the global trajectory planning model, and the trajectory of the underwater vehicle is parameterized by B-spline, and the constraints are converted into constraints on B-spline control points; and the global trajectory planning problem is converted from solving polynomial coefficients to solving B-spline control point sequences; specifically:
[0125] This method uses B-spline parameterized trajectory to convert various constraints into constraints on B-spline control points. By using B-spline to parameterize the trajectory, the trajectory can be expressed more flexibly and can be efficiently calculated through recursive formulas. The use of uniform B-spline to represent the trajectory simplifies the expression and calculation process of the trajectory. The processing of dynamic constraints and endpoint constraints makes the trajectory meet the dynamic characteristics of the system and the desired starting and target states, while the feasibility constraints ensure that the trajectory meets the speed and acceleration constraints of the underwater vehicle by limiting the distance between B-spline control points. In terms of safety constraints, by expanding the obstacles and iteratively calculating the maximum deviation value, it is ensured that the trajectory will not collide with the obstacles, thereby ensuring the safety of the underwater vehicle. This method transforms the trajectory planning problem into a problem of solving the B-spline control point sequence, making the planning results easier to understand and apply.
[0126] Using B-spline to parameterize the trajectory, the trajectory can be re-expressed as:
[0127]
[0128] where [t0, t1, ..., t m-1 , t m ] is the B-spline knot vector, {c0, c1, ..., c n-1 , c n} is the set of B-spline control points, k is the degree of B-spline, N i,k (t) is the B-spline basis function, the number of nodes m+1 and the number of control points n+1 satisfy m=n+k+1, N i,k (t) can be calculated by the following recursive formula:
[0129]
[0130]
[0131] Uniform B-spline is used to represent the trajectory, that is, for i=0, 1, ..., m-1, Δt i =t i+1 -t i have the same value Δt;
[0132] B-spline basis function N i,k (t) is N i,0 (t), N i+1,0 (t), ..., Ni+p,0 The linear combination of (t), N i,k (t) Only in the node interval [t i , t i+k+1 ) is non-zero, the node interval [t i , t i+1 ) can be calculated by the following formula:
[0133]
[0134] In [t i , t i+1 ) to normalize t, let The above formula can be written as the following matrix representation:
[0135]
[0136] in are the B-spline basis vectors, is a B-spline basis matrix whose elements satisfy i, j = 0, ..., k, P i-k =[c i-k , ..., c i ] T is the node interval [t i , t i+1 ) is the control point vector on .
[0137] Dynamic constraint: Choose quintic B-spline to represent the trajectory, that is, k = 5. At this time, the fourth-order and lower derivatives of the trajectory are continuous and bounded, ensuring that the trajectory satisfies the dynamic constraint;
[0138] Endpoint constraint: The interval between the i-th node [t i , t i+1 )B-spline curve about The first, second, and third order derivatives of are:
[0139]
[0140]
[0141] in All are intermediate variables;
[0142] According to the local controllability of B-spline, any trajectory endpoint state can be converted into the corresponding control point through the above formula, and the control point can be directly specified to obtain different trajectory endpoint states.
[0143] Feasibility constraints: For a k-order uniform B-spline curve, its first-order and second-order derivatives are k-1 and k-2-order uniform B-spline curves respectively, and the control points v of the first-order and second-order derivatives are iand a i for:
[0144]
[0145] In order to ensure that the B-spline curve meets the velocity and acceleration constraints of the underwater vehicle, according to the convexity of the B-spline, its control points must meet the following conditions:
[0146]
[0147]
[0148] At this point, the feasibility constraints on the trajectory are converted into constraints on the B-spline control points. i and c i+1 Limiting the distance between can ensure that the B-spline trajectory always meets the feasibility constraint;
[0149] Safety constraint: Since the deviation between the geometric path and the corresponding trajectory is limited, the safety of the geometric path can ensure the safety of the trajectory by dilating the obstacles to a certain extent. First, the maximum deviation between the geometric path and the corresponding trajectory needs to be determined. This method improves the search method to determine the B-spline control points based on the local controllability of the B-spline to determine the maximum deviation value;
[0150] The control points of the quintic B-spline are c1, c2, c3, c4, c5, c6, and the control point c i , c i+1 The distance between them is l, i = 1, 2, 3, 4, 5, then the coordinates of any point on the trajectory corresponding to these control points are:
[0151]
[0152] in w i (·) is the control point c i The corresponding coefficients are i=1, 2, 3, 4, 5, 6;
[0153] The corresponding coefficients w1 and w6 of control points c1 and c6 are much smaller than those of the other four control points, so the influence of these two control points on the trajectory can be ignored. In the above formula, any point on the trajectory can be approximately determined by the following formula:
[0154]
[0155] Since the above formula only involves four control points, we can keep control points c3 and c4 fixed and change control points c2 and c5 to get different trajectories. When the distance between two control points is l, their positional relationship can be expressed as:
[0156] c i+1 =c i +lf i,i+1 ,
[0157] in θ i,i+1 ∈[0,π] is a vector With the origin at c i The angle of the positive z-axis of the rectangular coordinate system, is a vector The angle between the projection of the xOy plane in the rectangular coordinate system and the positive direction of the x-axis can be obtained from the above formula:
[0158]
[0159] The coefficients of control points c3 and c4 are much larger than those of other control points, which makes the two endpoints of the quintic B-spline trajectory near c3 and c4 respectively, and the overall trajectory is close to the geometric path formed by points c3 and c4. To this end, the following method is used to select three points c3, 0.5 (c3 + c4), and c5 to determine the maximum deviation value; for any Calculate separately The distance to points c3, 0.5(c3+c4), c5, the maximum deviation between the geometric path and the corresponding trajectory can be expressed as:
[0160]
[0161] Substituting (2) into (1) we can obtain:
[0162]
[0163] Since the control points c3 and c4 can be freely determined, the maximum deviation value can be calculated iteratively through (1) and (2); specifically, iteratively selecting different θ i,i+1 and The deviation distance at this time is calculated by (1) and (2), thereby determining the maximum deviation value; i,i+1 and The sampling interval is set to 20°. The sampling interval is set to 0.05, and the calculated expansion value is 0.16671.
[0164] At this point, the trajectory planning problem is transformed from solving polynomial coefficients to solving the B-spline control point sequence. The global trajectory planning can be restated as the following problem:
[0165] Given the starting point of the underwater vehicle Target point Determine the B-spline control point sequence {c0,...,c n}, so that its corresponding B-spline trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints and safety constraints.
[0166] This method not only improves the flexibility and responsiveness of trajectory planning, but also simplifies the mathematical formulation of the problem, making the solution process more efficient. This method allows for fine-grained local adjustments to the trajectory, thereby optimizing the performance and response of the vehicle without sacrificing accuracy and safety.
[0167] S3. Combining the regional optimization node expansion strategy with the RRT algorithm, designing the regional optimization RRT algorithm and solving the B-spline control point constraints to obtain the global trajectory, specifically:
[0168] First, along the sampling point c rand The direction of the expansion node c near The parent node c parent Expand once with a fixed step size l to get the expanded node c nearest ; Then, c nearest As a new expansion node, it is expanded for the second time to generate a new node c new The implementation process of regional optimized expansion is as follows.
[0169]
[0170] In the region-optimized expansion strategy, the first node expansion determines c nearest ; The second node expansion starts from a candidate sampling point set The optimal node that meets the collision condition is selected to complete the expansion process, where the sampling point set The sampling point within c nearest The distance is the expansion step length l. Since the second-order derivative of the trajectory reflects the overall smoothness of the trajectory, the following formula is used to determine the new node c during the second node expansion: new :
[0171]
[0172] where γ is a non-negative constant, P=[c k , ..., c 1 , c parent , c nearest , c] T , where c i It is c i-1 The parent node of .
[0173] This method constructs the search space for trajectory planning by expanding the extended nodes with a fixed step length along the sampling point direction to generate new extended nodes. Secondly, the implementation process of regional optimization expansion is utilized. Through two node expansions, the first extended nodes and the second extended nodes are determined respectively, so that the trajectory planning can fully consider the smoothness and collision risk of the path and improve the quality of the planning results. In particular, in the second node expansion, by selecting the optimal node and performing collision detection, the expansion process is further optimized to ensure that the generated trajectory meets the collision detection conditions. In addition, this method utilizes the information of the second-order derivative during the second node expansion, determines the new node through the formula, and further improves the smoothness of the trajectory.
[0174] In order to determine the B-spline control point sequence to complete global trajectory planning, the regional optimization node expansion strategy and the RRT algorithm are combined, and a regional optimization RRT algorithm is proposed.
[0175] Nearest neighbor state search: The regional optimization RRT algorithm determines the random tree according to the following cost function The node c that is "closest" to the sampling point near :
[0176]
[0177] where ∈ is a non-negative constant, cos -1 (·) is the arccosine function, c T (1) = b(1)M k P, P = [c k , ..., c 1 , c] T , where c 1 is the parent node of c, c i It is c i-1 The parent node of .
[0178] Regional optimization expansion: The regional optimization RRT algorithm uses regional optimization expansion, so each iteration generates two new control points and two new edges. In order to ensure that the trajectory can meet the speed constraint, the expansion step l of the regional optimization expansion is set to v max Δt.
[0179] The main process of the algorithm is as follows:
[0180]
[0181]
[0182] The regional optimization node expansion strategy is combined with the RRT algorithm to effectively improve the efficiency and quality of global trajectory planning. The algorithm quickly searches for the trajectory between the starting point and the target point through random sampling and nearest neighbor state search, and generates a smooth trajectory that meets the speed constraint through regional optimization expansion. It takes into account the dynamic characteristics of the spacecraft and gradually optimizes the trajectory during the iteration process to ensure the reliability and practicality of the generated trajectory.
[0183] In order to verify the effectiveness of the regional optimization RRT algorithm in this paper, trajectory planning is performed in a narrow channel environment to analyze the safety and feasibility of the trajectory. Figure 2 The narrow channel environment shown in the figure, in which the gray shadow is the obstacle area, the total length of the channel is about 18m, the channel width is 0.7m, and the channel height is 1m. The specified initial control points are (0, 1.6, 0.5)m, (0, 1.6, 0.5)m, (0, 1.6, 0.5)m, (0, 1.6, 0.5)m, (0, 1.6, 0.5)m, (0, 1.6, 0.5)m, and the target control points are (11.4, 0.7, 0.7)m, (11.4, 0.7, 0.7)m, (11.4, 0.7, 0.7)m, (11.4, 0.7, 0.7)m, (11.4, 0.7, 0.7)m, (11.4, 0.7, 0.7)m, (11.4, 0.7, 0.7)m. The regional optimization RRT algorithm expansion step size is set to 0.3m, the B-spline node interval is 0.4s, the underwater vehicle radius is 0.2m, the maximum speed is 1.5m / s, and the maximum acceleration is 3m / s. 2 .
[0184] Figure 2 The black trajectory in the figure is the planned trajectory, and the point is its corresponding B-spline control point. It can be seen that the trajectory is always close to the center of the channel, so it is safer. Figure 3 It is the velocity and acceleration curve of the trajectory. Obviously, the velocity and acceleration of the trajectory meet the corresponding constraints, which shows that the regional optimization RRT algorithm can effectively consider multiple constraints for planning. Figure 4 It is the minimum distance curve between the trajectory and the narrow channel. It can be seen that the minimum distance between the trajectory generated by the regional optimization RRT algorithm and the narrow channel is always greater than the radius of the underwater vehicle, which indicates that the planned trajectory satisfies the safety constraints well.
[0185] Embodiment 2
[0186] like Figure 1 As shown, a global trajectory planning method for an underwater vehicle under multiple constraints of the present invention comprises the following steps:
[0187] S1. Considering the actual underwater navigation requirements of the underwater vehicle and the physical limitations of the system, a global trajectory planning model under multi-constraint conditions is established:
[0188] map Contains different stationary obstacles, which constitute the obstacle area The free space in which underwater vehicles can safely navigate underwater is Given a starting point and target point The goal of local trajectory planning is to find init To the target point p goal The trajectory Where t0 is the starting time, t f is the target point time. The trajectory p(t) can be expressed by the following time parameter polynomial function:
[0189]
[0190] where a i (i=1, . . . k) are polynomial coefficients, k is the polynomial order, and t is time.
[0191] Considering the actual underwater navigation requirements and physical limitations of underwater vehicles, the trajectory obtained by trajectory planning must meet the following constraints, specifically:
[0192] Dynamic constraints:
[0193]
[0194] in u p (t) is the control input, For x p The first derivative of (t), are the first, second, and third order derivatives of the trajectory, respectively.
[0195]
[0196] Where I3 is the 3rd order identity matrix and 03 is the 3rd order zero matrix.
[0197] Endpoint constraints:
[0198]
[0199]
[0200] where p(t0), are the starting point of the trajectory and its first, second and third order derivatives, respectively, p(t f ), are the trajectory target point and its first, second and third order derivatives, respectively, v init , v goal are the speeds of the underwater vehicle at the starting point and the target point, respectively,init , a goal are the accelerations of the underwater vehicle at the starting point and the target point, respectively, init , j goal are the acceleration derivatives of the underwater vehicle at the starting point and the target point, respectively. The endpoint constraint requires that the state of the planned trajectory at the endpoint is consistent with the desired state of the underwater vehicle, thereby avoiding unnecessary tracking errors;
[0201] Feasibility constraints:
[0202]
[0203] in are the maximum speed and maximum acceleration that the underwater vehicle can achieve, respectively. 13 is a third-order unit matrix. Considering that the energy of the actual underwater vehicle system is limited, this constraint limits the speed and acceleration of the trajectory.
[0204] Security constraints:
[0205]
[0206] This constraint requires that the trajectory does not collide with any obstacles, thereby ensuring the safety of the underwater vehicle during underwater navigation. In summary, the global trajectory planning can be expressed as the following problem:
[0207] Given the starting point of the underwater vehicle Target point Determine the polynomial coefficient a i , i = 1, ..., k, so that the trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints, and safety constraints;
[0208] Using B-spline to parameterize the trajectory, the trajectory can be re-expressed as:
[0209]
[0210] where [t0, t1, ..., t m-1 , t m ] is the B-spline knot vector, {c0, c1, . .., c n-1 , c n} is the set of B-spline control points, k is the degree of B-spline, N i,k (t) is the B-spline basis function, the number of nodes m+1 and the number of control points n+1 satisfy m=n+k+1, N i,k (t) can be calculated by the following recursive formula:
[0211]
[0212]
[0213] Uniform B-spline is used to represent the trajectory, that is, for i=0, 1, ..., m-1, Δt i =t i+1 -t i have the same value Δt;
[0214] B-spline basis function N i,k (t) is N i,0 (t), N i+1,0 (t), ..., N i+p,0 The linear combination of (t), N i,k (t) Only in the node interval [t i , t i+k+1 ) is non-zero, the node interval [t i , t i+1 ) can be calculated by the following formula:
[0215]
[0216] In [t i , t i+1 ) to normalize t, let The above formula can be written as the following matrix representation:
[0217]
[0218] in are the B-spline basis vectors, is a B-spline basis matrix whose elements satisfy i, j = 0, ..., k, P i-k =[c i-k , ..., c i ] T is the node interval [t i , t i+1 ) is the control point vector on .
[0219] S2. A global trajectory planning problem is obtained according to the global trajectory planning model, and the trajectory of the underwater vehicle is parameterized by B-spline, and the constraints are converted into constraints on B-spline control points; and the global trajectory planning problem is converted from solving polynomial coefficients to solving B-spline control point sequences; specifically:
[0220] Dynamic constraint: Choose quintic B-spline to represent the trajectory, that is, k = 5. At this time, the fourth-order and lower derivatives of the trajectory are continuous and bounded, ensuring that the trajectory satisfies the dynamic constraint;
[0221] Endpoint constraint: The interval between the i-th node [t i , ti+1 )B-spline curve about The first, second, and third order derivatives of are:
[0222]
[0223]
[0224] in All are intermediate variables;
[0225] According to the local controllability of B-spline, any trajectory endpoint state can be converted into the corresponding control point through the above formula, and the control point can be directly specified to obtain different trajectory endpoint states.
[0226] Feasibility constraints: For a k-order uniform B-spline curve, its first-order and second-order derivatives are k-1 and k-2-order uniform B-spline curves respectively, and the control points v of the first-order and second-order derivatives are i and a i for:
[0227]
[0228] In order to ensure that the B-spline curve meets the velocity and acceleration constraints of the underwater vehicle, according to the convexity of the B-spline, its control points must meet the following conditions:
[0229]
[0230]
[0231] At this point, the feasibility constraints on the trajectory are converted into constraints on the B-spline control points. i and c i+1 Limiting the distance between can ensure that the B-spline trajectory always meets the feasibility constraint;
[0232] Safety constraint: Since the deviation between the geometric path and the corresponding trajectory is limited, the safety of the geometric path can ensure the safety of the trajectory by dilating the obstacles to a certain extent. First, the maximum deviation between the geometric path and the corresponding trajectory needs to be determined. This method improves the search method to determine the B-spline control points based on the local controllability of the B-spline to determine the maximum deviation value;
[0233] The control points of the quintic B-spline are c1, c2, c3, c4, c5, c6, and the control point c i , c i+1 The distance between them is l, i = 1, 2, 3, 4, 5, then the coordinates of any point on the trajectory corresponding to these control points are:
[0234]
[0235] in w i (·) is the control point c i The corresponding coefficients are i=1, 2, 3, 4, 5, 6;
[0236] The corresponding coefficients w1 and w6 of control points c1 and c6 are much smaller than those of the other four control points, so the influence of these two control points on the trajectory can be ignored. In the above formula, any point on the trajectory can be approximately determined by the following formula:
[0237]
[0238] Since the above formula only involves four control points, we can keep control points c3 and c4 fixed and change control points c2 and c5 to get different trajectories. When the distance between two control points is l, their positional relationship can be expressed as:
[0239] c i+1 =c i +lf i,i+1 ,
[0240] in θ i,i+1 ∈[0,π] is a vector With the origin at c i The angle of the positive z-axis of the rectangular coordinate system, is a vector The angle between the projection of the xOy plane in the rectangular coordinate system and the positive direction of the x-axis can be obtained from the above formula:
[0241]
[0242] The coefficients of control points c3 and c4 are much larger than those of other control points, which makes the two endpoints of the quintic B-spline trajectory near c3 and c4 respectively, and the overall trajectory is close to the geometric path formed by points c3 and c4. To this end, the following method is used to select three points c3, 0.5 (c3 + c4), and c5 to determine the maximum deviation value; for any Calculate separately The distance to points c3, 0.5(c3+c4), c5, the maximum deviation between the geometric path and the corresponding trajectory can be expressed as:
[0243]
[0244] Substituting (2) into (1) we can obtain:
[0245]
[0246] Since the control points c3 and c4 are freely determinable, the maximum deviation value can be calculated iteratively through (1) and (2); specifically, iteratively selecting different θ i,i+1 and The deviation distance at this time is calculated by (1) and (2), thereby determining the maximum deviation value; i,i+1 and The sampling interval is set to 20°. The sampling interval is set to 0.05, and the calculated expansion value is 0.16671.
[0247] At this point, the trajectory planning problem is transformed from solving polynomial coefficients to solving the B-spline control point sequence. The global trajectory planning can be restated as the following problem:
[0248] Given the starting point of the underwater vehicle Target point Determine the B-spline control point sequence {c0,...,c n}, so that its corresponding B-spline trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints and safety constraints.
[0249] S3. Combining the regional optimization node expansion strategy with the RRT algorithm, designing the regional optimization RRT algorithm and solving the B-spline control point constraints to obtain the global trajectory, specifically:
[0250] First, along the sampling point c rand The direction of the expansion node c near The parent node c parent Expand once with a fixed step size l to get the expanded node c nearest ; Then, c nearest As a new expansion node, it is expanded for the second time to generate a new node c new The implementation process of regional optimized expansion is as follows.
[0251]
[0252]
[0253] In the region-optimized expansion strategy, the first node expansion determines c nearest ; The second node expansion starts from a candidate sampling point set The optimal node that meets the collision condition is selected to complete the expansion process, where the sampling point set The sampling point within c nearest The distance is the expansion step length l. Since the second-order derivative of the trajectory reflects the overall smoothness of the trajectory, the following formula is used to determine the new node c during the second node expansion: new:
[0254]
[0255] where γ is a non-negative constant, P=[c k , ..., c 1 , c parent , c nearest , c] T , where c i It is c i-1 The parent node of .
[0256] In order to determine the B-spline control point sequence to complete global trajectory planning, the regional optimization node expansion strategy and the RRT algorithm are combined, and a regional optimization RRT algorithm is proposed, which is characterized by:
[0257] Nearest neighbor state search: The regional optimization RRT algorithm determines the random tree according to the following cost function The node c that is "closest" to the sampling point near :
[0258]
[0259] where ∈ is a non-negative constant, cos -1 (·) is the arccosine function, c T (1) = b(1)M k P, P = [c k , ..., c 1 , c] T , where c 1 is the parent node of c, c i It is c i-1 The parent node of .
[0260] Regional optimization expansion: The regional optimization RRT algorithm uses regional optimization expansion, so each iteration generates two new control points and two new edges. In order to ensure that the trajectory can meet the speed constraint, the expansion step l of the regional optimization expansion is set to v max Δt.
[0261] The main process of the algorithm is as follows:
[0262]
[0263] A complex environment with a size of 40×40×5m was selected for testing, and the algorithm expansion step size was l=2m. The complex environment not only contains random obstacles, but also has certain narrow channels, so it is more complicated. Set the B-spline node interval Δt=0.5s, the underwater vehicle radius L=0.2m, and the maximum speed v max =5m / s, maximum acceleration amax =10m / s 2 The specified initial control points are (12, -3)m, (1, 2, -2)m, (1, 2, -1)m, (1, 2, 0)m, (1, 2, 1)m, (1, 2, 2)m, and the target control points are (38, 38, 2)m, (38, 38, 2)m, (38, 38, 2)m, (38, 38, 2)m, (38, 38, 2)m, (38, 38, 2)m. At this time, the initial position is (1, 2, 2)m, the initial velocity is (0, 0, 2)m / s, and the initial acceleration is (0, 0, 0)m / s 2 .
[0264] Figure 5 The simulation results of the RRT algorithm for regional optimization in complex environments are given, where the thick line trajectory is the feasible trajectory obtained by trajectory planning, and the thin line trajectory is the trajectory branch during the search process. Figure 5 It can be seen that the bold line trajectory is in the free space, thus ensuring the safety of navigation.
Claims
1. A global trajectory planning method for underwater vehicles under multiple constraints, characterized in that: The following steps are involved: S1. Considering the actual underwater navigation requirements of the underwater vehicle and the physical limitations of the system, a global trajectory planning model under multiple constraints including dynamic constraints, endpoint constraints, feasibility constraints and safety constraints is established; S2. deriving a global trajectory planning problem according to the global trajectory planning model, parameterizing the trajectory of the underwater vehicle using B-spline, converting the dynamic constraints, endpoint constraints, feasibility constraints and safety constraints into constraints on B-spline control points; and converting the global trajectory planning problem from solving polynomial coefficients to solving a B-spline control point sequence; S3. Design a regional optimization node expansion scheme: First, along the sampling point c rand The direction of the expansion node c near The parent node c parent Expand once with a fixed step size l to get the expanded node c nearest ; Then, c nearest As a new expansion node, it is expanded for the second time to generate a new node c new ; Then, the regional optimization node expansion strategy is combined with the RRT algorithm, and a regional optimization RRT algorithm characterized by nearest neighbor state search and regional optimization expansion is designed, and the B-spline control point constraints are solved to obtain the global trajectory.
2. The global trajectory planning method under multiple constraints of an underwater vehicle according to claim 1, characterized in that: The global trajectory planning model is established as follows: map Contains different stationary obstacles, which constitute an obstacle area The free space in which underwater vehicles can safely navigate underwater is Given a starting point and target point The purpose of global trajectory planning is to find init To the target point p goal The trajectory p: Where t0 is the starting time, t f is the target point time, the trajectory p(t) can be expressed by the following time parameter polynomial function: where a i (i=1, . . . k) are polynomial coefficients, k is the polynomial order, and t is time.
3. The global trajectory planning method under multiple constraints of an underwater vehicle according to claim 2, characterized in that: Considering the actual underwater navigation requirements and physical limitations of underwater vehicles, a global trajectory planning model under multiple constraints is established. The specific constraints are: Dynamic constraints: in u p (t) is the control input, For x p The first derivative of (t), are the first, second, and third order derivatives of the trajectory, A p is the structure matrix, B p is the input matrix; Endpoint constraints: p(t0)=p init ,p(t f )=p goal , where p(t0), are the starting point of the trajectory and its first, second and third order derivatives, respectively, p(t f ), are the trajectory target point and its first, second and third order derivatives, υ init , goal are the speeds of the underwater vehicle at the starting point and the target point, respectively, init , a goal are the accelerations of the underwater vehicle at the starting point and the target point, respectively, init , j goal are the acceleration derivatives of the underwater vehicle at the starting point and the target point respectively; Feasibility constraints: in are the maximum speed and maximum acceleration that the underwater vehicle can reach, 13 is the third-order unit matrix, t0 is the initial time, t f is the end time; The security constraints are: This constraint requires that the trajectory does not collide with any obstacles.
4. The global trajectory planning method under multiple constraints for an underwater vehicle according to claim 1, characterized in that: The global trajectory planning problem is: Given the starting point of the underwater vehicle Target point Determine the polynomial coefficient a i , i = 1, ..., k, so that the trajectory p: Satisfy system dynamics constraints, endpoint constraints, feasibility constraints and safety constraints.
5. The global trajectory planning method under multiple constraints for an underwater vehicle according to claim 2, characterized in that: Using B-spline to parameterize the trajectory, the trajectory can be re-expressed as: where [t0, t1, ..., t m-1 , t m ] is the B-spline knot vector, {c0, c1, ..., c n-1 , c n } is the set of B-spline control points, k is the degree of B-spline, N i,k (t) is the B-spline basis function, the number of nodes m+1 and the number of control points n+1 satisfy m=n+k+1, and the trajectory is represented by uniform B-spline, that is, for i=0, 1, ..., m-1, Δt i =t i+1 -t i have the same value Δt, Δt is the intermediate variable; B-spline basis function N i,k (t) is N i,0 (t), N i+1,0 (t), ..., N i+p,0 The linear combination of (t), N i,k (t) Only in the node interval [t i , t i+k+1 ) is non-zero, the node interval [t i , t i+1 ) can be calculated by the following formula: In [t i , t i+1 ) to normalize t, let As an intermediate variable, the above formula can be written in the following matrix representation: in are the B-spline basis vectors, is a B-spline basis matrix whose elements satisfy P i-k =[c i-k , ..., c i ] T is the node interval [t i , t i+1 ) on the control point vector; Dynamic constraint: Choose quintic B-spline to represent the trajectory, that is, k = 5. At this time, the fourth-order and lower derivatives of the trajectory are continuous and bounded, ensuring that the trajectory satisfies the dynamic constraint; Endpoint constraint: The interval between the i-th node [t i , t i+1 ) on the B-spline curve about The first, second, and third order derivatives of are: in All are intermediate variables; Feasibility constraints: In order to ensure that the B-spline curve meets the velocity and acceleration constraints of the underwater vehicle, according to the convexity of the B-spline, its control points must meet the following conditions: Safety constraint: Determine the maximum deviation between the geometric path and the corresponding trajectory. This method improves the search method to determine the B-spline control points based on the local controllability of the B-spline to determine the maximum deviation; The control points of the quintic B-spline are c1, c2, c3, c4, c5, c6, and the control point c i , c i+1 The distance between them is l, i = 1, 2, 3, 4, 5, then the coordinates of any point on the trajectory corresponding to these control points are: in ω i (·) is the control point c i The corresponding coefficients are i=1, 2, 3, 4, 5, 6; Any point on the trajectory in the above formula can be determined by the following formula: Let the control points c3 and c4 be fixed, and change the control points c2 and c5 to get different trajectories When the distance between two control points is l, their positional relationship can be expressed as: c i+1 =c i +lf i,i+1 , in θ i,i+1 ∈[0,π] is a vector With the origin at c i The angle of the positive z-axis of the rectangular coordinate system, is a vector The angle between the projection of the xOy plane in the rectangular coordinate system and the positive direction of the x-axis can be obtained from the above formula: Select three points c3, 0.5 (c3 + c4), and c5 to determine the maximum deviation value; for any Calculate separately The distance to points c3, 0.5(c3+c4), c5, the maximum deviation between the geometric path and the corresponding trajectory can be expressed as: Substituting (2) into (1) we can obtain: At this point, the constraints described in S1 are all converted into B-spline control point constraints.
6. The global trajectory planning method under multiple constraints for an underwater vehicle according to claim 1, characterized in that: The trajectory planning problem is transformed from solving polynomial coefficients to solving the B-spline control point sequence, specifically: Given the starting point of the underwater vehicle Target point Determine the B-spline control point sequence {c0,...,c n }, so that its corresponding B-spline trajectory Satisfy system dynamics constraints, endpoint constraints, feasibility constraints and safety constraints.
7. The global trajectory planning method under multiple constraints for an underwater vehicle according to claim 1, characterized in that: The specific regional optimized node expansion strategy is as follows: Design a regional optimization node expansion strategy; first, along the sampling point c rand The direction of the expansion node c near The parent node c parent Expand once with a fixed step size l to get the expanded node c nearest ; Then, c nearest As a new expansion node, it is expanded for the second time to generate a new node c new ; In the region-optimized expansion strategy, the first node expansion determines c nearest ; The second node expansion starts from a candidate sampling point set The optimal node that meets the collision condition is selected to complete the expansion process, where the sampling point set The sampling point within c nearest The distance is the expansion step length l. Since the second-order derivative of the trajectory reflects the overall smoothness of the trajectory, the following formula is used to determine the new node c during the second node expansion: new : where γ is a non-negative constant, P=[c k , ..., c 1 , c parent , c nearest , c] T , where c i It is c i-1 The parent node of .
8. The global trajectory planning method under multiple constraints for an underwater vehicle according to claim 5, characterized in that: The regional optimization node expansion strategy is combined with the RRT algorithm to design a regional optimization RRT algorithm and solve the B-spline control point constraints to obtain the global trajectory, specifically: In order to determine the B-spline control point sequence to complete global trajectory planning, the regional optimization node expansion strategy and the RRT algorithm are combined to propose a regional optimization RRT algorithm, which has the following characteristics: Nearest neighbor state search: The regional optimization RRT algorithm determines the random tree according to the following cost function The node c closest to the sampling point near : where ∈ is a non-negative constant, cos -1 (·) is the arccosine function, c T (1) = b(1)M k P, P = [c k , ..., c 1 , c] T , where c 1 is the parent node of c, c i It is c i-1 The parent node of Regional optimization expansion: The regional optimization RRT algorithm uses regional optimization expansion, so each iteration generates two new control points and two new edges; in order to ensure that the trajectory can meet the speed constraint, the expansion step l of the regional optimization expansion is set to υ max Δt.
Citation Information
Patent Citations
Route planning method applicable to inland and offshore unmanned ships
CN108981716A
Path planning method and device
CN112506176A
Unmanned aerial vehicle cluster collaborative flight path planning method considering communication time delay
CN114791743A
