CN102862666B - Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF) - Google Patents

Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF) Download PDF

Info

Publication number
CN102862666B
CN102862666B CN201110190512.5A CN201110190512A CN102862666B CN 102862666 B CN102862666 B CN 102862666B CN 201110190512 A CN201110190512 A CN 201110190512A CN 102862666 B CN102862666 B CN 102862666B
Authority
CN
China
Prior art keywords
state
variance
noise
filter
extended
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.)
Active
Application number
CN201110190512.5A
Other languages
Chinese (zh)
Other versions
CN102862666A (en
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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201110190512.5A priority Critical patent/CN102862666B/en
Publication of CN102862666A publication Critical patent/CN102862666A/en
Application granted granted Critical
Publication of CN102862666B publication Critical patent/CN102862666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Feedback Control In General (AREA)

Abstract

本发明公开一种基于自适应UKF的水下机器人状态和参数联合估计方法,该方法首先建立了水下机器人的扩展参考模型,该参考模型有水下机器人的动力学模型和推进器的故障模型;依据位置传感器探测到的位姿信息,采用自适应UKF的主滤波器对水下机器人状态包括位姿和速度及推进器故障组成的扩展状态传递和更新,实时估计出水下机器人的速度信息和推进器故障信息;同时,依据主滤波器的新息信息,采用自适应UKF的辅助滤波器对系统的噪声信息进行实时的估计。该方法具有很好的实时性,可在线对系统的状态和参数进行联合估计,且当过程噪声和测量噪声的先验信息未知的情况下,该方法也能够达到较的估计精度。

The invention discloses a method for jointly estimating the state and parameters of an underwater robot based on self-adaptive UKF. The method first establishes an extended reference model of the underwater robot, and the reference model includes a dynamic model of the underwater robot and a fault model of the thruster. ; According to the position and orientation information detected by the position sensor, the main filter of the adaptive UKF is used to transmit and update the extended state of the underwater robot state, including the position, velocity and thruster failure, and estimate the velocity information and Thruster fault information; at the same time, according to the innovation information of the main filter, the auxiliary filter of adaptive UKF is used to estimate the noise information of the system in real time. This method has good real-time performance, and can jointly estimate the state and parameters of the system online, and when the prior information of process noise and measurement noise is unknown, this method can also achieve relatively high estimation accuracy.

Description

一种基于自适应UKF的水下机器人状态和参数联合估计方法A Joint Estimation Method of State and Parameters of Underwater Robot Based on Adaptive UKF

技术领域 technical field

本发明涉及一种基于自适应无色卡尔曼滤波(UKF,Unscented KalmanFilter)的水下机器人状态和参数联合估计方法,特别涉及一种基于自适应UKF的水下机器人状态和推进器故障参数联合估计方法。The present invention relates to a kind of joint estimation method of state and parameter of underwater robot based on self-adaptive colorless Kalman filter (UKF, Unscented KalmanFilter), particularly relate to a kind of joint estimation method of state of underwater robot and thruster failure parameter based on self-adaptive UKF method.

技术背景 technical background

随着海洋开发事业的迅速发展,水下施工和建设项目越来越多,对于水下作用手段的性能要求也越来越高。由于水下机器人能够在水下进行观察、摄影、打捞和施工作业,因此在海洋开发中得到广泛的应用。而推进器的健康状况决定着水下机器人能否很好完成预期的任务。传统预编程的水下机器人在检测到推进器有故障发生时一般采取抛载上浮等措施,其实在很多情况下,水下机器人的推进器并非完全失效,如果能够实时的辨识出其效率损失因子,然后对推力进行重新分配,水下机器人仍可能完成预期的任务。With the rapid development of marine development, there are more and more underwater construction and construction projects, and the performance requirements for underwater means of action are also getting higher and higher. Because underwater robots can perform observation, photography, salvage and construction operations underwater, they are widely used in ocean development. The health of the propeller determines whether the underwater robot can complete the expected tasks well. Traditional pre-programmed underwater robots generally take measures such as dumping and floating when detecting a fault in the propeller. In fact, in many cases, the propeller of the underwater robot is not completely invalid. If the efficiency loss factor can be identified in real time , and then redistribute the thrust, the underwater robot may still complete the expected tasks.

在水下机器人系统的噪声信息已知的情况下,采用UKF算法能够达到很好的估计效果,而在系统噪声信息未知时,如果设置的噪声参数与实际的噪声相差过大,就会导致有偏估计甚至滤波算法的发散,因此要设计和采用更适合于估计系统噪声信息的滤波算法,以达到实时的估计水下机器人系统的噪声信息,在噪声信息未知的情况下仍可以达到很好的估计效果。When the noise information of the underwater robot system is known, the UKF algorithm can achieve a good estimation effect, but when the noise information of the system is unknown, if the set noise parameters are too different from the actual noise, it will lead to some problems. Therefore, it is necessary to design and adopt a filtering algorithm that is more suitable for estimating the noise information of the system, so as to achieve real-time estimation of the noise information of the underwater robot system, and it can still achieve good accuracy when the noise information is unknown. estimated effect.

发明内容 Contents of the invention

针对上述存在的问题,本发明提供了一种能实时估计推进器故障信息和系统噪声信息,并具有实用性好、估算精度高的基于自适应UKF的水下机器人状态和参数联合估计方法In view of the above existing problems, the present invention provides a joint estimation method of state and parameters of underwater robot based on self-adaptive UKF, which can estimate thruster fault information and system noise information in real time, and has good practicability and high estimation accuracy

为实现本发明的目的,本发明采用如下方案:For realizing the purpose of the present invention, the present invention adopts following scheme:

一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于包括以下步骤:A method for jointly estimating the state and parameters of an underwater robot based on adaptive UKF is characterized in that it comprises the following steps:

在水下机器人动力学模型的基础上,对推进器故障进行建模,得到离线的扩展参考模型;根据位姿传感器探测的在线位姿信息yk,采用自适应UKF的主滤波器为标准UKF滤波估计算法,结合水下机器人离线的扩展参考模型为扩展的系统状态方程,对系统状态和推进器故障组成的扩展状态传递和更新,实时估计出系统的状态和参数信息,得到系统估算的结果值均值和方差Pk;这里系统的状态信息包括经过滤波后的位姿信息sk和实时估计出来的速度信息参数信息为系统推进器的故障参数bk,同时,依据主滤波器计算估计的新息信息ξk计算出辅助滤波器的测量值Sqk;建立UKF辅助滤波器的状态方程和测量方程,依据测量值Sqk作为系统的观测信号,采用自适应UKF的辅助滤波器KF对水下机器人系统的噪声信息进行实时估计,得到系统噪声协方差阵D的对角线元素和方的估算值,这里的噪声信息包括过程噪声wk和测量噪声vk,它们的协方差矩阵分别为Dw和DvOn the basis of the dynamic model of the underwater robot, the propeller fault is modeled to obtain an offline extended reference model; according to the online pose information y k detected by the pose sensor, the main filter of the adaptive UKF is used as the standard UKF The filter estimation algorithm, combined with the offline extended reference model of the underwater robot, is the extended system state equation, which transmits and updates the extended state composed of the system state and thruster failure, estimates the state and parameter information of the system in real time, and obtains the result of system estimation value mean and variance P k ; here the state information of the system includes filtered pose information sk and real-time estimated speed information The parameter information is the fault parameter b k of the propeller of the system. At the same time, the measurement value Sq k of the auxiliary filter is calculated according to the new information ξ k calculated and estimated by the main filter; the state equation and measurement equation of the UKF auxiliary filter are established, based on The measured value Sq k is used as the observation signal of the system, and the auxiliary filter KF of the adaptive UKF is used to estimate the noise information of the underwater vehicle system in real time, and the diagonal elements of the system noise covariance matrix D are obtained Peaceful The estimated value of , the noise information here includes process noise w k and measurement noise v k , and their covariance matrices are D w and D v respectively.

主滤波器扩展系统方程形成过程:Formation process of main filter extended system equation:

扩展非线性系统时,含有未知/时变推进器的故障参数bk的系统状态空间方程为:When expanding the nonlinear system, the state space equation of the system with unknown/time-varying thruster fault parameter bk is:

xk+1=f(xk,bk,uk)+wk x k+1 =f(x k ,b k ,u k )+w k

bk+1=fb(xk,bk,uk)+wkb b k+1 =f b (x k ,b k ,u k )+w kb

式中,bk是k时刻的未知/时变推进器故障参数,wkb为故障参数模型的系统推进器故障噪声矢量,是零均值的高斯噪声;where b k is the unknown/time-varying thruster fault parameter at time k, and w kb is the system thruster fault noise vector of the fault parameter model, which is Gaussian noise with zero mean value;

当故障参数bk变化规律未知,则可将bk视为不相关的随机漂移矢量,其递归表达式为:When the change law of the fault parameter b k is unknown, b k can be regarded as an uncorrelated random drift vector, and its recursive expression is:

bk=bk-1+wbk b k =b k-1 +w b k

基于自适应UKF的联合估计,将系统推进器的故障参数追加到系统的真实状态后,组成扩展的状态矩阵,即把系统方程组成为扩展系统状态方程为:Based on the joint estimation of adaptive UKF, the fault parameters of the propellers of the system are added to the real state of the system to form an extended state matrix, namely Composing the system equations into an extended system state equation is:

xx kk ++ 11 aa == ff ~~ (( xx kk aa ,, uu kk )) ++ ww kk aa

式中,为扩展的系统过程噪声矢量,其中为系统过程噪声矢量,为估计推进器故障噪声矢量。In the formula, is the extended system process noise vector, where is the system process noise vector, To estimate the thruster fault noise vector.

扩展参考模型中故障参数bk表示为k时刻第i个推进器的效率损失因子,取0~1数值表示推进器故障发生失效的程度。The fault parameter b k in the extended reference model Expressed as the efficiency loss factor of the i-th propeller at time k, the value of 0 to 1 indicates the degree of propeller failure.

自适应UKF算法中辅助滤波器状态方程的构建:The construction of the auxiliary filter state equation in the adaptive UKF algorithm:

由水下机器人系统噪声方差矩阵对角线元素可将辅助滤波器的状态方程表示为:The diagonal elements of the noise variance matrix of the underwater vehicle system The state equation of the auxiliary filter can be expressed as:

qq ‾‾ kk == ff qq (( qq ‾‾ kk -- 11 )) ++ ww qq kk

其中为辅助滤波器中的系统噪声矢量,是零均值高斯白噪声;in is the system noise vector in the auxiliary filter, which is zero-mean Gaussian white noise;

由于的变化规律未知,可将其视为噪声驱动的不相关的随机漂移向量,所以可得辅助滤波器的状态方程:because The change law of is unknown, and it can be regarded as an uncorrelated random drift vector driven by noise, so the state equation of the auxiliary filter can be obtained:

qq ‾‾ kk == qq ‾‾ kk -- 11 ++ ww qq kk ..

自适应UKF算法中辅助滤波器测量方程的构建:Construction of auxiliary filter measurement equation in adaptive UKF algorithm:

以主滤波器的新息ξk方差矩阵的测量值Sqk作为系统的观测信号,依据主滤波器扩展状态的一步估计的方差Pk|k-1,主滤波器扩展状态的方差Pk,主滤波器UKF的增益矩阵Kk组成辅助滤波器的测量方程为:Taking the measured value Sq k of the variance matrix of the innovation ξ k of the main filter as the observed signal of the system, according to the variance P k|k-1 of the one-step estimation of the extended state of the main filter, the variance P k of the extended state of the main filter, The measurement equation of the auxiliary filter composed of the gain matrix K k of the main filter UKF is:

SS ‾‾ qq kk == gg (( qq ‾‾ kk )) == vdiagvdiag [[ (( KK kk TT KK kk )) -- 11 KK kk TT (( PP kk || kk -- 11 -- PP kk )) KK kk (( KK kk TT KK kk )) -- 11 ]]

其中vdiag为中括号内矩阵的主对角线元素组成的一个向量。Where vdiag is a vector composed of the main diagonal elements of the matrix in square brackets.

主滤波器对扩展的状态方程滤波估计的实现过程:The implementation process of the main filter for the extended state equation filter estimation:

对上一时刻随机向量的被估计量均值和方差Pk-1经非线性无色变换后,得到的一组离散Sigma点χk-1,经系统状态方程计算更新Sigma点,然后计算出更新Sigma点的扩展状态均值和方差Pk|k-1,对扩展状态均值和方差Pk|k-1计算得到一步估计的状态均值和方差;对一步估计的状态均值和方差再经无色变换和用测量方程计算更新,得到水下机器人可观测状态的均值其方差及协方差的估计值;读取传感器采集可观测位姿信息yk同扩展状态均值和方差Pk|k-1和可观测状态的估计值及增益矩阵Kk经计算估计,得到系统均值方差Pk的估算值,从中得到新息ξk;依主滤波器的新息ξk经计算得到测量值Sqk作为辅助滤波器的观测信号,然后接续辅助滤波器程序步骤。The mean value of the estimator of the random vector at the previous moment A set of discrete Sigma points χ k-1 obtained after the sum variance P k-1 undergoes nonlinear colorless transformation, the updated Sigma points are calculated by the system state equation, and then the extended state mean value of the updated Sigma points is calculated and variance P k|k-1 , for the extended state mean Calculate the state mean and variance of the one-step estimate with the variance P k|k-1 ; the state mean and variance of the one-step estimate are then updated by colorless transformation and calculated with the measurement equation to obtain the mean value of the observable state of the underwater robot its variance and covariance The estimated value of ; read the sensor to collect the observable pose information y k and the mean value of the extended state The sum variance P k|k-1 and the estimated value of the observable state and the gain matrix K k are calculated and estimated to obtain the system mean The estimated value of the variance P k is obtained from it to obtain the innovation ξ k ; the measured value Sq k is calculated according to the innovation ξ k of the main filter as the observation signal of the auxiliary filter, and then the auxiliary filter program steps are continued.

辅助滤波器KF对系统过程噪声进行滤波估计的实现过程:The realization process of the auxiliary filter KF for filtering and estimating the system process noise:

上一时刻估计得到辅助滤波器的系统噪声方差矩阵的对角线元素和其方差用辅助滤波器的状态方程对计算更新后得到对角线元素和其方差的一步估计值;用辅助滤波器的测量方程依主滤波器的一步估计的方差Pk|k-1、扩展状态方差Pk和增益矩阵Kk经计算更新后得到估计的观测值所得到的一步估计值和观测值同主滤波器的测量值Sqk经计算估计得到系统过程噪声方差阵D的对角线元素的估算值和其方差当有新观测位姿信息yk时,接续下一控制周期主滤波器程序步骤。The diagonal elements of the system noise variance matrix of the auxiliary filter estimated at the previous moment and its variance Using the state equation of the auxiliary filter for and Calculate the diagonal elements after updating and its variance One-step estimated value of ; use the measurement equation of the auxiliary filter to calculate and update the estimated observed value according to the one-step estimated variance P k|k-1 of the main filter, the extended state variance P k and the gain matrix K k The resulting one-step estimates and observations The measured value Sq k of the same main filter is calculated and estimated to obtain the estimated value of the diagonal elements of the system process noise variance matrix D and its variance When there is new observed pose information y k , the main filter program step of the next control cycle is continued.

本发明与现有技术相比有益效果如下:Compared with the prior art, the present invention has the following beneficial effects:

1.本发明实现简单,可以在现有的水下机器人载体上直接使用该方法,不需要对水下机器人的硬件系统进行任何的改动,也不需要增加任何的硬件设备。该发明可以嵌入水下机器人现有的线程中,对水下机器人来说,仅仅是增加了系统的计算量。1. The present invention is simple to realize, and the method can be used directly on the existing underwater robot carrier, without any modification to the hardware system of the underwater robot, and no need to add any hardware equipment. The invention can be embedded in the existing thread of the underwater robot, and for the underwater robot, it only increases the calculation amount of the system.

2.本发明估计方法,是根据水下机器人传感器的探测信息,采用自适应UKF算法,实时的估计水下机器人状态和推进器的故障参数信息,这些信息为水下机器人的容错控制提供了依据,能够实时的辨识出其效率损失因子,然后对推力进行重新分配,以保证水下机器人仍可能完成预期的任务。2. The estimation method of the present invention is based on the detection information of the underwater robot sensor, adopts the adaptive UKF algorithm, estimates the fault parameter information of the underwater robot state and the propeller in real time, and these information provide the basis for the fault-tolerant control of the underwater robot , can identify its efficiency loss factor in real time, and then redistribute the thrust to ensure that the underwater robot can still complete the expected tasks.

3.本发明估计精度高,可在线对系统的状态和参数进行联合估计。由于UT直接作用在非线性动力学模型上,不需要对其进行线性化,所以避免了非线性系统线性化过程中产生的线性化误差。3. The present invention has high estimation accuracy, and can jointly estimate the state and parameters of the system online. Since the UT directly acts on the nonlinear dynamic model, it does not need to be linearized, so the linearization error generated during the linearization of the nonlinear system is avoided.

4.在系统的噪声先验信息包括过程噪声和测量噪声未知的情况下,如果设置的噪声和实际的噪声有较大偏差,采用UKF滤波估计算法会产生有偏误差或者滤波算法的发散,而自适应UKF算法中由于辅助滤波器可以对系统的噪声信息进行实时估计,且能够较快的收敛,所以能够达到较高的估计精度。4. In the case where the noise prior information of the system includes unknown process noise and measurement noise, if there is a large deviation between the set noise and the actual noise, the UKF filter estimation algorithm will produce biased errors or divergence of the filter algorithm, while In the adaptive UKF algorithm, because the auxiliary filter can estimate the noise information of the system in real time, and can converge quickly, it can achieve higher estimation accuracy.

附图说明 Description of drawings

图1为该发明方法的实现原理图;Fig. 1 is the realization schematic diagram of this inventive method;

图2为该发明的滤波估计流程图。Fig. 2 is a flow chart of filtering estimation of the invention.

具体实施方式 Detailed ways

下面结合附图和实施例对本发明方案进一步详细描述:Below in conjunction with accompanying drawing and embodiment the scheme of the present invention is described in further detail:

参见附图1~2,为本发明方法实现原理图和其滤波估计流程图。一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于包括以下步骤:Referring to accompanying drawings 1-2, it is the realization schematic diagram of the method of the present invention and its filter estimation flow chart. A method for jointly estimating the state and parameters of an underwater robot based on adaptive UKF is characterized in that it comprises the following steps:

在水下机器人动力学模型的基础上,对推进器故障进行建模,得到离线的扩展参考模型;根据位姿传感器探测的在线位姿信息yk,采用自适应UKF的主滤波器为标准UKF滤波估计算法,结合水下机器人离线的扩展参考模型为扩展的系统状态方程,对系统状态和推进器故障组成的扩展状态传递和更新,实时的估计出系统的状态和参数信息,得到系统估算的结果值均值和方差Pk;这里系统的状态信息包括经过滤波后的位姿信息sk和实时估计出来的速度信息参数信息为系统推进器的故障参数bk,同时,依据主滤波器计算估计的新息信息ξk计算出辅助滤波器的测量值Sqk;建立UKF辅助滤波器的状态方程和测量方程,依据测量值Sqk作为系统的观测信号,采用自适应UKF的辅助滤波器KF对水下机器人系统的噪声信息进行实时估计,得到系统噪声协方差阵D的对角线元素和方差的估算值;这里的噪声信息包括过程噪声wk和测量噪声vk,它们的协方差矩阵分别为Dw和DvOn the basis of the dynamic model of the underwater robot, the propeller fault is modeled to obtain an offline extended reference model; according to the online pose information y k detected by the pose sensor, the main filter of the adaptive UKF is used as the standard UKF The filter estimation algorithm, combined with the offline extended reference model of the underwater robot, is the extended system state equation, which transmits and updates the extended state composed of the system state and thruster faults, estimates the state and parameter information of the system in real time, and obtains the estimated value of the system. result mean and variance P k ; here the state information of the system includes filtered pose information sk and real-time estimated speed information The parameter information is the fault parameter b k of the propeller of the system. At the same time, the measurement value Sq k of the auxiliary filter is calculated according to the new information ξ k calculated and estimated by the main filter; the state equation and measurement equation of the UKF auxiliary filter are established, based on The measured value Sq k is used as the observation signal of the system, and the auxiliary filter KF of the adaptive UKF is used to estimate the noise information of the underwater vehicle system in real time, and the diagonal elements of the system noise covariance matrix D are obtained and variance The estimated value of ; the noise information here includes process noise w k and measurement noise v k , and their covariance matrices are D w and D v respectively.

扩展参考模型中故障参数bk表示为k时刻第i个推进器的效率损失因子,取0~1数值表示推进器故障发生失效的程度。The fault parameter b k in the extended reference model Expressed as the efficiency loss factor of the i-th propeller at time k, the value of 0 to 1 indicates the degree of propeller failure.

离线的扩展参考模型的够建过程:The process of building an offline extended reference model:

水下机器人的动力学模型表示如下:The dynamic model of the underwater robot is expressed as follows:

Mm sthe s ·&Center Dot; ·&Center Dot; ++ CC (( sthe s ·· )) sthe s ·&Center Dot; ++ DD. (( sthe s ·&Center Dot; )) sthe s ·&Center Dot; ++ GG (( sthe s )) == uu

式中,M为6×6维的惯性矩阵,包含离心力和哥氏力的6×6维矩阵,为6×6维的水动力矩阵,G(s)包含重力和浮力的6×1维矩阵,s和u分别为6×1维的状态和电机转矩向量;In the formula, M is a 6×6 dimensional inertia matrix, A 6×6 dimensional matrix containing centrifugal and Coriolis forces, is a 6×6 dimensional hydrodynamic matrix, G(s) contains a 6×1 dimensional matrix of gravity and buoyancy, s and u are 6×1 dimensional state and motor torque vectors, respectively;

根据推进器的故障表现为系统电机转矩向量输入的变化,得到水下机器人的扩展参考模型表示如下:According to the failure of the thruster as the change of the torque vector input of the system motor, the extended reference model of the underwater robot is expressed as follows:

Mm sthe s ·&Center Dot; ·&Center Dot; ++ CC (( sthe s ·&Center Dot; )) sthe s ·&Center Dot; ++ DD. (( sthe s ·· )) sthe s ·&Center Dot; ++ GG (( sthe s )) == Ff (( uu ))

式中F(u)为推进器的故障函数,定义如下:where F(u) is the fault function of the thruster, defined as follows:

Fk(uk)=uk+Ukbk F k (u k )=u k +U k b k

b k = b k 1 b k 2 . . . b k 6 b k = b k 1 b k 2 . . . b k 6

上式中,uk为6×1维电机转矩向量矩阵,bk为6×1维推进器故障参数矩阵,表示为k时刻推进器的效率损失因子,上标i表示第i个推进器,当时,表示第i个推进器正常;当时,表示第i个推进器发生了硬性故障,即损失因子为100%;当时,表示第i个推进器发生了软性故障,即部分失效。In the above formula, u k is a 6×1-dimensional motor torque vector matrix, b k is a 6×1-dimensional thruster fault parameter matrix, Expressed as the efficiency loss factor of the propeller at time k, the superscript i represents the ith propeller, when When , it means that the i-th propeller is normal; when When When , it means that the i-th thruster has a soft fault, that is, a partial failure.

主滤波器扩展系统状态方程的形成过程:The formation process of the main filter extended system state equation:

扩展非线性系统时,含有未知/时变推进器的故障参数bk的系统状态空间方程为:When expanding the nonlinear system, the state space equation of the system with unknown/time-varying thruster fault parameter bk is:

xk+1=f(xk,bk,uk)+wk x k+1 =f(x k ,b k ,u k )+w k

bk+1=fb(xk,bk,uk)+wbk b k+1 =f b (x k ,b k ,u k )+w bk

式中,bk是k时刻的未知/时变推进器故障参数矢量,wkb为故障参数模型的系统推进器故障噪声,是零均值的高斯噪声;In the formula, b k is the unknown/time-varying thruster fault parameter vector at time k, and w kb is the system thruster fault noise of the fault parameter model, which is Gaussian noise with zero mean value;

因为故障参数bk变化规律未知,则可将bk视为不相关的随机漂移矢量,其递归表达式为:Because the change law of the fault parameter b k is unknown, b k can be regarded as an uncorrelated random drift vector, and its recursive expression is:

bk=bk-1+wbk b k =b k-1 +w b k

在基于自适应UKF的联合估计中,将系统推进器的故障参数追加到系统的真实状态后,组成扩展的状态矩阵,即把系统方程组成为扩展系统状态方程的形式为:In the joint estimation based on adaptive UKF, the fault parameters of the system thrusters are added to the real state of the system to form an extended state matrix, namely Composing the system equations into an extended system state equation is in the form:

xx kk ++ 11 aa == ff ~~ (( xx kk aa ,, uu kk )) ++ ww kk aa

式中,为扩展的系统过程噪声矢量,其中为系统过程噪声矢量,表示估计推进器的噪声矢量。In the formula, is the extended system process noise vector, where is the system process noise vector, represents the noise vector of the estimated thruster.

主滤波器对扩展的状态方程滤波估计的实现过程:The implementation process of the main filter for the extended state equation filter estimation:

对上一时刻随机向量的被估计量的均值和方差Pk-1经非线性无色变换后,得到的一组离散Sigma点χk-1,经系统状态方程计算更新Sigma点,然后计算出更新Sigma点的扩展状态均值和方差Pk|k-1,对扩展状态均值和方差Pk|k-1计算得到一步估计的状态均值和方差;对一步估计的状态均值和方差再经无色变换和用测量方程计算更新,得到水下机器人可观测状态的均值其方差及协方差的估计值;读取传感器采集可观测位姿信息yk同扩展状态均值和方差Pk|k-1和可观测状态的估计值及增益矩阵Kk经计算估计,得到系统均值方差Pk估算值,从中得到新息ξk;依主滤波器的新息ξk经计算得到测量值Sqk作为辅助滤波器的观测信号,然后接续辅助滤波器程序步骤。The mean value of the estimated quantity of the random vector at the last moment A set of discrete Sigma points χ k-1 obtained after the sum variance P k-1 undergoes nonlinear colorless transformation, the updated Sigma points are calculated by the system state equation, and then the extended state mean value of the updated Sigma points is calculated and variance P k|k-1 , for the extended state mean Calculate the state mean and variance of the one-step estimate with the variance P k|k-1 ; the state mean and variance of the one-step estimate are then updated by colorless transformation and calculated with the measurement equation to obtain the mean value of the observable state of the underwater robot its variance and covariance The estimated value of ; read the sensor to collect the observable pose information y k and the mean value of the extended state The sum variance P k|k-1 and the estimated value of the observable state and the gain matrix K k are calculated and estimated to obtain the system mean Estimated value of variance P k , from which the innovation ξ k is obtained; calculated according to the innovation ξ k of the main filter, the measured value Sq k is obtained as the observation signal of the auxiliary filter, and then the auxiliary filter program steps are continued.

参见附图2,所述的自适应滤波估计算法是以基本的卡尔曼滤波算法为框架,通过非线性的无色变换来进行非线性系统的状态和误差协方差的递推和更新。Referring to Figure 2, the adaptive filter estimation algorithm is based on the basic Kalman filter algorithm, and performs recursion and update of the state and error covariance of the nonlinear system through nonlinear colorless transformation.

非线性系统的无色变换:Colorless transformations for nonlinear systems:

无色变换是自适应UKF算法实现的基础,也是区别于其它非线性滤波的本质特点。无色变换(UT,Unscented Transform)的基础原理是用采样点的分布来近似随机变量的概率分布,由被估计量的“先验”均值和方差,产生一批离散的与被估计量具有相同概率统计特性的采样点,称为Sigma点,在根据经过非线性方程传递后的Sigma点,生成“后验”的均值和方差。Colorless transformation is the basis of the adaptive UKF algorithm, and it is also the essential feature that distinguishes it from other nonlinear filters. The basic principle of colorless transformation (UT, Unscented Transform) is to use the distribution of sampling points to approximate the probability distribution of random variables. From the "prior" mean and variance of the estimated quantity, a batch of discrete values with the same The sampling point of the probability and statistical characteristics is called the Sigma point. According to the Sigma point passed through the nonlinear equation, the "posterior" mean and variance are generated.

如果已知非线性函数y=j(x),其中为一随机向量,它的均值和方差分别为和Px,求y的均值和方差Py,其无色变换的步骤如下:If the nonlinear function y=j(x) is known, where is a random vector whose mean and variance are and P x , find the mean of y and variance P y , the steps of its colorless transformation are as follows:

Sigma点的生成Generation of Sigma points

根据随机向量x的均值和方差Px,可以构造一组关于对称求分布于其附近的离散Sigma点,可以记为χi,i=1,…,2l分别对应各个Sigma点。可以用这一组Sigma点近似表示随机向量x的近似分布,具体如下:According to the mean of the random vector x and variance P x , you can construct a set of The discrete Sigma points distributed in its vicinity can be obtained symmetrically, which can be recorded as χ i , where i=1,..., 2l correspond to each Sigma point respectively. This set of Sigma points can be used to approximate the approximate distribution of the random vector x, as follows:

χχ 00 == xx ‾‾

χχ ii == xx ‾‾ -- (( (( ll ++ λλ )) PP xx )) ii ii == 11 ,, .. .. .. ,, ll

χχ ii == xx ‾‾ ++ (( (( ll ++ λλ )) PP xx )) ii -- 11 ii == ll ++ 11 ,, .. .. .. ,, 22 ll

式中,χi为经过无色变换后的Sigma点;l为状态和噪声组成的扩展状态的维数,λ为控制Sigma点到均值距离的尺度常数。用这一组Sigma点近似表示随机向量的分布,Sigma点具有与x相同的均值和方差。In the formula, χi is the Sigma point after the colorless transformation; l is the dimension of the extended state composed of state and noise, and λ is the scale constant controlling the distance from the Sigma point to the mean. The distribution of the random vector is approximated by this set of sigma points, which have the same mean and variance as x.

计算非线性函数Compute Nonlinear Functions

γi=j(χi)i=0,1,...,2lγ i = j(χ i ) i = 0, 1, . . . , 2l

用γi近似非线性函数的分布。Approximate the distribution of a nonlinear function with γi .

计算非线性函数y的均值和方差:Compute the mean and variance of a nonlinear function y:

ythe y ‾‾ == ΣΣ ii == 00 22 ll dd ii mm γγ ii

PP ythe y == ΣΣ ii == 00 22 ll dd ii cc (( γγ ii -- ythe y ‾‾ )) (( γγ ii -- ythe y ‾‾ )) TT

式中为权系数,且In the formula is the weight coefficient, and

dd 00 mm == λλ λλ ++ ll

dd 00 cc == λλ λλ ++ ll ++ (( 11 -- αα 22 ++ ββ ))

dd ii mm == dd ii cc == 11 22 (( ll ++ λλ )) ii == 11 ,, .. .. .. ,, 22 ll

其中,α控制Sigma点分布的范围,取值区域为0≤α≤1,一般取1;β是非负常数,其作用是使变换后的方差含有部分的高阶信息,对于高斯分布有β=2;滤波器参数λ=α2(l+e)-l,其中e为常数,它与估算的高阶项有关,它等于或高于4阶的高阶项为其函数,通常状态估算取0,参数估算取3-l。Among them, α controls the range of Sigma point distribution, and the value range is 0≤α≤1, generally 1; β is a non-negative constant, and its function is to make the transformed variance contain some high-order information. For Gaussian distribution, β= 2; filter parameter λ=α 2 (l+e)-l, where e is a constant, which is related to the estimated high-order item, which is equal to or higher than the fourth-order high-order item as its function, and the state estimation usually takes 0, parameter estimation takes 3-l.

参见附图2,为该发明的流程图;在本实施中该方案的实现流程:Referring to accompanying drawing 2, be the flowchart of this invention; In this implementation, the realization process of this scheme:

自适应UKF主滤波器-标准UKF对扩展的状态方程滤波估计的实现流程:滤波初始化:Adaptive UKF main filter - the implementation process of standard UKF for the extended state equation filter estimation: filter initialization:

读取水下机器人系统的状态和推进器故障参数的初始值,组成扩展的初始状态的矩阵,其初始条件为:Read the state of the underwater robot system and the initial value of the thruster failure parameters to form a matrix of the extended initial state, and its initial condition is:

xx ‾‾ 00 == EE. [[ xx 00 ]]

PP 00 == EE. [[ (( xx 00 -- xx ‾‾ 00 )) (( xx 00 -- xx ‾‾ 00 )) TT ]]

扩展的状态矩阵s0表示大地坐标系下的六维水下机器人的初始位姿信息,表示六维水下机器人载体坐标系下的速度和角速度信息,b0表示六个自由度推进器的故障信息。同时还要设置初始系统过程噪声w0和测量噪声v0,Dw和Dv分别为过程噪声和测量噪声协方差矩阵。Extended state matrix s 0 represents the initial pose information of the six-dimensional underwater robot in the earth coordinate system, Indicates the velocity and angular velocity information in the six-dimensional underwater vehicle carrier coordinate system, and b 0 indicates the fault information of the six-degree-of-freedom thruster. At the same time, the initial system process noise w 0 and measurement noise v 0 should be set, and D w and D v are the process noise and measurement noise covariance matrices, respectively.

通过滤波初始化得到水下机器人扩展状态和初始均值和方差P0Obtain the extended state and initial mean value of the underwater robot by filtering initialization and variance P 0 .

随着滤波算法的进行,这里要得到上一时刻k-1可估计滤波的均值和方差Pk-1;同时要得到上一时刻k-1的系统噪声wk-1和测量噪声vk-1,系统噪声wk-1和测量噪声vk-1是通过辅助滤波器估计得到的系统噪声方差阵D的对角线元素有了水下机器人扩展状态的均值和方差Pk-1,通过无色变换构造一组关于对称且位于其附近的离散Sigma点,如式所示:As the filtering algorithm proceeds, here we need to get the mean value of k-1 estimable filtering at the last moment and variance P k-1 ; at the same time, to obtain the system noise w k-1 and measurement noise v k-1 of k-1 at the last moment, the system noise w k-1 and measurement noise v k-1 are estimated by the auxiliary filter The diagonal elements of the resulting system noise variance matrix D With the mean value of the AUV extended state and variance P k-1 , construct a set of about Discrete Sigma points that are symmetrical and located near it, as shown in the formula:

χχ kk -- 11 == [[ xx ‾‾ kk -- 11 ,, xx ‾‾ kk -- 11 -- (( ll ++ λλ )) PP kk -- 11 ,, xx ‾‾ kk -- 11 ++ (( ll ++ λλ )) PP kk -- 11 ]]

其中,l为系统状态和推进器故障参数组成的扩展状态的维数,λ为控制Sigma点到均值距离的尺度常数。where l is the dimension of the extended state composed of the system state and thruster fault parameters, and λ is the scaling constant controlling the distance from the Sigma point to the mean.

离散Sigma点经系统方程计算更新Sigma点,由于要对水下机器人的状态和推进器的故障参数进行联合估计,所以水下机器人的系统方程中必须包括推进器的故障模型。即扩展参考模型的系统方程公式所示:The discrete Sigma points are updated by the system equation calculation. Since the state of the underwater robot and the failure parameters of the thruster are to be jointly estimated, the system equation of the underwater robot must include the failure model of the thruster. That is, the system equation formula of the extended reference model is shown as:

Mm sthe s ·&Center Dot; ·&Center Dot; ++ CC (( sthe s ·&Center Dot; )) sthe s ·&Center Dot; ++ DD. (( sthe s ·&Center Dot; )) sthe s ·&Center Dot; ++ GG (( sthe s )) == Ff (( uu ))

滤波进行中形成的扩展的系统方程公式:The extended system of equations formula formed during the filtering process:

xx kk ++ 11 aa == ff ~~ (( xx kk aa ,, uu kk )) ++ ww kk aa

经过上述系统方程计算更新后的Sigma点公式为:The updated Sigma point formula calculated by the above system equation is:

χχ kk || kk -- 11 ** == ff (( χχ kk -- 11 ,, uu kk ))

然后计算更新后Sigma点的均值和方差公式为:Then calculate the mean and variance formula of the updated Sigma point as:

xx ‾‾ kk || kk -- 11 == ΣΣ ii == 00 22 ll dd ii mm χχ ii ,, kk || kk -- 11 **

PP kk || kk -- 11 == ΣΣ ii == 00 22 ll dd ii cc (( χχ ii ,, kk || kk -- 11 ** -- xx ‾‾ kk || kk -- 11 )) (( χχ ii ,, kk || kk -- 11 ** -- xx ‾‾ kk || kk -- 11 )) TT ++ QQ ww

计算系统方程计算更新的扩展状态均值和方差的Sigma点,得到一步估计的状态均值和方差:Calculate the Sigma points of the updated extended state mean and variance to obtain the one-step estimated state mean and variance by computing the system equations:

χχ kk || kk -- 11 == [[ xx ‾‾ kk || kk -- 11 ,, xx ‾‾ kk || kk -- 11 -- (( ll ++ λλ )) PP kk || kk -- 11 ,, xx ‾‾ kk || kk -- 11 ++ (( ll ++ λλ )) PP kk || kk -- 11 ]]

测量方程计算更新Sigma点:The measurement equation calculates the updated Sigma point:

对一步估计的状态均值和方差再进行无色变换和经测量方程计算更新后,得到水下机器人可观测位姿信息:After the colorless transformation is performed on the state mean and variance estimated in one step, and the measurement equation is calculated and updated, the observable pose information of the underwater robot is obtained:

由于水下机器人扩展状态中仅前六维的位姿信息可观测,所以对上步生成Sigma点的前六维进行计算更新。测量方程如下公式所示:Since only the pose information of the first six dimensions is observable in the extended state of the underwater robot, the first six dimensions of the Sigma points generated in the previous step are calculated and updated. The measurement equation is shown in the following formula:

yk=xk(1:6)+vk y k =x k (1:6)+v k

其中xk(1:6)表示扩展状态的前六维的位姿信息,vk为不相关的白噪声;经过测量方程计算更新后的Sigma点公式为:Among them, x k (1:6) represents the pose information of the first six dimensions of the extended state, and v k is irrelevant white noise; the updated Sigma point formula after calculation of the measurement equation is:

γk|k-1=h(χk|k-1)γ k|k-1 =h(χ k|k-1 )

计算得到测量方程计算更新的可观测状态均值和方差的Sigma点公式为:Calculate the Sigma point formula of the measurement equation to calculate the updated observable state mean and variance:

ythe y ‾‾ kk || kk -- 11 == ΣΣ ii == 00 22 ll dd ii mm γγ ii ,, kk || kk -- 11

PP ythe y ‾‾ kk ythe y ‾‾ kk == ΣΣ ii == 00 22 ll dd ii cc (( γγ ii ,, kk || kk -- 11 -- ythe y ‾‾ kk || kk -- 11 )) (( γγ ii ,, kk || kk -- 11 -- ythe y ‾‾ kk || kk -- 11 )) TT ++ QQ vv

PP xx ‾‾ kk ythe y ‾‾ kk == ΣΣ ii == 00 22 ll dd ii cc (( χχ ii ,, kk || kk -- 11 -- xx ‾‾ kk || kk -- 11 )) (( γγ ii ,, kk || kk -- 11 -- ythe y ‾‾ kk || kk -- 11 )) TT

计算UKF滤波器的增益矩阵:Compute the gain matrix of the UKF filter:

KK kk == PP xx ‾‾ kk ythe y ‾‾ kk PP ythe y ‾‾ kk ythe y ‾‾ kk -- 11

估计系统扩展状态的均值和方差:Estimate the mean and variance of the extended state of the system:

读取经过数据处理后的传感器观测位姿信息yk,以此为基础估计水下机器人扩展状态的均值和方差,如式所示:Read the sensor observation pose information y k after data processing, and estimate the mean value and variance of the extended state of the underwater robot based on this, as shown in the formula:

PP kk == PP kk || kk -- 11 -- KK kk PP ythe y ‾‾ kk ythe y ‾‾ kk KK kk TT

xx ‾‾ kk == xx ‾‾ kk || kk -- 11 ++ KK kk (( ythe y kk -- ythe y ‾‾ kk || kk -- 11 ))

在下一个时刻,即k+1时刻,如果有新的测量值,接续辅助滤波器程序步骤。At the next moment, that is, moment k+1, if there is a new measurement value, continue with the auxiliary filter program steps.

自适应UKF算法中辅助滤波器状态方程的构建:The construction of the auxiliary filter state equation in the adaptive UKF algorithm:

由水下机器人系统噪声方差矩阵D对角线元素可将辅助滤波器的状态方程表示为:Diagonal elements of the noise variance matrix D of the underwater vehicle system The state equation of the auxiliary filter can be expressed as:

qq ‾‾ kk == ff qq (( qq ‾‾ kk -- 11 )) ++ ww qq kk

其中为辅助滤波器中的系统噪声,是零均值高斯白噪声为零均值高斯白噪声;in is the system noise in the auxiliary filter, which is zero-mean Gaussian white noise is zero-mean Gaussian white noise;

由于的变化规律未知,可将其视为噪声驱动的不相关的随机漂移向量,所以可得辅助滤波器的状态方程:because The change law of is unknown, and it can be regarded as an uncorrelated random drift vector driven by noise, so the state equation of the auxiliary filter can be obtained:

qq ‾‾ kk == qq ‾‾ kk -- 11 ++ ww qq kk ..

自适应UKF算法中辅助滤波器测量方程的构建:Construction of auxiliary filter measurement equation in adaptive UKF algorithm:

辅助滤波器是以主滤波器的新息ξk方差矩阵的对角线元素作为系统的观测信号,依据主滤波器扩展状态的一步估计的方差Pk|k-1,主滤波器扩展状态的方差Pk,主滤波器UKF的增益矩阵Kk组成辅助滤波器的观测方程为:The auxiliary filter is the diagonal element of the innovation ξ k variance matrix of the main filter As the observation signal of the system, according to the variance P k|k-1 of the one-step estimation of the extended state of the main filter, the variance P k of the extended state of the main filter, and the gain matrix K k of the main filter UKF form the observation equation of the auxiliary filter for:

SS ‾‾ qq kk == gg (( qq ‾‾ kk )) == vdiagvdiag [[ (( KK kk TT KK kk )) -- 11 KK kk TT (( PP kk || kk -- 11 -- PP kk )) KK kk (( KK kk TT KK kk )) -- 11 ]]

其中vdiag为中括号内矩阵的主对角线元素组成的一个向量。Where vdiag is a vector composed of the main diagonal elements of the matrix in square brackets.

辅助滤波器KF对系统的过程噪声进行滤波估计的实现过程:The realization process of the auxiliary filter KF filtering and estimating the process noise of the system:

上一时刻估计得到辅助滤波器的系统噪声方差阵的对角线元素和其方差用辅助滤波器的状态方程对计算更新后得到对角线元素和其方差的一步估计值;用辅助滤波器的测量方程依主滤波器的一步估计的方差Pk|k-1、扩展状态方差Pk和增益矩阵Kk经计算更新后得到估计的观测值所得到的一步估计值和观测值同主滤波器的测量值经计算估计得到系统过程噪声方差阵D的对角线元素的估算值和其方差当有新观测位姿信息yk时,接续下一控制周期主滤波器程序步骤。The diagonal elements of the system noise variance matrix of the auxiliary filter estimated at the previous moment and its variance Using the state equation of the auxiliary filter for and Calculate the diagonal elements after updating and its variance One-step estimated value of ; use the measurement equation of the auxiliary filter to calculate and update the estimated observed value according to the one-step estimated variance P k|k-1 of the main filter, the extended state variance P k and the gain matrix K k The resulting one-step estimates and observations The measured value of the same main filter is calculated and estimated to obtain the estimated value of the diagonal element of the system process noise variance matrix D and its variance When there is new observed pose information y k , the main filter program step of the next control cycle is continued.

参见附图2,See attached drawing 2,

自适应UKF辅助滤波器KF的实现流程(以估计系统的过程噪声为例):The implementation process of the adaptive UKF auxiliary filter KF (taking the process noise of the estimated system as an example):

滤波初始化:Filter initialization:

读取水下机器人系统过程噪声方差矩阵对角线元素的初始值极其方差,初始条件为:Read the initial values and variances of the diagonal elements of the process noise variance matrix of the underwater robot system, and the initial conditions are:

qq ‾‾ 00 == EE. [[ qq 00 ]]

PP qq 00 == EE. [[ (( qq 00 -- qq ‾‾ 00 )) (( qq 00 -- qq ‾‾ 00 )) TT ]]

通过滤波初始化得到水下机器人系统过程噪声方差矩阵对角线元素的初始值及其方差随着滤波算法的进行,这里要得到上一时刻k-1可估计滤波的和方差 Obtain the initial value of the diagonal elements of the process noise variance matrix of the underwater robot system by filtering initialization and its variance As the filtering algorithm proceeds, it is necessary to obtain the k-1 estimable filtering at the last moment and variance

由水下机器人系统过程噪声方差矩阵对角线元素可将辅助滤波器的状态方程表示为:The diagonal elements of the variance matrix of the AUV system process noise The state equation of the auxiliary filter can be expressed as:

qq ‾‾ kk == ff qq (( qq ‾‾ kk -- 11 )) ++ ww qq kk

其中为辅助滤波器中的系统噪声,表示零均值高斯白噪声;in is the system noise in the auxiliary filter, representing zero-mean Gaussian white noise;

由于的变化规律未知,可将其视为噪声驱动的不相关的随机漂移向量,所以上时刻估计的水下机器人系统的噪声方差矩阵D对角线元素及其方差经过辅助滤波器状态方程计算更新的公式为:because The change law of is unknown, and it can be regarded as an uncorrelated random drift vector driven by noise, so the diagonal element of the noise variance matrix D of the underwater robot system estimated at the last moment and its variance The updated formula calculated by the auxiliary filter state equation is:

qq ‾‾ kk || kk -- 11 == qq ‾‾ kk -- 11 ++ ww qq kk

PP qq kk || kk -- 11 == PP qq kk -- 11 ++ QQ qq ww ;;

其中,是辅助滤波器中的噪声方差矩阵,通过估计主滤波器的Dw而设置。in, is the noise variance matrix in the auxiliary filter, via It is set by estimating the Dw of the main filter.

辅助滤波器的测量方程为:auxiliary filter The measurement equation is:

SS ‾‾ qq kk == gg (( qq ‾‾ kk )) == vdiagvdiag [[ (( KK kk TT KK kk )) -- 11 KK kk TT (( PP kk || kk -- 11 -- PP kk )) KK kk (( KK kk TT KK kk )) -- 11 ]]

其中vdiag表示取中括号内矩阵的主对角线元素组成的一个向量,设可以得到:Where vdiag represents a vector composed of the main diagonal elements of the matrix in square brackets, set can get:

SS ‾‾ qq kk == vdiagvdiag [[ KPKP kk (( ΣΣ ii == 00 22 nno dd ii cc (( χχ ii ,, kk || kk -- 11 ** -- xx ‾‾ kk || kk -- 11 )) (( χχ ii ,, kk || kk -- 11 ** -- xx ‾‾ kk || kk -- 11 )) TT ++ QQ ww -- PP kk )) ]]

== vdiagvdiag [[ KPKP kk (( ΣΣ ii == 00 22 nno dd ii cc (( χχ ii ,, kk || kk -- 11 ** -- xx ‾‾ kk || kk -- 11 )) (( χχ ii ,, kk || kk -- 11 ** -- xx ‾‾ kk || kk -- 11 )) TT -- PP kk )) ]] ++ vdiagvdiag (( KPKP kk QQ ww KPKP kk TT ))

== Bpbp kk ++ vdiagvdiag (( KPKP kk QQ ww KPKP kk TT ))

== Bpbp kk ++ HPHP kk ·· qq kk

其中,Bpk为常值向量;HPk为常值矩阵。若KPk∈Rmq×nq,且,Among them, Bp k is a constant value vector; HP k is a constant value matrix. If KP kR mq×nq , and,

由于Qw为对角矩阵,则可得HPk∈Rmq×nq,且有Since Q w is a diagonal matrix, HP kR mq×nq can be obtained, and

计算辅助滤波器的增益矩阵:Compute the gain matrix of the auxiliary filter:

KK qq kk == PP qq kk || kk -- 11 ·· HPHP kk TT (( HPHP kk ·· PP qq kk || kk -- 11 ·· HPHP kk TT ++ QQ qq vv )) -- 11

根据主滤波器的实时新息信息ξk,计算辅助滤波器的测量值:According to the real-time innovation information ξ k of the main filter, calculate the measurement value of the auxiliary filter:

SqSq kk == gg (( qq kk )) == vdiagvdiag (( 11 NN ΣΣ ii == kk -- NN ++ 11 kk ξξ kk ξξ kk TT ))

其中,yk为主滤波器k时刻的观测位姿信息,为可观测状态均值。in, y k is the observed pose information at time k of the main filter, is the mean value of the observable states.

估计k时刻水下机器人系统的过程噪声方差矩阵对角线元素和方差:Estimate the process noise variance matrix diagonal elements and variances of the AUV system at time k:

读取辅助滤波器的测量值Sqk,以此为基础估计水下机器人系统的过程噪声方差矩阵对角线元素和方差如式所示:Read the measured value Sq k of the auxiliary filter, based on which the diagonal elements of the process noise variance matrix of the underwater vehicle system are estimated and variance As shown in the formula:

PP qq kk == (( II -- KK qq kk ·· HPHP kk )) PP qq kk || kk -- 11

qq ‾‾ kk == qq ‾‾ kk || kk -- 11 ++ KK qq kk (( SqSq kk -- SS ‾‾ qq kk || kk -- 11 ))

在下一个时刻,如果有新息信息ξk+1,重复上述辅助滤波器的步骤;当读取新观测值位姿信息时,接续下一控制周期程序步骤。At the next moment, if there is new information ξ k+1 , repeat the above steps of the auxiliary filter; when reading the pose information of the new observation value, continue the program steps of the next control cycle.

Claims (6)

1.一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于包括以下步骤:1. a method for joint estimation of underwater robot state and parameters based on self-adaptive UKF, is characterized in that comprising the following steps: 在水下机器人动力学模型的基础上,对推进器故障进行建模,得到离线的扩展参考模型;根据位姿传感器探测的在线位姿信息yk,采用自适应UKF的主滤波器为标准UKF滤波估计算法,结合水下机器人离线的扩展参考模型为扩展的系统状态方程,对系统状态和推进器故障组成的扩展状态传递和更新,实时的估计出系统的状态和参数信息,得到系统估算的结果值均值和方差Pk;这里系统的状态信息包括经过滤波后的位姿信息sk和实时估计出来的速度信息参数信息为系统推进器的故障参数bk,同时,依据主滤波器计算估计的新息信息ξk计算出辅助滤波器的测量值Sqk;建立UKF辅助滤波器的状态方程和测量方程,依据测量值Sqk作为系统的观测信号,采用自适应UKF的辅助滤波器KF对水下机器人系统的噪声信息进行实时估计,得到系统噪声协方差阵D的对角线元素和方差的估算值;这里的噪声信息包括过程噪声wk和测量噪声vk,它们的协方差矩阵分别为Dw和DvOn the basis of the dynamic model of the underwater robot, the propeller fault is modeled to obtain an offline extended reference model; according to the online pose information y k detected by the pose sensor, the main filter of the adaptive UKF is used as the standard UKF The filter estimation algorithm, combined with the offline extended reference model of the underwater robot, is the extended system state equation, which transmits and updates the extended state composed of the system state and thruster faults, estimates the state and parameter information of the system in real time, and obtains the estimated value of the system. result mean and variance P k ; here the state information of the system includes filtered pose information sk and real-time estimated speed information The parameter information is the fault parameter b k of the propeller of the system. At the same time, the measurement value Sq k of the auxiliary filter is calculated according to the new information ξ k calculated and estimated by the main filter; the state equation and measurement equation of the UKF auxiliary filter are established, according to The measured value Sq k is used as the observation signal of the system, and the auxiliary filter KF of the adaptive UKF is used to estimate the noise information of the underwater vehicle system in real time, and the diagonal elements of the system noise covariance matrix D are obtained and variance The estimated value of ; the noise information here includes process noise w k and measurement noise v k , and their covariance matrices are D w and D v respectively; 主滤波器扩展系统方程形成过程:Formation process of main filter extended system equation: 扩展非线性系统时,含有未知/时变推进器的故障参数bk的系统状态空间方程为:When expanding the nonlinear system, the state space equation of the system with unknown/time-varying thruster fault parameter bk is: xk+1=f(xk,bk,uk)+wk x k+1 =f(x k ,b k ,u k )+w k bk+1=fb(xk,bk,uk)+wkb b k+1 =f b (x k ,b k ,u k )+w kb 式中,bk是k时刻的未知/时变推进器故障参数,wkb为故障参数模型的系统推进器故障噪声矢量,是零均值的高斯噪声;where b k is the unknown/time-varying thruster fault parameter at time k, and w kb is the system thruster fault noise vector of the fault parameter model, which is Gaussian noise with zero mean value; 当故障参数bk变化规律未知,则将bk视为不相关的随机漂移矢量,其递归表达式为:When the change law of the fault parameter b k is unknown, b k is regarded as an irrelevant random drift vector, and its recursive expression is: bk=bk-1+wbk b k =b k-1 +w b k 基于自适应UKF的联合估计,将系统推进器的故障参数追加到系统的真实状态后,组成扩展的状态矩阵,即把系统方程组成为扩展系统状态方程为:Based on the joint estimation of adaptive UKF, the fault parameters of the propellers of the system are added to the real state of the system to form an extended state matrix, namely Composing the system equations into an extended system state equation is: xx kk ++ 11 aa == ff ~~ (( xx kk aa ,, uu kk )) ++ ww kk aa 式中,为扩展的系统过程噪声矢量,其中为系统过程噪声矢量,为估计推进器故障噪声矢量。In the formula, is the extended system process noise vector, where is the system process noise vector, To estimate the thruster fault noise vector. 2.根据权利要求1所述的一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于:扩展参考模型中故障参数bk表示为k时刻第i个推进器的效率损失因子,取0~1之间的数值表示推进器故障发生失效的程度。2. a kind of underwater vehicle state and parameter joint estimation method based on self-adaptive UKF according to claim 1, is characterized in that: in the extended reference model, the fault parameter b k Expressed as the efficiency loss factor of the i-th propeller at time k, the value between 0 and 1 represents the degree of propeller failure. 3.根据权利要求1所述的一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于:自适应UKF算法中辅助滤波器状态方程的构建:3. a kind of underwater robot state and parameter joint estimation method based on adaptive UKF according to claim 1, is characterized in that: the construction of auxiliary filter state equation in adaptive UKF algorithm: 由水下机器人系统噪声方差矩阵对角线元素可将辅助滤波器的状态方程表示为:The diagonal elements of the noise variance matrix of the underwater vehicle system The state equation of the auxiliary filter can be expressed as: qq ‾‾ kk == ff qq (( qq ‾‾ kk -- 11 )) ++ ww qq kk 其中为辅助滤波器中的系统噪声矢量,是零均值高斯白噪声;in is the system noise vector in the auxiliary filter, which is zero-mean Gaussian white noise; 由于的变化规律未知,将其视为噪声驱动的不相关的随机漂移向量,所以可得辅助滤波器的状态方程:because The change law of is unknown, and it is regarded as an uncorrelated random drift vector driven by noise, so the state equation of the auxiliary filter can be obtained: qq ‾‾ kk == qq ‾‾ kk -- 11 ++ ww qq kk .. 4.根据权利要求1所述的一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于:自适应UKF算法中辅助滤波器测量方程的构建:4. a kind of underwater robot state and parameter joint estimation method based on adaptive UKF according to claim 1 is characterized in that: the construction of auxiliary filter measurement equation in adaptive UKF algorithm: 以主滤波器的新息ξk方差矩阵的测量值Sqk作为系统的观测信号,依据主滤波器扩展状态的一步估计的方差Pk|k-1,主滤波器扩展状态的方差Pk,主滤波器UKF的增益矩阵Kk组成辅助滤波器的测量方程为:Taking the measured value Sq k of the variance matrix of the innovation ξ k of the main filter as the observed signal of the system, according to the variance P k|k-1 of the one-step estimation of the extended state of the main filter, the variance P k of the extended state of the main filter, The measurement equation of the auxiliary filter composed of the gain matrix K k of the main filter UKF is: SS ‾‾ qq kk == gg (( qq ‾‾ kk )) == vdiagvdiag [[ (( KK kk TT KK kk )) -- 11 KK kk TT (( PP kk || kk -- 11 -- PP kk )) KK kk (( KK kk TT KK kk )) -- 11 ]] 其中vdiag为取中括号内矩阵的主对角线元素组成的一个向量。Where vdiag is a vector composed of the main diagonal elements of the matrix in square brackets. 5.根据权利要求1所述的一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于:主滤波器对扩展的状态方程滤波估计的实现过程:5. a kind of underwater robot state and parameter joint estimation method based on self-adaptive UKF according to claim 1, is characterized in that: main filter is to the realization process of the extended state equation filter estimation: 对上一时刻随机向量的被估计量均值和方差Pk-1经非线性无色变换后,得到的一组离散Sigma点χk-1,经系统状态方程计算更新Sigma点,然后计算出更新Sigma点的扩展状态均值和方差Pk|k-1,对扩展状态均值和方差Pk|k-1计算得到一步估计的状态均值和方差;对一步估计的状态均值和方差再经无色变换和用测量方程计算更新,得到水下机器人可观测状态的均值方差及协方差的估计值;读取传感器采集可观测位姿信息yk同扩展状态均值和方差Pk|k-1和可观测状态的估计值及增益矩阵Kk经计算估计,得到系统均值方差Pk的估算值,从中得到新息ξk;依主滤波器的新息ξk经计算得到测量值Sqk作为辅助滤波器的观测信号,然后接续辅助滤波器程序步骤。The mean value of the estimator of the random vector at the previous moment A set of discrete Sigma points χ k-1 obtained after the sum variance P k-1 is subjected to nonlinear colorless transformation, the updated Sigma points are calculated by the system state equation, and then the extended state mean value of the updated Sigma points is calculated and variance P k|k-1 , for the extended state mean Calculate the state mean and variance of one-step estimation with the variance P k|k-1 ; the state mean and variance of the one-step estimation are then updated by colorless transformation and calculation with the measurement equation to obtain the mean value of the observable state of the underwater robot variance and covariance The estimated value of ; read the sensor to collect the observable pose information y k and the mean value of the extended state The sum variance P k|k-1 and the estimated value of the observable state and the gain matrix K k are calculated and estimated to obtain the system mean The estimated value of the variance P k is obtained from it to obtain the innovation ξ k ; the measured value Sq k is calculated according to the innovation ξ k of the main filter as the observation signal of the auxiliary filter, and then the auxiliary filter program steps are continued. 6.根据权利要求1或5所述的一种基于自适应UKF的水下机器人状态和参数联合估计方法,其特征在于:辅助滤波器KF对系统过程噪声进行滤波估计的实现过程:6. according to claim 1 or 5, a kind of underwater robot state and parameter joint estimation method based on self-adaptive UKF, it is characterized in that: auxiliary filter KF carries out the realization process of filter estimation to system process noise: 上一时刻估计得到辅助滤波器的系统噪声方差矩阵的对角线元素和方差用辅助滤波器的状态方程对计算更新后得到对角线元素和方差的一步估计值;用辅助滤波器的测量方程依主滤波器的一步估计的方差Pk|k-1、扩展状态方差Pk和增益矩阵Kk经计算更新后得到估计的观测值所得到的一步估计值和观测值同主滤波器的测量值Sqk经计算估计得到系统过程噪声方差阵D的对角线元素的估算值和方差当有新观测位姿信息yk时,接续下一控制周期主滤波器程序步骤。The diagonal elements of the system noise variance matrix of the auxiliary filter estimated at the previous moment and variance Using the state equation of the auxiliary filter for and Calculate the diagonal elements after updating and variance One-step estimated value of ; use the measurement equation of the auxiliary filter to calculate and update the estimated observed value according to the one-step estimated variance P k|k-1 of the main filter, the extended state variance P k and the gain matrix K k The resulting one-step estimates and observations The measured value Sq k of the same main filter is calculated and estimated to obtain the estimated value of the diagonal elements of the system process noise variance matrix D and variance When there is new observed pose information y k , the main filter program step of the next control cycle is continued.
CN201110190512.5A 2011-07-08 2011-07-08 Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF) Active CN102862666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110190512.5A CN102862666B (en) 2011-07-08 2011-07-08 Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110190512.5A CN102862666B (en) 2011-07-08 2011-07-08 Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF)

Publications (2)

Publication Number Publication Date
CN102862666A CN102862666A (en) 2013-01-09
CN102862666B true CN102862666B (en) 2014-12-10

Family

ID=47441869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110190512.5A Active CN102862666B (en) 2011-07-08 2011-07-08 Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF)

Country Status (1)

Country Link
CN (1) CN102862666B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336525B (en) * 2013-06-18 2016-09-14 哈尔滨工程大学 Stochastic system high weight convenient UKF filtering method
CN103488078B (en) * 2013-07-18 2014-09-24 清华大学 Excitation signal optimization method for improving closed-loop identification accuracy of power system
CN107037821B (en) * 2017-05-12 2019-10-29 中国人民解放军91550部队 The estimation of underwater hiding-machine athletic posture and control method under repetitive shocks
CN108170151B (en) * 2017-07-24 2019-12-31 西北工业大学 An adaptive motion control device and method for an underwater robot
CN109341683A (en) * 2018-06-29 2019-02-15 中国人民解放军海军工程大学 Heading calculation and performance analysis method based on UWB dual tags
CN110011879B (en) * 2019-04-29 2021-01-05 燕山大学 Sensor network safety real-time online monitoring system based on parallel filtering
CN111191186B (en) * 2020-01-07 2021-09-28 江南大学 Multi-cell filtering method for positioning position of mobile robot in production workshop
CN111880411B (en) * 2020-08-12 2022-06-03 深圳职业技术学院 A Dynamically Extended Regression and Interactive Estimation Method for Linear Systems
CN112025706B (en) * 2020-08-26 2022-01-04 北京市商汤科技开发有限公司 Method and device for determining state of robot, robot and storage medium
CN112445244B (en) * 2020-11-09 2022-03-04 中国科学院沈阳自动化研究所 Target searching method for multiple autonomous underwater robots
CN117009739A (en) * 2022-04-26 2023-11-07 华晨宝马汽车有限公司 Recursive filtering method, electronic device and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201362352Y (en) * 2008-05-22 2009-12-16 上海海事大学 Fault-tolerant control device of unmanned underwater robot sensor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5355818A (en) * 1992-08-27 1994-10-18 Strait Imaging Research Portable inspection equipment for ocean going vessels
GB2359049A (en) * 2000-02-10 2001-08-15 H2Eye Remote operated vehicle

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201362352Y (en) * 2008-05-22 2009-12-16 上海海事大学 Fault-tolerant control device of unmanned underwater robot sensor

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
主从式UUV群的随从UUV导航;翼大雄等;《仪器仪表学报》;20090630;第30卷(第6S期);期刊第631-634页 *
基于MIT规则的自适应Unscented卡尔曼滤波及其在旋翼飞行机器人容错控制的应用;齐俊桐等;《机械工程学报》;20090430;第45卷(第4期);期刊第115-123页 *
基于UKF的水下机器人执行器故障检测方法研究;林昌龙等;《机械设计与制作》;20110531(第5期);期刊第168-170页 *
基于自适应UKF算法的小型水下机器人导航系统;孙尧等;《自动化学报》;20110331;第37卷(第3期);期刊第342-353页 *
孙尧等.基于自适应UKF算法的小型水下机器人导航系统.《自动化学报》.2011,第37卷(第3期), *
林昌龙等.基于UKF的水下机器人执行器故障检测方法研究.《机械设计与制作》.2011,(第5期), *
翼大雄等.主从式UUV群的随从UUV导航.《仪器仪表学报》.2009,第30卷(第6S期), *
齐俊桐等.基于MIT规则的自适应Unscented卡尔曼滤波及其在旋翼飞行机器人容错控制的应用.《机械工程学报》.2009,第45卷(第4期), *

Also Published As

Publication number Publication date
CN102862666A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102862666B (en) Underwater robot state and parameter joint estimation method based on self-adaption unscented Kalman filtering (UKF)
CN102795323B (en) Unscented Kalman filter (UKF)-based underwater robot state and parameter joint estimation method
CN112432644B (en) Unmanned ship integrated navigation method based on robust adaptive unscented Kalman filtering
CN107179693B (en) Robust adaptive filtering and state estimation method based on Huber estimation
CN103217175A (en) Self-adaptive volume Kalman filtering method
CN104316025B (en) System for estimating height of sea wave based on attitude information of ship
CN105005679B (en) A kind of ship parameter discrimination method based on particle filter
CN105823503B (en) GM is predicted based on improved grey model(1,1)Model Autonomous Underwater Vehicle sensor fault diagnosis method
CN108226887B (en) Water surface target rescue state estimation method under condition of transient observation loss
CN116734860A (en) A multi-AUV adaptive co-positioning method and system based on factor graph
CN112015086B (en) A finite-time path tracking output feedback control method for an underactuated surface vessel
CN115118197B (en) A fault diagnosis method for AUV propulsion system
CN101872021B (en) GPS (Global Position System) double-frequency real-time satellite borne data processing method
CN105652795B (en) A 3PTT-2R series-parallel CNC machine tool servo system fault prediction device and method based on residual observer
CN104536944A (en) Ship parameter identification method based on improved maximum likelihood method and confidence compressed filter
CN104331087A (en) Robust underwater sensor network target tracking method
CN115218927B (en) Unmanned aerial vehicle IMU sensor fault detection method based on secondary Kalman filtering
CN114296350B (en) A fault-tolerant control method for unmanned ships based on model reference reinforcement learning
CN105513091A (en) Dual-Bayesian estimation-based motion state estimation method for underwater motion body
JP6610898B2 (en) Horizontal metacenter height estimation apparatus and horizontal metacenter height estimation method
CN114061592A (en) Adaptive Robust AUV Navigation Method Based on Multiple Models
Rigatos et al. Control of AUVs using differential flatness theory and the derivative-free nonlinear Kalman Filter
CN118243106B (en) Filtering method, system and storage medium for multi-AUV collaborative navigation based on square root decomposition dimension expansion volume ECKF algorithm
Agarwal et al. Neural Network Aided Kalman Filter to Maximize Accuracy
CN117804444B (en) Combined localization method of underwater robot based on UKF and rolling time domain estimation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant