Hybrid adaptive underwater robot trajectory tracking control method
By combining nonlinear model predictive control and L1 adaptive control, the problem of low trajectory tracking accuracy of underwater robots in complex environments is solved, efficient trajectory tracking control is achieved, and the robustness and accuracy are improved.
Patent Information
- Application Number
- CN202410690594.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-20
AI Technical Summary
It is difficult for underwater robots to achieve high-precision trajectory tracking in complex ocean environments, which is limited by unknown interference and model uncertainty.
Using a hybrid adaptive underwater robot trajectory tracking control method, combined with nonlinear model predictive control and L1 adaptive control, by establishing dynamics and kinematics models, estimating environmental interference and model uncertainty, and performing real-time compensation to improve trajectory tracking accuracy and robustness.
It significantly improves the accuracy and robustness of underwater robot trajectory tracking in complex environments and reduces position errors, which is better than the traditional NMPC method, especially in the case of model parameter mismatch and environmental interference.
Smart Images

Figure CN118672287A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of underwater robot motion control, and in particular to a hybrid adaptive underwater robot trajectory tracking control method. Background Art
[0002] Advances in ocean exploration and increasing competition for marine resources have led to an increase in the detection capabilities and mission complexity of underwater unmanned platforms. Remotely operated underwater vehicles (ROVs) have several key advantages, including excellent safety, robust autonomy, fast search speed, superb maneuverability, and high modularity. However, ROVs usually perform tasks based on operator control commands transmitted via cables. ROVs that lack autonomous control capabilities often perform poorly in typical underwater operations. The complex marine environment also poses significant challenges to the development and application of underwater robots. Therefore, an advanced control system is required to ensure precise motion control in demanding underwater environments. The main obstacles faced by autonomous control systems in this scenario come from highly nonlinear motion, time-varying hydrodynamic effects, and external environmental interference.
[0003] Model Predictive Control (MPC) is an optimization-based control technique. This technique has the advantage of handling optimization problems subject to physical constraints. The system model is used to predict future states within a limited prediction horizon and find a series of inputs by defining a cost function. This process is repeated by moving the prediction horizon forward to form a closed-loop control. It can constrain the inputs and states of the control body based on a rolling optimization. Due to its real-time rolling optimization characteristics, it can handle real-time external disturbances to a certain extent. However, from a theoretical point of view, there is still room for improvement in handling disturbances, and it is difficult to achieve high control accuracy when the prediction model parameters are uncertain. Summary of the invention
[0004] In view of this, the purpose of this paper is to propose a hybrid adaptive underwater robot trajectory tracking control method, aiming to overcome the challenges brought by unknown disturbances and model uncertainty. This method is based on in-depth dynamic and kinematic model construction, combined with nonlinear model predictive control (NMPC) and L1 adaptive control (L1AC) technology, to improve the accuracy and robustness of trajectory tracking.
[0005] The technical means adopted by the present invention are as follows:
[0006] A hybrid adaptive underwater robot trajectory tracking control method comprises the following steps:
[0007] S1. Establish a fixed coordinate system and a body coordinate system of the underwater robot; establish kinematic equations and dynamic equations of the underwater robot based on the fixed coordinate system and the body coordinate system; take the state of the underwater robot driving device as input, and establish a system motion control model based on the kinematic equations and dynamic equations;
[0008] S2. Combining the given reference trajectory and the system motion control model, the trajectory tracking problem is converted into a rolling optimization problem of a nonlinear model predictive control with input and state constraints, and a nonlinear model predictive controller is obtained;
[0009] S3. Input the position information and attitude information into the L1 controller, estimate the impact of unknown environmental interference and model uncertainty on vehicle control, and calculate the interference compensation uL1; combine the interference compensation uL1 with the basic nonlinear model predictive controller input ub to obtain a hybrid adaptive control input, which is input into the system motion control model, and considers unknown interference to calculate and output the vehicle position and attitude state, which are input into the L1 controller and the nonlinear model predictive controller as the initial value for the next iterative calculation, and instantly compensate for the tracking accuracy error caused by unknown environmental interference and model parameter uncertainty, and finally realize the tracking control of the underwater robot trajectory.
[0010] Furthermore, S1 specifically includes the following steps:
[0011] S101, establishing a fixed coordinate system of the underwater robot and a body coordinate system describing the body motion;
[0012] S102, converting between the fixed coordinate system and the body coordinate system by using a rotation matrix to describe the kinematic equation and the dynamic equation of the underwater robot;
[0013] S103, using CFD method to solve the hydrodynamic coefficient, inertia matrix and Coriolis force matrix of the underwater robot;
[0014] S104. Substitute the hydrodynamic coefficient, inertia matrix, and Coriolis force matrix into the kinematic equation and the dynamic equation and construct the dynamic description equation of the system in the form of the Fossen model; add the input of the motion actuator to the dynamic description equation to establish the system motion control model.
[0015] Further, in S102, the rotation matrix is as follows:
[0016]
[0017]
[0018] Among them, Sθ represents sinθ, Cθ represents cosθ, and Tθ represents tanθ.
[0019] Furthermore, S2 specifically includes the following steps:
[0020] S201, given a reference trajectory, combined with the system motion control model in S1, establish a mathematical model of the model predictive control method;
[0021] S202, determine the predictive control parameter matrix of the mathematical model in S201, and establish a model predictive controller through a programming language in combination with the mathematical model in S201; the model predictive controller takes into account input and state constraints, optimizes the trajectory tracking control problem, and obtains a nonlinear model predictive controller.
[0022] Further, the nonlinear model predictive controller includes a nonlinear system model, a preset cost function and a numerical optimization solver;
[0023] The formula of the nonlinear system model is as follows:
[0024]
[0025] Wherein, f represents the position and velocity information of the underwater vehicle, η represents the position and attitude of the underwater vehicle, and V represents the velocity information;
[0026] The formula of the preset cost function is as follows:
[0027]
[0028]
[0029]
[0030] f(0)=f(t0)|u b (t)|≤u bMAX ,
[0032] in, u b represents the output value of the underwater robot actuator, f = [η, V] T represents the actual system state, f r =[η r ,V r ] T Indicates the system state reference value, u b is the prediction input, Q p and Q u is a diagonally positive definite weight matrix;
[0033]
[0034] V r =[ur (t)v r (t)w r (t)p r (t)q r (t)r r (t)] T
[0035] The formula of the numerical optimization solver is as follows:
[0036]
[0037]
[0038] stf(0)=f(t0)|u b (t)|≤u bMAX ,
[0040]
[0041] k1=g(t(n+i-1),f(n+i-1),u b (n+i-1))
[0042]
[0043]
[0044] k4=g(t n+i-1 +h,f n+i-1 +hk3,u b (n+i-1))
[0045] Where h is the discrete time interval, f represents the state function of the underwater vehicle, the subscript represents the discrete time step, and k represents the intermediate coefficient of the fourth-order Runge-Kutta method;
[0046] The fourth-order Runge-Kutta method is used to determine the state function value of each time step in the prediction domain. After summing, a nonlinear optimization problem about the input value is constructed. The nonlinear optimization solver is used to solve the optimal input value in the prediction domain of the current time step. Through internal optimization, the optimal solution of the cost function is continuously sought within the predicted time interval to obtain the input sequence required for the next time step; this process is repeated until the goal of rolling optimization is achieved.
[0047] Furthermore, S3 specifically includes the following steps:
[0048] Introducing environmental interference and model uncertainty into the ROV motion model, the formula is as follows:
[0049]
[0050] in, u b is the input calculated by the nonlinear model predictive controller;
[0051] The dynamic equation with position disturbance is derived as follows:
[0052]
[0053] The output value u of the L1 controller L1 Input into the dynamic equation with position disturbance, the formula is as follows:
[0054]
[0055] Among them, u L1 ∈R 6×1 Indicates the cascade compensation value activated by the L1 controller.
[0056] Further, the L1 controller includes a state predictor, an adaptive law and a low-pass filter;
[0057] The state predictor formula is as follows:
[0058]
[0059] in, represents the estimated value of the state, is the state error; A s ∈R 6×6 is an adjustable diagonal Hurwitz matrix;
[0060] The formula of the adaptive law is as follows:
[0061]
[0062] Where T s is the time step, Square matrices are reversible:
[0063]
[0064]
[0065] For i∈N:
[0066]
[0067] Next, a first-order continuous-time filter C(s) is defined, and the L1AC control law is:
[0068]
[0069] In practice, in discrete time, taking the kth time step as an example, the control rate can be defined as:
[0070]
[0071] Among them, ω co is the frequency limit of a properly chosen first-order filter, the L1AC observer in discrete time is given by:
[0072]
[0073] The piecewise constant adaptive law can offset the error in state prediction at the following sample time (i+1)t;
[0074]
[0075] The present invention also provides a storage medium, which includes a stored program, wherein when the program is run, any of the above-mentioned hybrid adaptive underwater robot trajectory tracking control methods is executed.
[0076] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes any of the above-mentioned hybrid adaptive underwater robot trajectory tracking control methods through the operation of the computer program.
[0077] Compared with the prior art, the present invention has the following advantages:
[0078] The present invention forms an efficient hybrid adaptive control framework by combining the rolling optimization characteristics of nonlinear model predictive control (NMPC) and the instant adaptive adjustment capability of L1AC. Experimental simulation results show that the hybrid control scheme shows superior performance and robustness than the traditional NMPC method under various interference conditions, including ocean currents, wave activities, random interference and model inconsistency. Therefore, the present invention successfully solves the problem of underwater vehicle trajectory tracking in complex environments and demonstrates its great potential in practical applications.
[0079] The present invention proposes a new hybrid adaptive nonlinear model predictive controller for ROV trajectory tracking control. The present invention realizes real-time rolling optimization control of ROV trajectory tracking control through nonlinear model predictive control. The present invention uses a cascaded L1 adaptive controller to compensate for environmental disturbances and model uncertainties in real time, and significantly reduces the position error compared with NMPC under different operating conditions. Under the condition of model parameter mismatch, the tracking accuracy of the present invention is still better than that of NMPC controller with accurate model parameters.
[0080] The present invention effectively improves the accuracy and robustness of underwater vehicle trajectory tracking in complex underwater environments, solves the performance limitations of traditional NMPC methods when faced with parameter mismatch and unknown environmental interference, and provides a new solution strategy for trajectory tracking control in complex underwater environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] 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.
[0082] Figure 1 The figure is a flow chart of the method of the present invention.
[0083] Figure 2 This is the coordinate system design diagram of the present invention.
[0084] Figure 3 This is a diagram of the L1 controller structure of the present invention.
[0085] Figure 4 This is a three-dimensional sinusoidal numerical simulation trajectory tracking result diagram of the present invention.
[0086] Figure 5 It is an XY plane projection diagram of the sinusoidal trajectory tracking result of the present invention.
[0087] Figure 6 It is the ZY plane projection diagram of the sinusoidal trajectory tracking result of the present invention.
[0088] Figure 7 It is the XZ plane projection diagram of the sinusoidal trajectory tracking result of the present invention.
[0089] Figure 8 This is a comparison error curve of the two control methods under the non-interference working condition of the present invention.
[0090] Fig. 9 This is a comparison error curve of the two control methods under random interference conditions of the present invention.
[0091] Fig.10 This is a comparison error curve of the two control methods under the ocean current working condition of the present invention.
[0092] Fig.11 This is a comparison error curve of the two control methods under wave conditions of the present invention.
[0093] Fig.12 This is a comparison error curve diagram of the two control methods under the working condition with model uncertainty of the present invention.
[0094] Fig.13 This is a comparison chart of the average errors of the two methods under various working conditions of the present invention. DETAILED DESCRIPTION
[0095] 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.
[0096] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0097] like Figure 1 As shown, the present invention provides a hybrid adaptive underwater robot trajectory tracking control method, comprising the following steps:
[0098] S1. Establish system motion control model;
[0099] S101. Establishment of the vehicle kinematic equations:
[0100] Mathematical modeling of underwater vehicles is based on the hydrodynamic properties of rigid bodies and their corresponding motion characteristics. The modeling process involves both static and dynamic studies, the former focusing on the balance of an object at rest or in uniform motion, and the latter focusing on the forces that cause motion. Dynamics is further subdivided into kinematics and dynamics. Kinematics studies more about the geometric relationships of the position, direction, etc. of a moving object, while dynamics focuses more on the analysis of the forces that cause the object to move. By accurately estimating the model parameters and constructing an accurate model of motion and external forces, the motion of the ROV can be accurately predicted. The coordinate system of the vehicle is set up as follows Figure 2 The BlueROV2 open source platform was used in the actual numerical simulation process.
[0101] The present invention uses six degrees of freedom to represent the overall motion of a remotely operated vehicle (ROV) and establishes a corresponding coordinate system for description. The above six degrees of freedom are usually used to define the posture information of the ROV in a specified coordinate system frame. The present invention treats the ROV as a rigid body in a mobile coordinate system for research. In order to prepare for further research, this paper defines motion and force as follows, as shown in Table 1:
[0102] Table 1 Sign conventions for motion, force and torque
[0103]
[0104] The present invention defines the motion analysis of ROV in two coordinate systems, which are described as follows. First, a fixed earth-fixed coordinate system (NED) is defined, which can also be called an inertial coordinate system, which is a reference frame attached to the ground and moves with the vehicle. When the ROV speed is low, the movement of the earth has limited impact on the ROV. The present invention uses the following symbols to represent the above-mentioned coordinate system frames (Oe, Xe, Ye, Ze). The body-fixed reference frame (BODY) is a mobile reference coordinate system fixed to the ROV body, which is used to describe the motion of the ROV relative to the inertial reference system. The axes of the body-fixed reference frame are consistent with the inertial axes, as shown in Table 2.
[0105] Table 2 Coordinate system and speed state representation method
[0106]
[0107] The position and orientation of a vehicle are usually expressed using a ground-fixed coordinate system, while its linear and angular velocities are usually expressed using a body-fixed coordinate system. These values are expressed using the standard notation shown in the table above. The relationship between the two reference frames is described by the coordinate transformation equation, as shown below:
[0108]
[0109] Separating the angular velocity and linear velocity states, we obtain:
[0110]
[0111]
[0112] The rotation matrix from body coordinates to inertial frame:
[0113]
[0114]
[0115] Among them, Sθ represents sinθ, Cθ represents cosθ, and Tθ represents tanθ.
[0116] S102. Establishment of aircraft dynamics model:
[0117] Dynamics focuses on understanding the connection between the forces acting on a remotely operated vehicle (ROV) and its motion. Based on the Newton-Euler method, the dynamic equations for an ideal six-degree-of-freedom (6-DOF) ROV, without considering external disturbances or model uncertainties, are as follows:
[0118]
[0119] Where τ=[τ1,τ2] T The above equation is the dynamic equation of the ROV under ideal conditions and without considering external environmental interference. The present invention directly considers the uncertainty of thrust and torque in six degrees of freedom and introduces external environmental interference into the thrust and torque of each degree of freedom. Therefore, the equation can be rewritten as follows:
[0120]
[0121] Where V = [v, ω] T , after separating the linear acceleration and the angular acceleration, the above formula can be rewritten as:
[0122]
[0123] Where M = M A +M RB , M RB is the rigid body inertia matrix of the ROV, is the additional mass matrix of the vehicle. Due to the assumptions about the position of the center of buoyancy and the motion characteristics of the ROV in this paper, the present invention chooses to ignore the contribution of non-diagonal elements, so there will be:
[0124]
[0125] in:
[0126] K1(v)=C1(ω)ω+D1(ν)ν+g1(η) (10)
[0127] K2(ν)=C2(ν,ω)[ν,ω] T +D2(ω)ω+g2(η) (11)
[0128] C(v)v is the Coriolis force of the spacecraft; D(v)v is the damping force of the spacecraft; is the environmental disturbance in linear acceleration; ζ=[ζ x ,ζ y ,ζ z ]T is the environmental disturbance in angular acceleration; τ1=[f X ,f Y ,f Z ] T is the thrust provided by the thruster. The ROV in the present invention is a fully driven system that can provide linear acceleration along three coordinate axes and angular acceleration around three coordinate axes. By doing so, it can match the uncertainty and disturbance of the ROV degrees of freedom, defined as:
[0129] g(η) is the static water restoring force, assuming that the buoyancy is equal to the gravity. That is, B = mg, where g is the acceleration caused by gravity. In addition, assuming that (x b ,y b ,z b )=(0,0,0) is the buoyancy center coordinate of ROV in the vehicle frame, which coincides with the center of gravity coordinate. That is:
[0130]
[0131] In general, it can be assumed that the ROV is performing uncoupled motion, then the approximate damping term on the diagonal can be expressed as:
[0132]
[0133] C(v) represents the Coriolis force. It includes the rigid body Coriolis force term and the fluid dynamics Coriolis force term, namely:
[0134] C(ν)=C RB +C A (14)
[0135] The following expression is obtained by Lagrange parameterization method:
[0136]
[0137] S2. Nonlinear Model Predictive Control:
[0138] Nonlinear model predictive control (NMPC) is a control strategy based on numerical optimization. It contains a nonlinear system model, a preset cost function and a numerical optimization solver. By rolling to solve the minimum value of the cost function, the input of the system model is optimized, and the future control input and system response are predicted. The NMPC controller optimizes the future control input within each prediction time range and only applies the first step input to the actual model so that the nonlinear system response is close to the reference value. Without considering external interference and analyzing the dynamic equations of the ROV, the prediction model of the nonlinear system is defined as follows:
[0139]
[0140]
[0141] For simplicity, the compact mathematical form is described below:
[0142]
[0143] As a prediction model, as mentioned above, the equation does not take into account the influence of the external environment or the uncertainty of the system (since subsequent studies need to consider the uncertainty of the model parameters, an uncertainty coefficient needs to be added). After constructing the system prediction model, it is necessary to construct a system cost function. In this study, the cost function is constructed by taking the difference between the predicted system response and the expected system output, as well as the size of the input value. By minimizing the cost function, the goal of the present invention is to minimize the tracking error and the input value, so as to find the control input for the next N time steps that meets the constraints, and then apply the first step prediction value to the system control. The expected navigation trajectory is known in advance and is assumed to be smooth and bounded. The time parameter is introduced to define the absolute position of the trajectory. The form of the preset cost function is as follows:
[0144]
[0145]
[0146]
[0147] f(0)=f(t0),|u b (t)|≤u bMAX (18)
[0148] in, u b It represents the output value of the ROV actuator and has the same meaning as mentioned above. Here, u is expressed in a new form b , for ease of description; f = [η, V] T and f r =[η r ,V r ] T is the actual system state and the reference value. It expresses the dynamics of the unified maneuver model using the differential equations given in equations (17) and (18); u b is the predicted input; Q p and Q u is a diagonally positive definite weight matrix.
[0149]
[0150] V r =[u r (t)v r(t)w r (t)p r (t)q r (t)r r (t)] T (19)
[0151] In the invention, the reference trajectory is pre-designed and expressed in the form of a function of time t to the xyz coordinate axis. The integration problem in the above equation is difficult to solve in actual programming. In order to solve the optimization problem in the code, numerical calculations are required. The present invention completes the entire solution process by summing the cost function in a discrete form in the prediction time domain. The present invention evenly divides M nodes in the prediction time domain and calculates the cost function at each time node. The optimal first prediction value is solved by finding the minimum value after summing all node values in the prediction time domain. The cost function J(n) at the nth sampling time can be written as:
[0152]
[0153]
[0154] stf(0)=f(t0)|u b (t)|≤u bMAX ,
[0156]
[0157] k1=g(t(n+i-1),f(n+i-1),u b (n+i-1))
[0158]
[0159]
[0160] k4=g(t n+i-1 +h,f n+i-1 +hk3,u b (n+i-1)) (20)
[0161] Wherein, h is a discrete time interval. Here, the fourth-order Runge-Kutta method is used to determine the state function value at each time step in the prediction domain. After summing, a nonlinear optimization problem about the input value is constructed. Using a nonlinear optimization solver, the optimal input value is solved in the prediction domain of the current time step. Through internal optimization, the present invention continuously searches for the optimal solution of the cost function within the predicted time interval, thereby obtaining the input sequence required for the next time step. This process is repeated until the goal of rolling optimization is achieved.
[0162] S3.L1 adaptive control method integration, the composition of L1 controller is as follows Figure 3 As shown;
[0163] It is challenging to obtain accurate models in real-world situations, especially in complex underwater environments where the motion of the ROV is subject to uncertainties and disturbances, such as propeller dynamics and wind and waves. Therefore, the NMPC control model relies on an idealized description of the ROV motion. In order to take into account the uncertainties and unknown external disturbances of the actual system, the uncertainties are incorporated into the state space representation of the system. The method of the present invention handles these unknown factors by using L1AC. Consider the simplified state variables defined in the above equations (8) and (9). The derivative can be restated as:
[0164]
[0165] in u b is the input calculated by the nonlinear model predictive controller (NMPC). The environmental disturbance and model uncertainty are introduced into the system through the above formula, and the dynamic equation with position disturbance is derived:
[0166]
[0167] The ROV studied in this paper is a full-drive system, so σ m ∈R 6×1 It is uncertainty that can be matched.
[0168] L1AC consists of a state predictor, an adaptive law, and a low-pass filter (LPF), as shown in the figure. The state predictor mimics the system structure and replaces unknown uncertainties with estimated values. The output of L1AC is input into the uncertain dynamic equation:
[0169]
[0170] Among them, u L1 ∈R 6×1 represents the cascade compensation value initiated by L1 control. The predictor in L1AC is constructed as follows:
[0171]
[0172] in, is the state error; A s ∈R 6×6 is an adjustable diagonal Hurwitz matrix. L1 adaptive control is implemented using a nonlinear reference model to estimate the matching uncertainty.
[0173] Using piecewise constant adaptive rate t∈[iT s ,(i+1)T s ).
[0174]
[0175] Among them, T s is the time step, Square matrices are reversible:
[0176]
[0177]
[0178] For i∈N:
[0179]
[0180] Next, define a first-order continuous-time filter C(s). The L1AC control law is:
[0181]
[0182] In practice, in discrete time, taking the kth time step as an example, the control rate can be defined as:
[0183]
[0184] Among them, ω co is the frequency limit of a properly chosen first-order filter. The L1AC observer in discrete time is given by:
[0185]
[0186] The piecewise constant adaptive law can offset the error in the state prediction at the following sample time (i+1)t.
[0187]
[0188] According to the above formula, the composition of the L1 adaptive part is as follows: Figure 2 As shown, it is divided into three parts: low-pass filter, state predictor, and adaptive law.
[0189] The present invention considers two types of disturbances: one is the unknown environmental disturbance acting directly on the ROV body, and the other is the model uncertainty acting on the nonlinear model predictive controller. The input initial conditions are calculated by the NMPC controller to obtain the basic control input u b Then, u b The input is fed into the adaptive control part to implement disturbance compensation, and finally a hybrid adaptive control input is obtained, which acts on the ROV model to calculate the attitude state and is provided to the next iteration.
[0190] u all =u b +uL1 (33)
[0191] For five working conditions, namely, no interference, random interference, ocean current interference, wave interference and model uncertainty, numerical simulation tests were carried out using the trajectory tracking method involved in the present invention, and compared with the traditional NMPC method.
[0192] In the numerical simulation experiment, the three-dimensional sinusoidal trajectory set for trajectory tracking is:
[0193]
[0194] Table 3 ROV parameter values
[0195]
[0196] The ROV parameter values are shown in Table 3. The initial setting conditions of the numerical simulation are: Speed: v0 = [0,0,0,0,0,0] T The first three values of the initial state vector are in meters per second, and the remaining three values are in rad per second. The prediction time horizon N = 5, and the sampling period is the nonlinear model predictive control (NMPC) control input constraints are:
[0197] u max =[50,50,50,50,50,50] T
[0198] u min =[-50,-50,-50,-50,-50,-50] T
[0199] NMPC position error weight matrix:
[0200] Q P =2000×diag(1,1,1,1,1,1)
[0201] Input cost function matrix:
[0202] Q u =diag(1,1,1,1,1,1)
[0203] In order to conduct the simulation experiment of sinusoidal trajectory tracking, the initial posture state of the underwater remote control (ROV) is: S0 = [1m, 1m, 1m, 0rad, 0rad, 0rad] T The initial attitude state of the underwater remote control (ROV) for the spiral curve trajectory tracking simulation experiment is:
[0204] S0=[1m,1m,9m,0rad,0rad,0rad] T .
[0206] In order to verify the effectiveness of the L1 and NMPC cascade hybrid adaptive controller, the following simulation conditions are set: no disturbance, current disturbance, random disturbance, wave disturbance and model uncertainty (the coefficients of the NMPC dynamic model are inaccurate). The coefficients of the L1 controller are set to: ω_co=[2,2,2,2,2,2] T The coefficients of the L1 controller are set as: A s =-diag(5,5,5,10,10,10) where the units of the 6 values of the vector are rad / s.
[0207] In this study, all simulations were performed on a laptop equipped with an Intel Core i7-10750H CPU @ 2.60GHz 2.59GHz dual-core processor. The simulations were performed using a simulator based on the MATLAB R2018b platform. A three-dimensional sinusoidal expected trajectory was selected in the present invention. The simulations were performed with and without ocean disturbances. In the simulation experiment design, four types of disturbances were considered, three of which were environmental disturbances, and disturbances expressed as forces and torques were included in the dynamic equations of each degree of freedom. The four types of disturbances include: random disturbances, ocean current disturbances, wave disturbances, and uncertainty in model parameters.
[0208] Random interference:
[0209]
[0210] Ocean current disturbance:
[0211]
[0212] Wave disturbance:
[0213]
[0214] The fourth operating condition is the uncertainty of model parameters, that is, there are errors in the control model parameters inside the NMPC. This paper considers the disturbance of 20% uncertainty in the ROV model parameters to the controller.
[0215] Based on the above set parameters, numerical simulation experiments are carried out. The trajectory tracking results are shown in Figure 4 As shown; Figure 5 , 6 ,7 shows the projection of trajectory tracking results in different planes; Figure 8 , 9 , 10, 11, and 12 respectively show the position error time history curves of the method according to the present invention and the NMPC method under the conditions of no interference, random interference, ocean current interference, wave interference, and model uncertainty interference; Fig.13The average error comparison between the method according to the present invention and the NMPC method under various working conditions is shown.
[0216] 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 hybrid adaptive underwater robot trajectory tracking control method, characterized in that: The steps include: S1. Establish a fixed coordinate system and a body coordinate system of the underwater robot; establish kinematic equations and dynamic equations of the underwater robot based on the fixed coordinate system and the body coordinate system; take the state of the underwater robot driving device as input, and establish a system motion control model based on the kinematic equations and dynamic equations; S2. Combining the given reference trajectory and the system motion control model, the trajectory tracking problem is converted into a rolling optimization problem of a nonlinear model predictive control with input and state constraints, and a nonlinear model predictive controller is obtained; S3: Input the position information and attitude information into the L1 controller, estimate the impact of unknown environmental interference and model uncertainty on the control of the aircraft, and calculate the interference compensation u L1 ; The interference compensation u L1 and the basic nonlinear model predictive controller input u b After the combination, the hybrid adaptive control input is input into the system motion control model, and the unknown interference is taken into account to calculate the output position and attitude state of the vehicle, and input into the L1 controller and the nonlinear model predictive controller as the initial value of the next iterative calculation, so as to instantly compensate for the tracking accuracy error caused by unknown environmental interference and model parameter uncertainty, and finally realize the tracking control of the underwater robot trajectory.
2. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1 is characterized in that: S1 specifically includes the following steps: S101, establishing a fixed coordinate system of the underwater robot and a body coordinate system describing the body motion; S102, converting between the fixed coordinate system and the body coordinate system by using a rotation matrix to describe the kinematic equation and the dynamic equation of the underwater robot; S103, using CFD method to solve the hydrodynamic coefficient, inertia matrix and Coriolis force matrix of the underwater robot; S104. Substitute the hydrodynamic coefficient, inertia matrix, and Coriolis force matrix into the kinematic equation and the dynamic equation and construct the dynamic description equation of the system in the form of the Fossen model; add the input of the motion actuator to the dynamic description equation to establish the system motion control model.
3. The hybrid adaptive underwater robot trajectory tracking control method according to claim 2 is characterized in that: In S102, the rotation matrix is as follows: Among them, Sθ represents sinθ, Cθ represents cosθ, and Tθ represents tanθ.
4. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1, characterized in that: S2 specifically includes the following steps: S201, given a reference trajectory, combined with the system motion control model in S1, establish a mathematical model of the model predictive control method; S202, determine the predictive control parameter matrix of the mathematical model in S201, and establish a model predictive controller through a programming language in combination with the mathematical model in S201; the model predictive controller takes into account input and state constraints, optimizes the trajectory tracking control problem, and obtains a nonlinear model predictive controller.
5. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1, characterized in that: The nonlinear model predictive controller includes a nonlinear system model, a preset cost function and a numerical optimization solver; The formula of the nonlinear system model is as follows: Wherein, f represents the position and velocity information of the underwater vehicle, η represents the position and attitude of the underwater vehicle, and V represents the velocity information; The formula of the preset cost function is as follows: f(0)=f(t0),|u b (t)|≤u bMAX in, u b represents the output value of the underwater robot actuator, f = [η, V] T represents the actual system state, f r =[η r ,V r ] T Indicates the system state reference value, u b is the prediction input, Q p and Q u is a diagonally positive definite weight matrix; V r =[u r (t) v r (t) w r (t) p r (t) q r (t) r r (t)] T The formula of the numerical optimization solver used is as follows: s.t.f(0)=f(t0),|u b (t)|≤u bMAX k1=g(t(n+i-1),f(n+i-1),u b (n+i-1)) k4=g(t n+i-1 +h,f n+i-1 +hk3,u b (n+i-1)) Where h is the discrete time interval, f represents the state function of the underwater vehicle, the subscript represents the discrete time step, and k represents the intermediate coefficient of the fourth-order Runge-Kutta method; The fourth-order Runge-Kutta method is used to determine the state function value of each time step in the prediction domain. After summing, a nonlinear optimization problem about the input value is constructed. The nonlinear optimization solver is used to solve the optimal input value in the prediction domain of the current time step. Through internal optimization, the optimal solution of the cost function is continuously sought within the predicted time interval to obtain the input sequence required for the next time step; this process is repeated until the goal of rolling optimization is achieved.
6. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1, characterized in that: S3 specifically includes the following steps: Introducing environmental interference and model uncertainty into the ROV motion model, the formula is as follows: in, u b is the input calculated by the nonlinear model predictive controller; The dynamic equation with position disturbance is derived as follows: The output value u of the L1 controller L1 Input into the dynamic equation with position disturbance, the formula is as follows: Among them, u L1 ∈R 6×1 Indicates the cascade compensation value activated by the L1 controller.
7. The hybrid adaptive underwater robot trajectory tracking control method according to claim 6, characterized in that: The L1 controller includes a state predictor, an adaptive law and a low-pass filter; The state predictor formula is as follows: in, represents the estimated value of the state, is the state error; A s ∈R 6×6 is an adjustable diagonal Hurwitz matrix; The formula of the adaptive law is as follows: Where T s is the time step, Square matrices are reversible: For i∈N: Next, a first-order continuous-time filter C(s) is defined, and the L1AC control law is: In practice, in discrete time, taking the kth time step as an example, the control rate can be defined as: Among them, ω co is the frequency limit of a properly chosen first-order filter, the L1AC observer in discrete time is given by: The piecewise constant adaptive law can offset the error in state prediction at the following sample time (i+1)t; 8. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the hybrid adaptive underwater robot trajectory tracking control method according to any one of claims 1 to 7 is executed.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor executes the hybrid adaptive underwater robot trajectory tracking control method according to any one of claims 1 to 7 by running the computer program.
Citation Information
Cited By
Networked motion control system position tracking control method based on high-order all-drive
CN119200438A
Aircraft water surface launching control method
CN119960288A
Underwater object throwing track prediction method based on engineering algorithm
CN120012642A
Wind resistance control method and system for flying robot
CN122111071A
