[go: up one dir, main page]

CN118672287A - Hybrid self-adaptive underwater robot track tracking control method - Google Patents

Hybrid self-adaptive underwater robot track tracking control method Download PDF

Info

Publication number
CN118672287A
CN118672287A CN202410690594.7A CN202410690594A CN118672287A CN 118672287 A CN118672287 A CN 118672287A CN 202410690594 A CN202410690594 A CN 202410690594A CN 118672287 A CN118672287 A CN 118672287A
Authority
CN
China
Prior art keywords
model
underwater robot
input
controller
nonlinear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410690594.7A
Other languages
Chinese (zh)
Inventor
张佳宁
张乙
郭志扬
危远辉
张雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Maritime University
Original Assignee
Dalian Maritime University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian Maritime University filed Critical Dalian Maritime University
Priority to CN202410690594.7A priority Critical patent/CN118672287A/en
Publication of CN118672287A publication Critical patent/CN118672287A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/40Control within particular dimensions
    • G05D1/48Control of altitude or depth
    • G05D1/485Control of rate of change of altitude or depth
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D2101/00Details of software or hardware architectures used for the control of position
    • G05D2101/10Details of software or hardware architectures used for the control of position using artificial intelligence [AI] techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Feedback Control In General (AREA)

Abstract

本发明提供了一种混合自适应水下机器人轨迹跟踪控制方法,包括如下步骤:S1、基于运动学方程和动力学方程建立系统运动控制模型;S2、得到非线性模型预测控制器;S3、将非线性模型预测控制器输出的基本控制输入ub输入至L1控制器中,输出得到干扰补偿uL1;将干扰补偿uL1和基本控制输入ub相结合后得到混合自适应控制输入输入至系统运动控制模型中,并考虑未知干扰,系统运动控制模型输出姿态状态至L1控制器和非线性模型预测控制器中进行优化,即时补偿因未知环境干扰和模型参数不确定性导致的跟踪精度误差,最终实现对水下机器人轨迹进行跟踪控制。本发明能够在对水下航行器进行轨迹追踪运动控制时保证全局稳定性。

The present invention provides a hybrid adaptive underwater robot trajectory tracking control method, comprising the following steps: S1, establishing a system motion control model based on kinematic equations and dynamic equations; S2, obtaining a nonlinear model predictive controller; S3, inputting the basic control input u b output by the nonlinear model predictive controller into the L1 controller, and outputting the interference compensation u L1 ; combining the interference compensation u L1 with the basic control input u b to obtain a hybrid adaptive control input input into the system motion control model, and considering unknown interference, the system motion control model outputs the posture state to the L1 controller and the nonlinear model predictive controller for optimization, and instantly compensates for the tracking accuracy error caused by unknown environmental interference and model parameter uncertainty, and finally realizes tracking control of the underwater robot trajectory. The present invention can ensure global stability when performing trajectory tracking motion control on an underwater vehicle.

Description

一种混合自适应水下机器人轨迹跟踪控制方法A hybrid adaptive underwater robot trajectory tracking control method

技术领域Technical Field

本发明涉及水下机器人运动控制技术领域,具体而言,尤其涉及一种混合自适应水下机器人轨迹跟踪控制方法。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

海洋探索的进步和对海洋资源的日益激烈竞争导致水下无人平台的检测能力和任务复杂性的提高。远程操作的水下机器人(ROVs),具有多个关键优势,包括卓越的安全性、健壮的自主性、快速的搜索速度、超强的机动性和高度的模块化。然而,ROVs通常是基于通过电缆传输的操作员控制命令来执行任务的。缺乏自动控制能力的ROVs在典型的水下操作中表现往往不佳。复杂的海洋环境也为水下机器人的开发和应用带来了显著挑战。因此,需要一个先进的控制系统来保证在要求苛刻的水下环境中精确的运动控制。这种情景下自动控制系统面临的主要障碍来自高度非线性运动、随时间变化的水动力效应以及外部环境干扰。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.

模型预测控制(MPC)是一种基于优化的控制技术。这项技术具有处理受物理约束的优化问题的优势。系统模型被用来预测有限预测范围内的未来状态,并通过定义成本函数找到一系列输入。通过向前移动预测范围重复这一过程,形成闭环控制。它可以基于滚动优化约束控制体的输入和状态。于其实时滚动优化的特点,它可以在一定程度上处理实时外部干扰。然而,从理论角度来看,在处理干扰方面仍有改进空间,当预测模型参数不确定时,难以实现高控制精度。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

有鉴于此,本发明的目的在于提出一种混合自适应水下机器人轨迹跟踪控制方法,旨在克服未知干扰和模型不确定性带来的挑战。该方法基于深入的动力学和运动学模型构建,结合非线性模型预测控制(NMPC)和L1自适应控制(L1AC)技术,提高了轨迹跟踪的精度和鲁棒性。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.

本发明采用的技术手段如下:The technical means adopted by the present invention are as follows:

一种混合自适应水下机器人轨迹跟踪控制方法,包括如下步骤:A hybrid adaptive underwater robot trajectory tracking control method comprises the following steps:

S1、建立水下机器人的固定坐标系以及机体坐标系;基于固定坐标系和机体坐标系建立水下机器人的运动学方程和动力学方程;以水下机器人驱动装置状态为输入量,基于运动学方程和动力学方程建立系统运动控制模型;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、结合给定的参考轨迹和系统运动控制模型,将轨迹追踪问题转换为带有输入以及状态约束的非线性模型预测控制的滚动优化问题,得到非线性模型预测控制器;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、将位置信息以及姿态信息输入至L1控制器中,估计未知环境干扰以及模型不确定性对航行器控制带来的影响,计算得出干扰补偿uL1;将干扰补偿uL1和基本的非线性模型预测控制器输入ub相结合后得到混合自适应控制输入输入至系统运动控制模型中,并考虑未知干扰,计算输出航行器位置、姿态状态,并作为下一次迭代计算的初始值输入L1控制器和非线性模型预测控制器中,即时补偿因未知环境干扰和模型参数不确定性导致的跟踪精度误差,最终实现对水下机器人轨迹进行跟踪控制。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.

进一步地,S1具体包括如下步骤:Furthermore, S1 specifically includes the following steps:

S101、建立水下机器人的固定坐标系以及描述机体运动的机体坐标系;S101, establishing a fixed coordinate system of the underwater robot and a body coordinate system describing the body motion;

S102、通过使用旋转矩阵将固定坐标系以及机体坐标系之间进行相互转换,以描述水下机器人的运动学方程和动力学方程;S102, converting between the fixed coordinate system and the body coordinate system by using a rotation matrix to describe the kinematic equation and dynamic equation of the underwater robot;

S103、采用CFD方法求解水下机器人的水动力系数、惯性矩阵和科氏力矩阵;S103, using CFD method to solve the hydrodynamic coefficient, inertia matrix and Coriolis force matrix of the underwater robot;

S104、将水动力系数、惯性矩阵、科氏力矩阵带入至运动学方程和动力学方程中并采用Fossen模型的形式构建系统的动态描述方程;在动态描述方程中加入运动执行机构的输入,以建立系统运动控制模型。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.

进一步地,S102中,所述旋转矩阵如下:Further, in S102, the rotation matrix is as follows:

其中,Sθ代表sinθ,Cθ代表cosθ,Tθ代表tanθ。Among them, Sθ represents sinθ, Cθ represents cosθ, and Tθ represents tanθ.

进一步地,S2具体包括如下步骤:Furthermore, S2 specifically includes the following steps:

S201、给定参考轨迹,结合S1中的系统运动控制模型,建立模型预测控制方法的数学模型;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、确定S201中数学模型的预测控制参数矩阵,结合S201中数学模型,通过编程语言建立模型预测控制器;模型预测控制器考虑输入以及状态约束,对轨迹追踪控制问题进行优化控制,得到非线性模型预测控制器。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.

进一步地,所述非线性模型预测控制器包括一个非线性系统模型、一个预设的成本函数和一个数值优化求解器;Further, 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:

其中,f代表水下航行器的位姿、速度信息,η为水下航行器的位置、姿态,V为速度信息;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)|ub(t)|≤ubMAX,f(0)=f(t 0 )|u b (t)|≤u bMAX ,

其中,ub表示水下机器人执行器的输出值,f=[η,V]T表示实际系统状态,fr=[ηr,Vr]T表示系统状态参考值,ub是预测输入,Qp和Qu是对角正定权重矩阵;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 represents the system state reference value, u b is the predicted input, Q p and Qu are diagonal positive definite weight matrices;

Vr=[ur(t)vr(t)wr(t)pr(t)qr(t)rr(t)]T V r =[ ur (t)v r (t)w r (t)p r (t)q r (t)r r (t)] T

所述数值优化求解器的公式如下:The formula of the numerical optimization solver is as follows:

s.t.f(0)=f(t0)|ub(t)|≤ubMAX,stf(0)=f(t 0 )|u b (t)|≤u bMAX ,

k1=g(t(n+i-1),f(n+i-1),ub(n+i-1))k 1 =g(t(n+i-1),f(n+i-1),u b (n+i-1))

k4=g(tn+i-1+h,fn+i-1+hk3,ub(n+i-1))k 4 =g(t n+i-1 +h,f n+i-1 +hk 3 ,u b (n+i-1))

其中,h是离散时间间隔,f代表水下航行器的状态函数,下标代表离散的时间步,k代表四阶龙格-库塔方法的中间系数;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.

进一步地,S3具体包括如下步骤:Furthermore, S3 specifically includes the following steps:

将环境干扰和模型不确定性引入ROV运动模型,公式如下:Introducing environmental interference and model uncertainty into the ROV motion model, the formula is as follows:

其中,ub是由非线性模型预测控制器计算得到的输入;in, u b is the input calculated by the nonlinear model predictive controller;

推导出带有位置干扰的动态方程,公式如下:The dynamic equation with position disturbance is derived as follows:

将L1控制器的输出值uL1输入至带有位置干扰的动态方程中,公式如下:The output value u L1 of the L1 controller is input into the dynamic equation with position disturbance, as follows:

其中,uL1∈R6×1表示由L1控制器启动的级联补偿值。Wherein, u L1 ∈R 6×1 represents the cascade compensation value activated by the L1 controller.

进一步地,所述L1控制器包括状态预测器、自适应律和低通滤波器;Further, the L1 controller includes a state predictor, an adaptive law and a low-pass filter;

所述状态预测器公式如下:The state predictor formula is as follows:

其中,代表状态估计值,是状态误差;As∈R6×6是一个可调的对角赫尔维茨矩阵;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:

其中Ts是时间步长,方阵是可逆的:Where Ts is the time step, Square matrices are reversible:

对于i∈N:For i∈N:

接下来,定义一个一阶连续时间滤波器C(s),L1AC控制律为:Next, a first-order continuous-time filter C(s) is defined, and the L1AC control law is:

在实际中,在离散时间里,以第k个时间步为例,其控制速率可以定义为:In practice, in discrete time, taking the kth time step as an example, the control rate can be defined as:

其中,ωco是适当选择的一阶滤波器的频率极限,离散时间中的L1AC观测器如下:Where ω co is the frequency limit of a properly chosen first-order filter, the L1AC observer in discrete time is given by:

分段常数自适应律可以在以下样本时间抵消状态预测中的误差(i+1)t;The piecewise constant adaptive law can offset the error in state prediction at the following sample time (i+1)t;

本发明还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时,执行上述任一项混合自适应水下机器人轨迹跟踪控制方法。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.

本发明还提供了一种电子装置,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器通过所述计算机程序运行执行上述任一项混合自适应水下机器人轨迹跟踪控制方法。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.

较现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:

本发明通过结合非线性模型预测控制(NMPC)的滚动优化特性和L1AC的即时自适应调节能力,形成了一种高效的混合自适应控制框架。实验仿真结果证明,该混合控制方案在各种干扰情况下,包括海流、波浪活动、随机干扰和模型不一致性,均展现出比传统NMPC方法更优越的性能和鲁棒性。因此,本发明成功解决了复杂环境下水下航行器轨迹跟踪的问题,展现了其在实际应用中的巨大潜力。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.

本发明提出了一种新的混合自适应非线性模型预测控制器,用于ROV轨迹跟踪控制。本发明通过非线性模型预测控制实现了ROV轨迹跟踪控制的实时滚动优化控制。本发明通过使用级联L1自适应控制器,对环境干扰和模型不确定性进行实时补偿,与在不同操作条件下的NMPC相比,显著降低了位置误差。本发明在模型参数不匹配的条件下,跟踪精度仍然优于具有准确模型参数的NMPC控制器。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 the NMPC controller with accurate model parameters.

本发明有效提高了在复杂水下环境中水下航行器轨迹追踪的精确度和鲁棒性,解决了传统NMPC方法在面对参数不匹配和未知环境干扰时的性能限制,为复杂水下环境中的轨迹追踪控制提供了一种新的解决策略。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

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做以简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。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.

图1为本发明方法流程图。FIG1 is a flow chart of the method of the present invention.

图2为本发明坐标系设计图。FIG. 2 is a coordinate system design diagram of the present invention.

图3为本发明L1控制器构成图。FIG3 is a diagram showing the structure of the L1 controller of the present invention.

图4为本发明三维正弦数值模拟轨迹追踪结果图。FIG. 4 is a diagram showing the trajectory tracking results of the three-dimensional sinusoidal numerical simulation of the present invention.

图5为本发明正弦轨迹追踪结果的X-Y平面投影图。FIG5 is an X-Y plane projection diagram of the sinusoidal trajectory tracking result of the present invention.

图6为本发明正弦轨迹追踪结果的Z-Y平面投影图。FIG6 is a Z-Y plane projection diagram of the sinusoidal trajectory tracking result of the present invention.

图7为本发明正弦轨迹追踪结果的X-Z平面投影图。FIG. 7 is an X-Z plane projection diagram of the sinusoidal trajectory tracking result of the present invention.

图8为本发明无干扰工况下两控制方法对比误差曲线图。FIG8 is a graph showing the comparison error between the two control methods under the non-interference working condition of the present invention.

图9为本发明随机干扰工况下两控制方法对比误差曲线图。FIG. 9 is a graph showing the comparison error of the two control methods under random interference conditions of the present invention.

图10为本发明洋流工况下两控制方法对比误差曲线图。FIG. 10 is a graph showing the comparison error of the two control methods under the ocean current condition of the present invention.

图11为本发明波浪工况下两控制方法对比误差曲线图。FIG. 11 is a comparative error curve diagram of two control methods under wave conditions of the present invention.

图12为本发明存在模型不确定性工况下两控制方法对比误差曲线图。FIG. 12 is a graph showing the error comparison between the two control methods under the condition of model uncertainty of the present invention.

图13为本发明各工况下两方法的平均误差对比图。FIG13 is a comparison diagram of the average errors of the two methods under various working conditions of the present invention.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。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.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。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.

如图1所示,本发明提供了一种混合自适应水下机器人轨迹跟踪控制方法,包括如下步骤:As shown in FIG1 , the present invention provides a hybrid adaptive underwater robot trajectory tracking control method, comprising the following steps:

S1.建立系统运动控制模型;S1. Establish system motion control model;

S101.航行器运动学方程建立:S101. Establishment of the vehicle kinematic equations:

水下航行器的数学建模基于刚体水动力特性及其相应的运动特性。建模过程涉及静态和动态研究,前者关注物体在静止或匀速运动状态下的平衡,后者关注导致运动的力。动力学进一步细分为运动学和动力学。运动学更多研究运动物体的位置、方向等的几何关系,而动力学则更侧重于分析导致物体运动的力的分析。通过准确估计模型参数并构建精确的运动模型及外力,可以准确预测ROV的运动。该航行器的坐标系设置如图2所示。实际的数值模拟过程中采用的是BlueROV2开源平台。Mathematical modeling of underwater vehicles is based on the hydrodynamic properties of rigid bodies and their corresponding motion characteristics. The modeling process involves static and dynamic studies, the former focusing on the balance of objects 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 motion model and external forces, the motion of the ROV can be accurately predicted. The coordinate system of the vehicle is set up as shown in Figure 2. The BlueROV2 open source platform was used in the actual numerical simulation process.

本发明用六自由度来表示遥控潜水器(ROV)的整体运动,并建立相应的坐标系统进行描述。通常使用上述六自由度来定义ROV在指定坐标系统框架中的姿态信息。本发明将ROV视为一个在移动坐标系统中的刚体进行研究。为了为进一步的研究做准备,本文对运动和力进行了以下定义,如表1所示: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:

表1运动以及力和力矩的符号规定Table 1 Sign conventions for motion, force and torque

本发明定义了ROV的运动分析在两个坐标系统中,这两个系统如下所述。首先,定义了固定的地球固定坐标系统(NED),这也可以称为惯性坐标系统,是一个附着于地面并随车辆移动的参考框架。在ROV速度较低的情况下,地球的运动对ROV的影响有限。本发明使用以下符号来表示上述坐标系统框架(Oe,Xe,Ye,Ze)。机体固定参考框架(BODY)是固定在ROV机体上的移动参考坐标系统,用于描述ROV相对于惯性参考系统的运动。机体固定参考框架的轴与惯性轴一致,如表2所示。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.

表2坐标系以及速度状态表示方法Table 2 Coordinate system and speed state representation method

航行器的位置和方向通常使用地面固定坐标系统表示,而其线性速度和角速度通常使用机体固定坐标系统表示。这些值使用上表中显示的标准符号表示。两个参考框架之间的关系通过坐标变换方程描述,如下式所示: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:

将角速度和线性速度状态分开,得到:Separating the angular velocity and linear velocity states, we obtain:

从机体坐标到惯性框架的旋转矩阵:The rotation matrix from body coordinates to inertial frame:

其中,Sθ代表sinθ,Cθ代表cosθ,Tθ代表tanθ。Among them, Sθ represents sinθ, Cθ represents cosθ, and Tθ represents tanθ.

S102.航行器动力学模型建立:S102. Establishment of aircraft dynamics model:

动力学侧重于理解作用于遥控潜水器(ROV)上的力与其运动之间的联系。基于牛顿-欧拉方法,一个理想的六自由度(6-DOF)ROV的动力学方程,不考虑外部干扰或模型不确定性,如下所示: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:

其中,τ=[τ12]T上述方程是在理想状态下且未考虑外部环境干扰时ROV的动力学方程。本发明直接考虑了在六个自由度上推力和扭矩的不确定性,并在每个自由度的推力和扭矩中引入外部环境干扰。因此,方程可以重写如下:Wherein, τ=[τ 12 ] T The above equation is the dynamic equation of 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:

其中,V=[v,ω]T,在分离线性加速度和角加速度之后,上述公式可以重写为:Where V = [v, ω] T . After separating the linear acceleration and angular acceleration, the above formula can be rewritten as:

其中,M=MA+MRB,MRB是ROV的刚体惯性矩阵,是车辆的附加质量矩阵。由于本文中对浮心位置和ROV运动特性的假设,本发明选择忽略非对角元素的贡献,因此将有:Wherein, M= MA + MRB , MRB is the rigid body inertia matrix of ROV, and 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 ROV in this paper, the present invention chooses to ignore the contribution of non-diagonal elements, so there will be:

其中:in:

K1(v)=C1(ω)ω+D1(ν)ν+g1(η) (10)K 1 (v)=C 1 (ω)ω+D 1 (ν)ν+g 1 (η) (10)

K2(ν)=C2(ν,ω)[ν,ω]T+D2(ω)ω+g2(η) (11)K 2 (ν)=C 2 (ν,ω)[ν,ω] T +D 2 (ω)ω+g 2 (η) (11)

C(v)v是航行器的科氏力;D(v)v是航行器的阻尼力;是线性加速度中的环境干扰;ζ=[ζxyz]T是角加速度中的环境干扰;τ1=[fX,fY,fZ]T是推进器提供的推力。本发明中的ROV是一个全驱动系统,它可以沿三个坐标轴提供线性加速度,并围绕三个坐标轴提供角加速度。通过这样做,它可以匹配ROV自由度的不确定性和干扰,定义为: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:

g(η)是静态水恢复力,假设浮力等于重力。即B=mg,其中g是由重力引起的加速度。此外,假设(xb,yb,zb)=(0,0,0)是ROV在车辆框架中的浮心坐标,与重心坐标重合。即: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, assume that (x b ,y b ,z b ) = (0,0,0) is the buoyancy center coordinate of the ROV in the vehicle frame, which coincides with the center of gravity coordinate. That is:

一般来说,可以假设ROV正在执行非耦合运动,那么对角线上的近似阻尼项可以表示为: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:

C(v)表示科氏力。包括刚体科里奥利力项和流体动力学科里奥利力项,即:C(v) represents the Coriolis force. It includes the rigid body Coriolis force term and the fluid dynamics Coriolis force term, namely:

C(ν)=CRB+CA (14)C(ν)=C RB +C A (14)

通过拉格朗日参数化方法得到以下表达式:The following expression is obtained by Lagrange parameterization method:

S2.非线性模型预测控制:S2. Nonlinear Model Predictive Control:

非线性模型预测控制(NMPC),是一种基于数值优化的控制策略。它包含一个非线性系统模型、一个预设的成本函数和一个数值优化求解器。通过滚动求解成本函数的最小值,优化系统模型的输入,并预测未来的控制输入和系统响应。NMPC控制器在每个预测时间范围内优化未来的控制输入,并仅将第一步输入应用于实际模型,使得非线性系统响应接近参考值。在不考虑外部干扰且分析了ROV的动力学方程的情况下,非线性系统的预测模型被定义如下: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:

为了简化,下面描述了紧凑的数学形式:For simplicity, the compact mathematical form is described below:

作为一个预测模型,如上所述,方程没有考虑外部环境影响或系统不确定性(由于后续研究需要考虑模型参数的不确定性,需要添加一个不确定系数)。在构建了系统预测模型之后,需要构建一个系统成本函数。在本研究中,通过取预测系统响应与期望系统输出之间的差异,以及输入值的大小,来构建成本函数。通过最小化成本函数,本发明的目标是最小化跟踪误差和输入值,从而,找到满足约束的下一个N时间步的控制输入,然后将第一步预测值应用于系统控制。预期的导航轨迹是事先已知的,并假设为平滑且有界。引入时间参数来定义轨迹的绝对位置。预设成本函数的形式如下: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, thereby finding the control input for the next N time steps that meets the constraints, and then applying 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:

f(0)=f(t0),|ub(t)|≤ubMAX (18)f(0)=f(t 0 ),|u b (t)|≤u bMAX (18)

其中,ub表示ROV执行器的输出值,与上文提到的具有相同的含义。这里以新的形式表达ub,以便于描述;f=[η,V]T和fr=[ηr,Vr]T是实际系统状态和参考值。它使用给定在等式(17)(18)中的微分方程表示统一机动模型的动力学;ub是预测输入;Qp和Qu是对角正定权重矩阵。in, u b represents the output value of the ROV actuator and has the same meaning as mentioned above. Here, u b is expressed in a new form for ease of description; f = [η, V] T and f r = [η r , V r ] T are the actual system state and reference value. It uses the differential equations given in equations (17) (18) to represent the dynamics of the unified maneuver model; u b is the prediction input; Q p and Qu are diagonal positive definite weight matrices.

Vr=[ur(t)vr(t)wr(t)pr(t)qr(t)rr(t)]T (19)V r =[ ur (t)v r (t)w r (t)p r (t)q r (t)r r (t)] T (19)

在发明中,参考轨迹预先设计,并以时间t对x-y-z坐标轴的函数形式表达。上述方程中的积分问题在实际编程中难以解决。为了在代码中解决优化问题,需要进行数值计算。本发明通过在预测时间域中以离散形式求和成本函数来完成整个解决过程。本发明在预测时间域均匀划分M个节点,并计算每个时间节点上的成本函数。通过求和预测时间域内所有节点值后找到最小值来解决最优的第一个预测值。在第n个采样时刻的成本函数J(n)可以写为:In the invention, the reference trajectory is pre-designed and expressed in the form of a function of time t to the x-y-z 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:

s.t.f(0)=f(t0)|ub(t)|≤ubMAX,stf(0)=f(t 0 )|u b (t)|≤u bMAX ,

k1=g(t(n+i-1),f(n+i-1),ub(n+i-1))k 1 =g(t(n+i-1),f(n+i-1),u b (n+i-1))

k4=g(tn+i-1+h,fn+i-1+hk3,ub(n+i-1)) (20)k 4 =g(t n+i-1 +h,f n+i-1 +hk 3 ,u b (n+i-1)) (20)

其中,h是离散时间间隔。这里,使用四阶龙格-库塔方法来确定预测域中每个时间步的状态函数值。经过求和后,构造一个关于输入值的非线性优化问题。使用非线性优化求解器,在当前时间步的预测域中求解最优输入值。通过内部优化,本发明持续在预测的时间间隔内寻找成本函数的最优解,从而获得下一个时间步所需的输入序列。这个过程重复进行,直到达到滚动优化的目标。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.

S3.L1自适应控制方法整合,L1控制器的构成如图3所示;S3.L1 adaptive control method integration, the composition of L1 controller is shown in Figure 3;

在现实世界情况下获得精确模型是具有挑战性的,特别是在复杂的水下环境中,ROV的运动受到不确定性和干扰的影响,如螺旋桨动力学和风浪。因此,NMPC控制模型依赖于理想化的ROV运动描述。为了考虑实际系统的不确定性和未知外部干扰,将不确定性纳入系统的状态空间表示中。本发明方法通过使用L1AC来处理这些未知因素。考虑已在上述等式(8)(9)中定义的简化状态变量。导数可以重新表述为: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:

其中ub是由非线性模型预测控制器(NMPC)计算得到的输入。通过上述公式将环境干扰和模型不确定性引入系统,并推导出带有位置干扰的动态方程: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:

本文研究的ROV是一个全驱动系统,因此σm∈R6×1是可以匹配的不确定性。The ROV studied in this paper is a fully driven system, so σ mR 6×1 is an uncertainty that can be matched.

L1AC由状态预测器、自适应律和低通滤波器(LPF)组成,如图所示。状态预测器模仿系统结构,用估计值替换未知不确定性。L1AC的输出输入到不确定动态方程中: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:

其中,uL1∈R6×1表示由L1控制启动的级联补偿值。L1AC中的预测器构建如下:Where u L1 ∈ R 6×1 represents the cascade compensation value initiated by L1 control. The predictor in L1AC is constructed as follows:

其中,是状态误差;As∈R6×6是一个可调的对角赫尔维茨矩阵。使用非线性参考模型来实现L1自适应控制,以估计匹配的不确定性。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.

对使用分段常数自适应率t∈[iTs,(i+1)Ts)。A piecewise constant adaptation rate t∈[iT s ,(i+1)T s ) is used.

其中,Ts是时间步长,方阵是可逆的:Where Ts is the time step, Square matrices are reversible:

对于i∈N:For i∈N:

接下来,定义一个一阶连续时间滤波器C(s)。L1AC控制律为:Next, define a first-order continuous-time filter C(s). The L1AC control law is:

在实际中,在离散时间里,以第k个时间步为例,其控制速率可以定义为:In practice, in discrete time, taking the kth time step as an example, the control rate can be defined as:

其中,ωco是适当选择的一阶滤波器的频率极限。离散时间中的L1AC观测器如下:where ω co is the frequency limit of a properly chosen first-order filter. The L1AC observer in discrete time is given by:

分段常数自适应律可以在以下样本时间抵消状态预测中的误差(i+1)t。The piecewise constant adaptive law can offset the error in the state prediction at the following sample time (i+1)t.

根据上述公式,L1自适应部分的组成如图2所示,它被分为三部分:低通滤波器、状态预测器、自适应律。According to the above formula, the composition of the L1 adaptive part is shown in Figure 2, which is divided into three parts: low-pass filter, state predictor, and adaptive law.

本发明考虑了两种类型的干扰:一种是直接作用于ROV机体的未知环境干扰,另一种是作用于非线性模型预测控制器的模型不确定性。输入的初始条件由NMPC控制器计算得出,以获得基本控制输入ub。然后,将ub输入到自适应控制部分以实施干扰补偿,最终获得混合自适应控制输入,该输入作用于ROV模型以计算姿态状态,并提供给下一次迭代。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 is input to 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.

uall=ub+uL1 (33)u all = u b + u L1 (33)

针对无干扰工况、随机干扰工况、洋流干扰、波浪干扰以及模型不确定性5种工况,采用本发明中所涉及的轨迹追踪方法进行数值模拟试验,同时与传统NMPC方法进行对比。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.

数值模拟试验中,轨迹追踪的设定的三维正弦轨迹为:In the numerical simulation experiment, the three-dimensional sinusoidal trajectory set for trajectory tracking is:

表3ROV参数值Table 3 ROV parameter values

ROV参数值如表3所示,数值模拟的初始设置条件:速度:v0=[0,0,0,0,0,0]T。初始状态向量的前三个值是以米/秒为单位,而剩余的三个值是以rad/s为单位。预测时间范围N=5,以及采样周期为非线性模型预测控制(NMPC)控制输入约束为:The ROV parameter values are shown in Table 3. The initial setting conditions of the numerical simulation are: Speed: v 0 = [0, 0, 0, 0, 0] T . The first three values of the initial state vector are in meters per second, while 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:

umax=[50,50,50,50,50,50]T u max =[50,50,50,50,50,50] T

umin=[-50,-50,-50,-50,-50,-50]T u min =[-50,-50,-50,-50,-50,-50] T

NMPC位置误差权重矩阵:NMPC position error weight matrix:

QP=2000×diag(1,1,1,1,1,1)Q P =2000×diag(1,1,1,1,1,1)

输入代价函数矩阵:Input cost function matrix:

Qu=diag(1,1,1,1,1,1)Q u = diag(1,1,1,1,1,1)

为了进行正弦曲线轨迹跟踪的仿真实验,水下遥控器(ROV)的初始姿态状态为:S0=[1m,1m,1m,0rad,0rad,0rad]T。而进行螺旋曲线轨迹跟踪仿真实验的水下遥控器(ROV)的初始姿态状态为:In order to conduct the simulation experiment of sinusoidal curve trajectory tracking, the initial posture state of the underwater remote control (ROV) is: S 0 = [1m, 1m, 1m, 0rad, 0rad, 0rad] T . The initial posture state of the underwater remote control (ROV) for the simulation experiment of spiral curve trajectory tracking is:

S0=[1m,1m,9m,0rad,0rad,0rad]T.S 0 =[1m,1m,9m,0rad,0rad,0rad] T .

为了验证L1与NMPC级联混合自适应控制器的有效性,分别设置了以下仿真条件:无干扰、海流干扰、随机干扰、波浪干扰和模型不确定性(NMPC动态模型的系数不准确)。L1控制器的系数设置为:ω_co=[2,2,2,2,2,2]T L1控制器的系数设置为:As=-diag(5,5,5,10,10,10)其中向量的6个值的单位为rad/s。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 as: ω_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.

在这项研究中,所有的仿真都在一台配备了Intel Core i7-10750H CPU@2.60GHz2.59GHz双核处理器的笔记本电脑上进行。仿真使用基于MATLAB R2018b平台的模拟器进行。本发明选择了一个三维正弦预期轨迹。仿真在有和无海洋干扰的条件下进行。在仿真实验设计中,考虑了四种干扰,其中三种是环境干扰,并且在每个自由度的动态方程中包含了以力和扭矩表示的干扰。四种类型的干扰包括:随机干扰、海流干扰、波浪干扰和模型参数的不确定性。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.

随机干扰:Random interference:

洋流干扰:Ocean current disturbance:

海浪干扰:Wave disturbance:

第四种运行条件是模型参数的不确定性,即NMPC内部的控制模型参数存在误差。本文考虑了ROV模型参数中20%的不确定性对控制器的干扰。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.

基于上述设定参数,进行数值模拟实验。轨迹追踪结果如图4所示;图5、6、7展示了轨迹追踪结果在不同平面内的投影;图8、9、10、11、12分别展示了无干扰、随机干扰、洋流干扰、海浪干扰以及模型不确定性干扰工况下本发明涉及方法与NMPC方法的位置误差时历曲线;图13展示了各工况下本发明涉及方法与NMPC方法的平均误差对比。Based on the above set parameters, numerical simulation experiments were carried out. The trajectory tracking results are shown in Figure 4; Figures 5, 6, and 7 show the projections of the trajectory tracking results in different planes; Figures 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; Figure 13 shows the average error comparison between the method according to the present invention and the NMPC method under various conditions.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。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 by 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 (9)

1.一种混合自适应水下机器人轨迹跟踪控制方法,其特征在于,包括如下步骤:1. A hybrid adaptive underwater robot trajectory tracking control method, characterized in that it includes the following steps: S1、建立水下机器人的固定坐标系以及机体坐标系;基于固定坐标系和机体坐标系建立水下机器人的运动学方程和动力学方程;以水下机器人驱动装置状态为输入量,基于运动学方程和动力学方程建立系统运动控制模型;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、结合给定的参考轨迹和系统运动控制模型,将轨迹追踪问题转换为带有输入以及状态约束的非线性模型预测控制的滚动优化问题,得到非线性模型预测控制器;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、将位置信息以及姿态信息输入至L1控制器中,估计未知环境干扰以及模型不确定性对航行器控制带来的影响,计算得出干扰补偿uL1;将干扰补偿uL1和基本的非线性模型预测控制器输入ub相结合后得到混合自适应控制输入输入至系统运动控制模型中,并考虑未知干扰,计算输出航行器位置、姿态状态,并作为下一次迭代计算的初始值输入L1控制器和非线性模型预测控制器中,即时补偿因未知环境干扰和模型参数不确定性导致的跟踪精度误差,最终实现对水下机器人轨迹进行跟踪控制。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 vehicle, and calculate the interference compensation u L1 ; combine the interference compensation u L1 with the basic nonlinear model predictive controller input u b 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, and input them into the L1 controller and the nonlinear model predictive controller as the initial value for the next iterative calculation, so as to immediately 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.根据权利要求1所述的混合自适应水下机器人轨迹跟踪控制方法,其特征在于,S1具体包括如下步骤:2. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1 is characterized in that S1 specifically comprises the following steps: S101、建立水下机器人的固定坐标系以及描述机体运动的机体坐标系;S101, establishing a fixed coordinate system of the underwater robot and a body coordinate system describing the body motion; S102、通过使用旋转矩阵将固定坐标系以及机体坐标系之间进行相互转换,以描述水下机器人的运动学方程和动力学方程;S102, converting between the fixed coordinate system and the body coordinate system by using a rotation matrix to describe the kinematic equation and dynamic equation of the underwater robot; S103、采用CFD方法求解水下机器人的水动力系数、惯性矩阵和科氏力矩阵;S103, using CFD method to solve the hydrodynamic coefficient, inertia matrix and Coriolis force matrix of the underwater robot; S104、将水动力系数、惯性矩阵、科氏力矩阵带入至运动学方程和动力学方程中并采用Fossen模型的形式构建系统的动态描述方程;在动态描述方程中加入运动执行机构的输入,以建立系统运动控制模型。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.根据权利要求2所述的混合自适应水下机器人轨迹跟踪控制方法,其特征在于,S102中,所述旋转矩阵如下:3. The hybrid adaptive underwater robot trajectory tracking control method according to claim 2, characterized in that, in S102, the rotation matrix is as follows: 其中,Sθ代表sinθ,Cθ代表cosθ,Tθ代表tanθ。Among them, Sθ represents sinθ, Cθ represents cosθ, and Tθ represents tanθ. 4.根据权利要求1所述的混合自适应水下机器人轨迹跟踪控制方法,其特征在于,S2具体包括如下步骤:4. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1, characterized in that S2 specifically comprises the following steps: S201、给定参考轨迹,结合S1中的系统运动控制模型,,建立模型预测控制方法的数学模型;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、确定S201中数学模型的预测控制参数矩阵,结合S201中数学模型,通过编程语言建立模型预测控制器;模型预测控制器考虑输入以及状态约束,对轨迹追踪控制问题进行优化控制,得到非线性模型预测控制器。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.根据权利要求1所述的混合自适应水下机器人轨迹跟踪控制方法,其特征在于,所述非线性模型预测控制器包括一个非线性系统模型、一个预设的成本函数和一个数值优化求解器;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: 其中,f代表水下航行器的位姿、速度信息,η为水下航行器的位置、姿态,V为速度信息;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),|ub(t)|≤ubMAX f(0)=f(t 0 ),|u b (t)|≤u bMAX 其中,ub表示水下机器人执行器的输出值,f=[η,V]T表示实际系统状态,fr=[ηr,Vr]T表示系统状态参考值,ub是预测输入,Qp和Qu是对角正定权重矩阵;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 represents the system state reference value, u b is the predicted input, Q p and Qu are diagonal positive definite weight matrices; Vr=[ur(t) vr(t) wr(t) pr(t) qr(t) rr(t)]T 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),|ub(t)|≤ubMAX stf(0)=f(t 0 ),|u b (t)|≤u bMAX k1=g(t(n+i-1),f(n+i-1),ub(n+i-1))k 1 =g(t(n+i-1),f(n+i-1),u b (n+i-1)) k4=g(tn+i-1+h,fn+i-1+hk3,ub(n+i-1))k 4 =g(t n+i-1 +h,f n+i-1 +hk 3 ,u b (n+i-1)) 其中,h是离散时间间隔,f代表水下航行器的状态函数,下标代表离散的时间步,k代表四阶龙格-库塔方法的中间系数;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.根据权利要求1所述的混合自适应水下机器人轨迹跟踪控制方法,其特征在于,S3具体包括如下步骤:6. The hybrid adaptive underwater robot trajectory tracking control method according to claim 1, characterized in that S3 specifically comprises the following steps: 将环境干扰和模型不确定性引入ROV的运动模型,公式如下:Introducing environmental interference and model uncertainty into the ROV motion model, the formula is as follows: 其中,ub是由非线性模型预测控制器计算得到的输入;in, u b is the input calculated by the nonlinear model predictive controller; 推导出带有位置干扰的动态方程,公式如下:The dynamic equation with position disturbance is derived as follows: 将L1控制器的输出值uL1输入至带有位置干扰的动态方程中,公式如下:The output value u L1 of the L1 controller is input into the dynamic equation with position disturbance, as follows: 其中,uL1∈R6×1表示由L1控制器启动的级联补偿值。Wherein, u L1 ∈R 6×1 represents the cascade compensation value activated by the L1 controller. 7.根据权利要求6所述的混合自适应水下机器人轨迹跟踪控制方法,其特征在于,所述L1控制器包括状态预测器、自适应律和低通滤波器;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: 其中,代表状态估计值,是状态误差;As∈R6×6是一个可调的对角赫尔维茨矩阵;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: 其中Ts是时间步长,方阵是可逆的:Where Ts is the time step, Square matrices are reversible: 对于i∈N:For i∈N: 接下来,定义一个一阶连续时间滤波器C(s),L1AC控制律为:Next, a first-order continuous-time filter C(s) is defined, and the L1AC control law is: 在实际中,在离散时间里,以第k个时间步为例,其控制速率可以定义为:In practice, in discrete time, taking the kth time step as an example, the control rate can be defined as: 其中,ωco是适当选择的一阶滤波器的频率极限,离散时间中的L1AC观测器如下:Where ω co is the frequency limit of a properly chosen first-order filter, the L1AC observer in discrete time is given by: 分段常数自适应律可以在以下样本时间抵消状态预测中的误差(i+1)t;The piecewise constant adaptive law can offset the error in state prediction at the following sample time (i+1)t; 8.一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序运行时,执行所述权利要求1至7中任一项权利要求所述的混合自适应水下机器人轨迹跟踪控制方法。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 described in any one of claims 1 to 7 is executed. 9.一种电子装置,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器通过所述计算机程序运行执行所述权利要求1至7中任一项权利要求所述的混合自适应水下机器人轨迹跟踪控制方法。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 as described in any one of claims 1 to 7 through the computer program.
CN202410690594.7A 2024-05-30 2024-05-30 Hybrid self-adaptive underwater robot track tracking control method Pending CN118672287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410690594.7A CN118672287A (en) 2024-05-30 2024-05-30 Hybrid self-adaptive underwater robot track tracking control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410690594.7A CN118672287A (en) 2024-05-30 2024-05-30 Hybrid self-adaptive underwater robot track tracking control method

Publications (1)

Publication Number Publication Date
CN118672287A true CN118672287A (en) 2024-09-20

Family

ID=92727410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410690594.7A Pending CN118672287A (en) 2024-05-30 2024-05-30 Hybrid self-adaptive underwater robot track tracking control method

Country Status (1)

Country Link
CN (1) CN118672287A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119200438A (en) * 2024-11-29 2024-12-27 德清县浙工大莫干山研究院 Position tracking control method of networked motion control system based on high-order all-wheel drive

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119200438A (en) * 2024-11-29 2024-12-27 德清县浙工大莫干山研究院 Position tracking control method of networked motion control system based on high-order all-wheel drive

Similar Documents

Publication Publication Date Title
Xiang et al. Robust fuzzy 3D path following for autonomous underwater vehicle subject to uncertainties
CN108803321B (en) Autonomous underwater vehicle track tracking control method based on deep reinforcement learning
Mohan et al. Indirect adaptive control of an autonomous underwater vehicle-manipulator system for underwater manipulation tasks
Li et al. Robust adaptive motion control for underwater remotely operated vehicles with velocity constraints
Huang et al. Vehicle-manipulator system dynamic modeling and control for underwater autonomous manipulation
Gao et al. Model predictive visual servoing of fully-actuated underwater vehicles with a sliding mode disturbance observer
Di Lillo et al. Advanced ROV autonomy for efficient remote control in the DexROV project
Wang et al. Adversarial deep reinforcement learning based robust depth tracking control for underactuated autonomous underwater vehicle
Bian et al. Three-dimensional coordination control for multiple autonomous underwater vehicles
CN111857165B (en) A kind of trajectory tracking control method of underwater vehicle
CN114115262A (en) Multi-AUV actuator saturated collaborative formation control system and method based on azimuth information
CN118672287A (en) Hybrid self-adaptive underwater robot track tracking control method
Peng et al. Research on hover control of AUV uncertain stochastic nonlinear system based on constructive backstepping control strategy
Kumar et al. Discrete time-delay control of an autonomous underwater vehicle: Theory and experimental results
Sæbϕ et al. Robust task-priority impedance control for vehicle-manipulator systems
Meng et al. An adaptive internal model control approach for unmanned surface vehicle based on bidirectional long short-term memory neural network: Implementation and field testing
Wang et al. An expert-demonstrated soft actor–critic based adaptive trajectory tracking control of Autonomous Underwater Vehicle with Long Short-Term Memory
Rezazadegan et al. An adaptive control scheme for 6-dof control of an auv using saturation functions
CN113625729B (en) Remote operation device of underwater robot under large time delay and implementation method
Barbalata Modelling and control of lightweight underwater vehicle-manipulator systems
Nicholas et al. Robust adaptive control of underwater vehicles for precision operations
Zhang et al. Mpc for 3-d trajectory tracking of uuv with constraints using laguerre functions
Lionel Underwater robots part II: Existing solutions and open issues
Kraïem et al. Simulation platform to design and validate control laws for a space manipulator system performing on-orbit servicing
Cheng et al. Reinforcement learning for underwater navigation subject to infrequent position measurements

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination