Skip to main content
Sensors (Basel, Switzerland) logoLink to Sensors (Basel, Switzerland)
. 2020 Apr 16;20(8):2251. doi: 10.3390/s20082251

A Strong Tracking Mixed-Degree Cubature Kalman Filter Method and Its Application in a Quadruped Robot

Jikai Liu 1, Pengfei Wang 1, Fusheng Zha 1,*, Wei Guo 1, Zhenyu Jiang 2, Lining Sun 1
PMCID: PMC7378771  PMID: 32316127

Abstract

The motion state of a quadruped robot in operation changes constantly. Due to the drift caused by the accumulative error, the function of the inertial measurement unit (IMU) will be limited. Even though multi-sensor fusion technology is adopted, the quadruped robot will lose its ability to respond to state changes after a while because the gain tends to be constant. To solve this problem, this paper proposes a strong tracking mixed-degree cubature Kalman filter (STMCKF) method. According to system characteristics of the quadruped robot, this method makes fusion estimation of forward kinematics and IMU track. The combination mode of traditional strong tracking cubature Kalman filter (TSTCKF) and strong tracking is improved through demonstration. A new method for calculating fading factor matrix is proposed, which reduces sampling times from three to one, saving significantly calculation time. At the same time, the state estimation accuracy is improved from the third-degree accuracy of Taylor series expansion to fifth-degree accuracy. The proposed algorithm can automatically switch the working mode according to real-time supervision of the motion state and greatly improve the state estimation performance of quadruped robot system, exhibiting strong robustness and excellent real-time performance. Finally, a comparative study of STMCKF and the extended Kalman filter (EKF) that is commonly used in quadruped robot system is carried out. Results show that the method of STMCKF has high estimation accuracy and reliable ability to cope with sudden changes, without significantly increasing the calculation time, indicating the correctness of the algorithm and its great application value in quadruped robot system.

Keywords: quadruped robot, state estimation, STMCKF, IMU, kinematics

1. Introduction

A legged robot has broad application prospects owing to its strong ability to pass through complex ground without continuous support. To let a quadruped robot gain strong autonomous motion capability, the state estimation of a quadruped robot is a challenge, that is, the robot needs to accurately estimate its state information (position, velocity, attitude) before performing each action, and only in this way can the right decisions be made for the next motion. The inertial measurement unit (IMU) can calculate the state information through the built-in accelerometer and gyroscope, which has been used in almost all mobile robots due to its advantages of good concealment, high short-term accuracy and less susceptibility to environmental interference. However, a long-term use of IMU will cause accumulated error, leading to a drift of calculation results. Some errors are unavoidable in IMU of various levels, which need to be addressed by additional correction measures. Multi-sensor fusion technology offers a solution to this problem. There are mainly two commonly used methods. One is to add additional sensors, such as GPS, camera, which relies on specific external references. However, the information accuracy is prone to environmental interference and the newly added sensors have high requirements for communication and computing equipment, resulting in increased cost and poor reliability. The other method, which does not need additional sensors, is to redevelop the application potential of the system’s own sensors and acquire state information using a forward kinematics solution. This method does not lead to increased cost or accumulated errors, nor require additional communication and computing equipment support, so the implementation is easy. The internal sensor has a low short-term accuracy although it is not affected by the environment. A reasonable idea is to integrate it with IMU to give play to their advantages while abandoning the disadvantages of the two. The fusion effect is mainly determined by a fusion algorithm. Therefore, research on fusion algorithm carries great significance for the development of quadruped robots.

A quadruped robot is basically a non-linear system. The fusion algorithm commonly used in engineering for non-linear systems is extended Kalman filter (EKF) [1]. As it is based on classical Kalman and obtained by solving a Jacobian matrix from an equation of state and observation equation, the principle is simple, easy to understand and easy to realize. EKF also requires calculation of Jacobian matrix, and it is only applicable to weakly nonlinear systems. Moreover, its accuracy is merely equal to first-degree accuracy of Taylor expansion. However, the excellent real-time performance makes it widely used in various non-linear systems including quadruped robots. The unscented Kalman filter (UKF) [2], particle filter (PF) [3] and cubature kalman filter (CKF) [4] represent other types of common non-linear filters with common characteristics. Their common feature is that they all use sampling points to approximately approach non-linear equations. Generally speaking, a larger number of sampling points means better fitness with the non-linear function, and also means higher estimation accuracy. However, the calculation amount of the algorithm is mainly determined by the number of sampling points. Improving accuracy and increasing real-time performance mean a set of contradictory propositions, so these three algorithms have higher accuracy and calculation amount than EKF. There are no uniform UKF sampling strategies and many parameters need to be adjusted manually, so algorithm performance is mainly determined by prior knowledge. PF utilizes a large number of sampling particles in exchange for high estimation accuracy, but its tremendous calculation amount makes it difficult to meet the requirements of online use. CKF is essentially a UKF with a unified sampling strategy, so it has a calculation amount basically comparable to UKF, and can reach third-degree truncation accuracy of Taylor series expansion. Because of its strict mathematical derivation, according to the third-degree spherical diameter volume rule, 2n volume points with the same weight of 1/2n are sampled on the hypersphere surface with variance; for instance, the number is 18 points for a quadruped robot system with a 9-dimensional state equation. It guarantees that the covariance matrix is always a positive definite matrix while avoiding the divergence problem caused by non-positive definiteness of the covariance matrix, so the numerical stability is higher compared to UKF. Gupta D et al. [5] pointed out that CKF has better filtering accuracy than UKF with three-dimensional systems and above. To further improve the accuracy, higher-degree versions such as fifth-degree CKF [6] and seventh-degree CKF [7] have been proposed successively. Although an arbitrary degree CKF is possible in theory, the number of sampling points is required to increase gradually with the continuous improvement of estimation accuracy. The fifth-degree CKF requires 2n2+1 volume points, and the 9-dimensional system requires 163 volume points. The seventh-degree CKF requires n3+9n2+14n+6 volume points, and the 9-dimensional system requires 1590 volume points. It can be seen that although higher degree CKF allows higher estimation accuracy, the number of volume points increases rapidly with the increase of degree. Moreover, CKF of each degree inherits shortcomings of KF and depends more on the initial value. The symmetry and non-negative definiteness of the covariance matrix can sometimes undermine the estimation effect and easily lead to filter divergence. To ensure the symmetry and non-negative definiteness of the covariance matrix and effectively avoid the problem of filter divergence, a square root volume Kalman filter (SRCKF) [8] directly performs recursive updating in the form of square root of the covariance matrix during the filtering process, which can effectively improve numerical stability of filter. To further reduce calculation complexity and achieve higher calculation efficiency, Cui et al. [9] proposed a state of charge (SOC) estimation algorithm based on SRCKF. SRCKF approximates the average of the state variables by calculating 2n points with the same weight according to the cubic transformation. After these points are propagated by the non-linear function, the mean value and variance can reach the third-degree accuracy of the real value of the non-linear function. SRCKF directly propagates and updates the square root of the covariance matrix in the form of Cholesky decomposition, which guarantees the non-negative property of the covariance matrix and avoids the divergence of the filter. Wang et al. [10] proposed SSRCKF by adopting the simplest phase-diameter sampling rule. Compared with the traditional volumetric sampling method, it demonstrates simpler calculation and higher accuracy. Liu et al. [11] proposed a interacting multiple model fifth-degree spherical simplex-radial cubature Kalman filter (IMM5thSSRCKF) by integrating the interacting multiple model (IMM) filter with the fifth-degree spherical simplex-radial cubature Kalman filter (5thSSRCKF). Wang et al. [12] proposed a mixed-degree spherical simple-x-radial cubature Kalman filter (MSSRCKF), and analyzed its accuracy. Simulations results showed that the algorithm can achieve performance improvement of fifth-degree SSRCKF and has higher accuracy under less computational burden. The MSSRCKF collects 2n+3 volume points based on the third-degree surface integrals and fifth-degree radial integrals, which requires only three more volume points than the standard CKF, but achieves an accuracy approaching to the fifth-degree CKF [13]. In the 9-dimensional system, only 21 volume points are required, which saves 142 points for each volume point sampling compared to the fifth-degree CKF. Although it is also reasonable to combine the fifth-degree spherical integral and the third-degree radial integral, n2+3n+2 volume points are required, which means, 110 volume points are required in a 9-dimensional system. Hence, MSSRCKF is more suitable for a quadruped robot system.

A quadruped robot is also a time-varying system, whose motion state often changes suddenly. The state equation established based on quadruped robot inertial navigation system is often a highly non-linear high-dimensional time-varying system. To obtain state information accurately in the presence of frequently changed motion state, the filter demands strong robustness and fast convergence speed. Strong tracking [14] is a method that is very suitable for combined use with other filters to improve robust performance of the original filter. Since its inception, it has been incorporated with EKF, known as the strong tracking extended Kalman filter (STEKF) [14]. By introducing fading factor into the state prediction covariance matrix, it adjusts the gain matrix online in real time, and forces the filtering residual sequences to remain mutually orthogonal. In this way, STF can still keep track of the system state when the system model is uncertain, which effectively solves the problems of poor robustness and filtering divergence of EKF under uncertainties. Feng et al. [15] combined strong tracking filtering (STF) [14] with the seventh-degree SSRCKF to obtain higher accuracy. Huang et al. [16] combined strong tracking theory with CKF to solve the problem of spacecraft attitude estimation, but the algorithm demands three times of volume point sampling calculations. Hua et al. [17] proposed the strong tracking spherical simplex-radial CKF (STSSRCKF) algorithm to deal with sudden changes of the target state. However, the shortcoming is that the single fading factor was used and three times of volume point sampling calculations were still required. Zhao et al. [18] proposed the adaptive robust square-root CKF (ARSCKF) algorithm by combining strong tracking theory with SRCKF, However, due to the lack of rigorous derivation and proof to truly satisfy the orthogonality of novelty sequences, it was also necessary to carry out the calculation of cubic volume point sampling. Such traditional strong tracking CKF (TSTCKF) requires three volume point samplings for each filtering [19]. Zhang et al. [19] discussed the calculation method and addition of the location of the fading factor in detail and then proposed the normal strong tracking CKF (NSTCKF) and fast strong tracking CKF (FSTCKF). However the shortcoming is that both algorithms only adopted a single fading factor and the calculation of Jacobian matrix was still required. Although FSTCKF requires only two volume point samplings, compensation is unnecessary for observation prediction. It can be seen that these previous methods combined with strong tracking are basically based on SFEKF combination, and EKF does not need sampling point calculation, but UKF and CKF and some improved algorithms require sampling point calculation, which makes sampling times increase from two to three for each filtering process, which significantly increases the calculation amount and thereby hider the application of quadruped robots.

In order to solve the problem in the above analyses, this paper proposes a strong tracking mixed-degree cubature Kalman filter (STMCKF) and conducts research from the perspective of bionics. According to the structural characteristics of the quadruped robot, the forward kinematics dead reckoning of the robot is obtained in real time through the linear displacement sensor, and the results of the forward kinematics dead reckoning with the IMU are filtered through the fusion of SMSRCKF, and then fusion results are used to correct the IMU. By demonstrating correct combination of strong tracking and CKF-type algorithms, the calculation method of fading factor matrix is improved, and sampling times per filter of TSTCKF is reduced from three to one. Since no additional external sensors are added, external environmental interference is avoided. In this way, the quadruped robot system using this algorithm can significantly improve state estimation accuracy, real-time performance and robustness without increasing research and development costs. The improved STMCKF has fifth-degree accuracy, strong robustness and good real-time performance, which only needs one sampling point calculation.

2. Strong Tracking Mixed-Degree Cubature Kalman Filter (STMCKF)

Considering the high complexity of quadruped robot system, it is difficult to establish a system model with sufficient accuracy. In fact, the advantages of a quadruped robot lie in flexibility and strong trafficability because of which quadruped robots often face sudden changes of state. All filters designed with a Kalman filter (KF) as the basic framework, including MSSRCKF, are likely to deteriorate in estimation performance, and even filter divergence may be resulted, which is catastrophic situation for the motion control of quadruped robots. Therefore, it is necessary to adopt strong tracking theory to cope with sudden state changes. The following non-linear time-varying system with additive noise is considered:

xk=fk1(xk1)+μk1 (1)
zk=hk(xk)+ηk (2)

where xkRn is state vector of the system at the moment k, zkRm is observation vector of the system at the moment k; fk1() and hk() are, respectively state equation and observation equation of the time-varying system. μk1Rn is the system process noise, and ηkRm is the system observation noise. They are zero-mean Gaussian white noises that are independent of each other. The variances are Qk1 and Rk respectively.

The filtering process of TSTCKF can be described as follows. First, volume point calculation is performed, and then the state prediction x^k/k1 and prediction covariance matrix Pk/k1 are calculated; the second volume point calculation is performed, and then the observation covariance matrix Pzz,k/k1 and cross covariance matrix Pxz,k/k1 are calculated without introducing fading factor. On this basis, the fading factor λk is calculated, and the new Pk/k1* after introduction of the fading factor is calculated. Next, * means introduction of the fading factor.

Pk/k1*=λkFk1Pk1Fk1T+Qk1 (3)

where λk1. Fk1 is the Jacobian matrix of the state function fk1(xk1) at x^k1; Pk1 is the covariance matrix of the state estimate.

Perform the third volume point calculation, then calculate the observation covariance matrix Pzz,k/k1* and cross covariance matrix Pxz,k/k1* after introduction of the fading factor, and then calculate the filtering gain Kk*, state estimate x^k/k* and estimated covariance matrix Pk/k*, thus completing all filtering algorithms.

By using the above traditional method, each strong tracking filtering process requires three volume point calculations, so the calculation amount is seriously increased, which is not conducive to practical applications in engineering. For non-linear systems with high dimensionality of state variables or observation variables, this problem is more prominent. In addition, this algorithm not only increases calculation amount, but also destroys optimality of the algorithm. The core of strong tracking filtering theory is that observational innovation meets the principle of orthogonality. The principle of orthogonality means that on the premise of completely accurate system model, the innovation sequence output by Kalman filter is a Gaussian white noise sequence with zero mean, so that these innovation sequences are orthogonal everywhere. To ensure that the algorithm’s optimality and orthogonality principles are both met, the combination of strong tracking and MSSRCKF should meet the following conditions:

E[(xkx^k)(xkx^k)T]=min (4)
tr{E[(zk+jz^k+j)(zkz^k)T]}=tr{E[z˜k+jz˜kT]}=0 (5)

where k and j are both positive integers; and z˜k is observational innovation. Formula (4) indicates smallest variance of the filtering; Formula (5) indicates that the residual sequences output by the filters at different times are mutually orthogonal.

Based on the principle of orthogonality, we re-derived the sufficient conditions for the combination of strong tracking and MSSRCKF, and found that the previous combination of STF and non-linear filtering may be incorrect. It is very embarrassing to decide whether to perform compensation for fading factor when calculating the state estimation x^k/k*. No matter the innovation z˜k without introduction of fading factor is used, or innovation z˜k* with introduction of fading factor is used, the sufficient conditions for strong tracking filtering to be established cannot be met (see Appendix A for detailed demonstration).

It can be seen from the above analysis that the introduction of fading factor λk in the prediction covariance matrix Pk/k1 is obviously inappropriate, which is a suboptimal estimation. According to the standard CKF formula, it can be seen that by introducing the fading factor to the observation covariance matrix Pzz,k/k1 and the cross covariance matrix Pxz,k/k1, an equivalent strong tracking effect can be obtained. At the same time, it can ensure that the estimation result is unbiased, that is, optimal estimation. Moreover, the correct combination of ST and MSSRCKF can be realized by derivation (see Appendix B for details).

The state equation is a 9-dimensional quadruped robot system. The state error of a single channel requires the same compensation from all other channels, which is obviously not scientific. It is more reasonable to form a fading factor matrix with fading factor to achieve one-to-one correspondence with each state channel and adopt individual compensation for each channel.

The fading factor matrix is designed as follows:

λki={αick,αick>11,αick1,ck=tr[Nk]i=1nαiMkii (6)

where αi1, λki is the element of the fading factor matrix; the calculation of Nk and Mk is shown in Appendix B. Mkii is the element on the diagonal of the matrix Mk; αi value is obtained by RBF neural network training, which can also be obtained by prior knowledge. Multiple fading factors can adjust different state variables with different fading speeds, which fully reflects the dynamic change of internal state of the entire filter and improves adaptive ability of the filter. When αi=1, the fading factor matrix is equivalent to a single fading factor.

It can be seen that fading factor plays a role of adaptive adjustment according to the changes in the residual, which avoids the majority of calculation process involving volume point, thus greatly reducing the calculation burden.

It can be seen that when the system state does not change suddenly or the system model is accurate, the above formula is established.

E[z˜kz˜kT]=Vk=HkPk/k1HkT+Rk (7)

However, when the state changes suddenly or the model is inaccurate, the innovation will inevitably increase, so that orthogonality is no longer met. That is, formula (4) is not established. At the same time, Vk increases, the filtering result is no longer optimal.

Vk>HkPk/k1HkT+Rk (8)

To ensure filtering optimality, the innovation sequence is forced to be orthogonal, so as to extract as much valid information as possible from the measurement innovation. Therefore, if a single fading factor λk1 is introduced into the variance matrix Pk/k1 of state prediction error, then

V0,k=Hk(λk(Pk/k1Qk1)+Qk1)HkT+Rk (9)

It can be seen that when the model is accurate or there is no sudden change in the state, that is λk=1, strong tracking filter becomes invalid and degenerates to the original filter.

For the sake of reducing computation, a determination of whether strong tracing is needed. The strong tracking filter should play a role when needed, and strong tracking function is unnecessary when there is no sudden system change. In this way, a filtering convergence criterion is proposed herein: if the system state changes suddenly, the actual estimation error is usually larger than the prediction error, and the error covariance matrix can be approximately considered as unbounded. This modeling indicates quadratic sum of the innovation sequence z˜kTz˜k includes the actual estimation error. According to this feature, filtering convergence criteria is constructed based on the nature of the innovation sequence.

z˜kTz˜k>αtr{HkPk/k1HkT+Rk} (10)

where formula (10) is a criterion for judging whether the filter is converged or not. α1 means adjustable coefficient. If the formula (10) is established, it means that the actual filtering error exceeds the theoretical prediction error by ε times, and the filter diverges. At this time, strong tracking is required to give full play to its observation role to suppress the filter divergence. On the contrary, if the formula (10) is not established, it means that the filter works normally. At this stage, it is possible to estimate the state variable with MSSRCKF alone without strong tracking.

STMCKF is described in detail below. It is specifically stated that there are two versions of this method, and the following version is universal. STMCKF in Section 3 is a simplified version to reduce calculation amount, which is suitable for systems that can linearize the observation equation. Since the main research object of this paper is the quadruped robot, the simulation and experiment are carried out for the quadruped robot, and other systems will not be discussed.

2.1. Initialization

Assume that state estimation x^k1 and state variance matrix Pk1 at the moment k1 are known, take a set of vectors ai=[ai,1,ai,2,,ai,n]T,i=1,2,,n+1, where, n is the state dimension.

ai,j={[n+1n(nj+2)(nj+1)]0.5,j<i[(n+1)(ni+1)n(ni+2)]0.5,j=i0,j>i (11)

Volume point of the filter is indicated as follows:

{ξi=0 ,i=0ξi=[(n+2)a]i ,i=1,2,,n+1ξi=[(n+2)a]i ,i=n+2,,2n+2 (12)

where [ ]i means n -dimension point set obtained by calculation, the number of points is n+1, and the weight corresponding to the volume point is:

{ωi=2n+2 ,i=0ωi=n2(n+1)(n+2) ,i=1,2,,2n+2 (13)

2.2. Predication

We need calculate ξi according to formulas (11) and (12); singular value decomposition (SVD) is a decomposition method applicable to any matrix. It has a computational complexity equivalent to Cholesky decomposition, but avoids error in the filtering process caused by non-positive definiteness of mean square error matrix in one-step prediction after multiple cycles, thus improving numerical calculation robustness while enhancing filtering accuracy. As a result, SVD is adopted for the calculation of volume points.

SVD of the state variance Pk1 at the moment k1 is performed:

Pk1=Uk1Sk1Vk1T (14)

Calculate the first volume point Xi,k1,i=0,1,,2n+2:

Xi,k1=x^k1+Uk1Sk1ξi,i=0,1,,2n+2 (15)

where Sk1=diag(s1,s2,,sr,0,,0) ,s1>s2>>sr>0 is the singular value of the matrix Pk1; Uk1,Sk1,Vk1Rn×n.

The first volume point spread:

χi,k/k1=fk1(χi,k1) ,i=0,1,,2n+2 (16)

Calculate weight ωi of each volume point according to formula (13), and then calculate the one-step predicted value of the state:

x^k/k1=i=02n+2ωiχi,k/k1 ,i=0,1,,2n+2 (17)

Calculate one-step prediction covariance matrix of the state:

Pk/k1=i=02n+2ωiχi,k/k1χi,k/k1Tx^k/k1x^k/k1T+Qk1 (18)

If the observation equation is a non-linear function, then a second volume point sampling is needed and fading factor matrix should be calculated.

2.3. Pseudo Observation Update

Since the observation equation is changed into the pseudo observation equation, the linear equation Hk satisfies the following equations:

z^k/k1=Hkx^k/k1 (19)
Pxz,k/k1=Pk/k1HkT (20)

2.4. State Mutation Test

When a sudden change in the robot’s state is detected, STMCKF initiates strong tracking mode. After improvement, the number of sampling point calculation in TSTCKF can be reduced from three to one, and a new multiple fading factor matrix is given, thus achieving unbiased estimation; when there is no sudden state change, STMCKF initiates normal mode without adopting strong tracking. Use formula (10) to check whether strong tracking is needed.

2.5. Calculate Multiple Fading Factors

Calculate the fading factor matrix according to formula (6).

2.6. Recalculation

Recalculate one-step prediction variance matrix Pk/k1* and the new root mean square Sk/k1* after adding the fading factor. * means after adding the fading factor.

Pzz,k/k1*=λk(1:m,1:m)Mk+Rk (21)
Pxz,k/k1*=λkPxz,k/k1 (22)

In the formula, since the modified observation equation has m*n dimensional matrix, the fading factor matrix takes the square matrix composed of the previous m dimensions to perform channel compensation.

2.7. Update

The third volume point sampling is no longer needed, and the state estimate and variance are directly calculated:

Kk*=Pxz,k/k1*/Pzz,k/k1* (23)
x^k*=x^k/k1+Kk*(zkz^k/k1) (24)
Pk*=λkPk/k1Kk*Pxz,k/k1* T (25)

For systems where equation of state is non-linear, Traditional Strong Tracking CKF (TSTCKF) requires three volume point calculations for each filtering, but STMCKF only needs one volume point calculation for each filtering.

3. Forward Kinematics of Quadruped Robot

Years of research work on mammals and arthropods has shown that the animal’s own movement and position can be effectively estimated based on its own inertial information and joint information. For a quadruped robot, a link coordinate system is established according to its leg structure. By calculating forward kinematics of the robot, motion parameters of the robot can be obtained simply and conveniently.

The IMU used in this work is a NAV440CA-200 developed by MEMSIC (MEMSIC, Wuxi, China), which is a cheap civilian IMU, costing about $1500. To improve its accuracy and suppress the drift, this paper adopts linear displacement sensors of each joint of the quadruped robot to calculate the joint angle, and calculates the displacement of each foot relative to the body through positive kinematics so as to obtain the position and velocity of the legged robot and provide redundant calibration information for the IMU. The IMU itself has very accurate pitch angle and roll angle. It is difficult to obtain yaw angle through the combination navigation of positive kinematics and IMU, and other auxiliary sensors are needed for correction.

The three-dimensional model of the quadruped robot studied in his paper is shown in Figure 1. Each leg of the robot includes five joints: side swing, forward side-sway hip joint, front hip joint, knee-joint, ankle joint and passive line elastic component. Each active joint is driven by a hydraulic cylinder and is equipped with a displacement sensor.

Figure 1.

Figure 1

Three-dimensional (3D) model of the quadruped robot.

Figure 2 shows the definition of the navigation coordinate system N and the body coordinate system B. It is worth noting that IMU placement position has been accurately fixed at the center of mass of the quadruped robot in the design phase. Without consideration of external load design, the lever arm error is ignored here.

Figure 2.

Figure 2

The navigation coordinate system N and the body coordinate system B.

The direction cosine matrix Cbn from N to B can be calculated according to the yaw angle ψ around the Z axis, the pitch angle θ around the Y axis and the roll angle φ around the X axis, as shown in Equation (26).

Cbn=C(ψ)C(θ)C(φ)=[cosψsinψ0sinψcosψ0001][cosθ0sinθ010sinθ0cosθ][1000cosφsinφ0sinφcosφ]=[cosψcosθlmsinψcosθnqsinθcosθsinφcosθcosφ] (26)
l=sinψcosφ+cosψsinθsinφ (27)
m=sinψsinφ+cosψsinθcosφ (28)
n=cosψcosφ+sinψsinθsinφ (29)
q=cosψsinφ+sinψsinθcosφ (30)

The quadruped robot adopts ankle joint opposite vertex design, and its four legs are symmetrically arranged, so forward kinematic analysis is made only with the right front leg support ground as an example. Since the displacement of the passive linear elastic link is small and not easy to measure, it has little influence on the kinematics calculation. Therefore, the robot’s leg linkage coordinate system is ignored. According to the establishment principle of DH joint coordinate system, the coordinate system of the link from the robot center of mass to the foot end is obtained, as shown in Figure 3. According to the joint link coordinate system, a D-H parameter table from side hip joint to the foot end is established, as shown in Table 1.

Figure 3.

Figure 3

Connecting rod coordinate system of right front leg of quadruped robot [20].

Table 1.

The D-H parameter table of right front leg of the quadruped robot.

Joint i Connecting Rod Length li (mm) Torsional Angle αi (°) Connecting Rod Distance di (mm) Connecting Rod Angle θi (°)
1 100 90 0 θ1
2 315 0 0 θ2
3 335 0 0 θ3
4 340 0 0 θ4

Where the connecting rod angles are transverse joint angle θ1, hip joint angle θ2, knee joint angle θ3 and ankle joint angle θ4, which can be calculated in accordance with the leg structure and hydraulic cylinder configuration. By calculating the homogeneous transform matrix A10~A43 between adjacent joints, the homogeneous transform matrix A0B (front hip joint coordinate system relative to body coordinate system), and the homogeneous transform matrix ABN (body coordinate system relative to navigation coordinate system), as shown in the equation.

The homogeneous transform matrix A4N (foot coordinate system relative to navigation coordinate system) can be obtained, as shown in Equation (31).

A4N=ABNA0BA10A21A32A43 (31)

In calculation of kinematic velocity of mass center, the arithmetic product of joint angular velocity and the Jacobian matrix is avoided. In the moving process of a quadruped robot, serious shocks will occur, and spaces will exist in leg joints, causing errors of displacement sensor data. Therefore, directly using differential to calculate angular velocity will enlarge calculation errors.

The specific method is to calculate robot body displacement distance for every 10 sampling periods (sampling frequency is over 200 Hz). The average velocity can be gained, as shown in Equation (32). This method can remove the impact of shocking vibration and effectively improve the calculation accuracy. Considering the real-time performance, 0.05 s of lag is within the permissible range.

v¯=Δs10T (32)

where T is the sampling periods. v¯ is the average locomotion velocity within 10 sampling periods. Δs is the robot body displacement within 10 sampling periods.

3.1. Equation of State for Quadruped Robot

Forward kinematics of the quadruped robot is used to correct the position and velocity innovation of the IMU, which can make full use of high response rate and high accuracy of the IMU. Moreover, long-term drift of the IMU can be corrected via positive kinematics solution. The IMU has very accurate pitch and roll angles. When the quadruped robot is walking in dynamic gait, that is, when it is landing on one or two feet, it is impossible to determine its attitude angle only using positive kinematics. We need to estimate the position and velocity of the quadruped robot. To dynamically compensate the deviation of the accelerometer, the deviation values of the accelerometers on the three axes in the IMU are extended to the state variables of the filter. In this way, 9 state variables are needed. Here, it is worth noting that, the north direction of the IMU is consistent with the robot’s forward direction, the east direction of the IMU points horizontally to the right side of the robot, and the vertically downward direction of the IMU points to the bottom of the robot.

To realize dynamic bias compensation, strapdown inertial navigation system (SINS) bias as state variable is introduced into the state equation in this work. The outputs of accelerator and gyroscope include bias and noise. As shown in Equation (33), the derivative of bias and random error is regarded as the Gaussian noise.

a=a^bawawa~N(0,Qa)b˙a=wbawba~N(0,Qba) (33)

where Qa,Qba represent the variance of random errors, a is the real value of the accelerator, a^ is the measured value of the accelerator, ba is the bias of accelerator, wa is the random error of the accelerator and wba is the random error of accelerator bias.

The differential equation of the state variable should be established before deriving the state equation. The velocity updating differential equation of SINS is expressed as Equation (34):

v=Cbna(2ωen+ω)v+gn (34)

where v is the robot velocity in navigation coordinate system, ωen is the projection of earth rotational angular velocity in navigation coordinate system, ω is the projection of angular velocity of body coordinate relatively to earth coordinate in navigation coordinate system. gn represents the acceleration of gravity in the navigation coordinate system.

In Equation (34), (2ωen+ω)v represents the Coriolis acceleration term and centripetal acceleration term, which can be regarded as harmful acceleration during velocity calculation. For mobile robot, the moving velocity is normally less than 2 m/s, the order of magnitude for ωen, ω is only 10−4. It can be known that the magnitude of coriolis acceleration is 10−5 and the magnitude of centripetal acceleration is only 10−7, which is negligible in velocity calculation. The velocity upgrading differential equation of SINS can be simplified as Equation (35). Subsequently, the integral operation is performed using the Runge–Kutta method, so that the real time velocity variation can be obtained.

vCbna+gn (35)

where Cbna+gn is the accelerometer measurement value, which can also be written as Cbn(a^bawa)+gn. As Cbn is time-varying, the discrete recursive form of each state component can be written as follows:

sk=sk1+vk1t+t22(Cb,k1n(a^k1ba,k1wa,k1)+gn) (36)
vk=vk1+t(Cb,k1n(a^k1ba,k1wa,k1)+gn) (37)
ba,k=ba,k1+wba,k1 (38)

where skR3×1 represents the position of the robot in the navigation coordinate system at the moment k; vkR3×1 represents the speed of the robot in the navigation coordinate system at the moment k; ba,kR3×1 represents the deviation of the accelerometer in the navigation coordinate system at the moment k; t is the sampling time, Cb,k1n is the direction cosine matrix at the moment k1.

It is written in matrix form as:

[skvkba,k]=[Itt22Cb,k1n0ItCb,k1n00I][sk1vk1ba,k1]+[t22(Cb,k1na^k1+gn)t(Cb,k1na^k1+gn)0]+[t22Cb,k1nwa,k1tCb,k1nwa,k1wba,k1] (39)

However, the magnitudes of these parameters differ significantly from each other. The error values of displacement, velocity, accelerator bias are regarded as state variables, which can be expressed by Equation (40):

xk=[ΔskΔvkΔba,k]T (40)

where Δsk is the error value of displacement at the moment k, Δvk is the error value of velocity at the moment k, Δba,k is the error value of accelerator bias at the moment k.

Take the error values of position, speed and deviation as state variables, then:

[ΔskΔvkΔba,k]=[Itt22Cb,k1n0ItCb,k1n00I][Δsk1Δvk1Δba,k1]+[t22Cb,k1nΔwa,k1tCb,k1nΔwa,k1Δwba,k1] (41)

So the equation of state (41) can be rewritten as:

xk=Fk1xk1+μk1 (42)
Fk1=[Itt22Cb,k1n0ItCb,k1n00I] (43)
μk1=[ws,k1wv,k1wba,k1]=[t22Cb,k1nΔwa,k1tCb,k1nΔwa,k1Δwba,k1]=[t22Cb,k1n0tCb,k1n00I][Δwa,k1Δwba,k1] (44)

If the variance of Δwa,k1 is Qa,k1, the variance of Δwba,k1 is Qb,k1, the process noise variance is:

Qk1=E(Δwa,k1Δwa,k1T)=[t44Cb,k1nCb,k1n TQa,k1t32Cb,k1nCb,k1n TQa,k10t32Cb,k1nCb,k1n TQa,k1t2Cb,k1nCb,k1n TQa,k1000Qb,k1] (45)

3.2. Pseudo-Observation Equation of Quadruped Robot

Previously, the displacement sf and moving velocity vf can be obtained according to robot forward kinematics analysis, here the two parameters are adopted as measurement variables, based on which the measurement model and the other two parameters (the displacement after correction sc and the velocity after correction vc can be established shown as Equation (46) and simply denoted as Equation (47).

For the quadruped robot system, the observation equation is linearized. Based on this, STMCKF is proposed. Only one volume point calculation is needed for each filtering, which greatly reduces the calculation amount and improves real-time performance.

zk=[sfscvfsc]=[ΔskΔvk]+ηk=[I000I0][ΔskΔvkΔba,k]+ηk (46)

where ηs,k and ηv,k are uncorrelated white Gaussian noises of variance Rs and Rv, respectively. The above equation can be written in the form of Equation (47).

zk=Hxk+ηk (47)

For the quadruped robot system herein, HR6×9, the observation noise covariance is:

Rk=E(ηkηkT)=diag(Rs,Rv) (48)

3.3. Multi-Sensor Fusion Structure Diagram

The multi-sensor fusion structure diagram is as shown in Figure 4:

[si.kvi,k]=[sc,k1vc,k1]+[tvc,k1+t22ac,k1tac,k1]=[sc,k1vc,k1]+[tvc,k1+t22[Cb,k1n(a^k1Δba,k1)+gn]t[Cb,k1n(a^k1Δba,k1)+gn]] (49)
[sc,kvc,kac,k]=[si,kvi,kai,k][Δs^kΔv^kCb,knΔb^a,k] (50)

where si,k, vi,k and ai,k are navigation calculation results at the moment k. Δ s^k, Δ v^k and Δb^a,k are estimations of displacement and velocity errors at the moment k. sc,k, vc,k and ac,k are position, velocity, and acceleration results of the robot in the navigation coordinate system after correction at the moment k.

Figure 4.

Figure 4

Multi-sensor fusion structure diagram.

The velocity vb,k of the robot body coordinate system may be needed for control. It can be obtained according to formula (51).

vb,k=[cos(ψ)sin(ψ)0sin(ψ)cos(ψ)0001]vc,k (51)

4. Numerical Experiments

The state equation (42) and observation equation (47) are simulated. The sampling time is set to t=0.05s, Given biased parameters Qa,0 and Qb,0 are eye (3), Rk is eye (6), the initial state is x0=[0; 10; 0; 0; 0; 0; 0; 0; 0], and P0 is eye (9). In the simulation, the actual process noise μk and the observation noise ηk are uncorrelated white Gaussian noise, the average value of μk is [0.0659; 0.0703; 0.0033; 0.2846; 0.1933; 0.1704; 0.1901; 0.1339; 0.2395], the variance of μk is [9.8559; 8.1359; 8.5398; 9.4093; 10.1551; 7.9678; 7.9462; 9.1310; 9.2863]eye (9); the average value of ηk is [0.0042; 0.0034; 0.0043; 0.0044; 0.0068; 0.0042], the variance of ηk is [0.0096; 0.0094; 0.0105; 0.0098; 0.0096; 0.0103]eye (6). The root mean square error (RMSE) is used as the comparison criterion in the simulation. Suppose that the number of simulation times is 300 and the number of Monte Carlo simulation times is 50. The North-East moving trajectory of quadruped robot by Monte Carlo simulation is shown in Figure 5.

Figure 5.

Figure 5

Moving trajectory of quadruped robot in one Monte Carlo run.

In the North-East moving trajectory of quadruped robot simulated by Monte Carlo, the solid line represents the real position moving track, the red dot line represents the position moving track estimated by STMCKF, the green cross line represents the position moving track estimated by CKF, and the black dotted line represents the position moving track estimated by EKF. In order to test the ability of the algorithm to deal with the sudden change of the motion state, some extreme conditions are set artificially in the simulation. From the starting point, the robot accelerates uniformly in the first 50 samples, and then decelerates and turns eastward. After that, it accelerates and moves eastward for a certain distance before decelerating to zero and turning southward. Subsequently, it accelerates again and turns westward for an emergency stop before accelerating again. Finally it decelerates gradually to point A. It can be seen that the estimated position trajectory of STMCKF is very close to the real position trajectory, which verifies the correctness and effectiveness of STMCKF. In the process of the robot suddenly changing motion states at high speed, STMCKF converges rapidly, with only a few sampling periods and a high tracking accuracy maintained, which indicates that STMCKF has a strong robustness. In the stable acceleration stage, the position estimation of CKF and EKF is accurate, but the estimated trajectory starts to deviate from the real trajectory seriously when the robot turns from the lateral acceleration. Finally, the robot is located at point B, which is far from the real position. There are two main reasons for this result: one is the poor robustness of CKF and EKF, and second is the process noise of the quadruped robot system, which leads to the performance degradation of CKF and EKF estimation. It can be seen from the figure that the curves of CKF and EKF are very close, which is mainly due to the nonlinear degree of the state equation of the system is low and EKF has equal estimation ability as CKF. The estimation accuracy of EKF is lower than that of CKF when the degree of weak non-linearity is enhanced. The red full line represents the velocity estimation, the short blue dash line represents the forward kinematics calculation value, the black dot dash line represents the results of navigation velocity calculation, and the long green dashed line represents the real motion parameter. It can be seen from the figure that due to the existence of deviation, a fast drift occurs in velocity calculation. Under the impact of linear displacement sensor noise, the error of forward kinematics calculation is relatively large. However, after data fusion the velocity estimation is very close to its real value. Analytic calculation of error between estimation of velocity value and real velocity value is as follows:

Figure 6b shows the RMSE of the robot forward velocity estimated by these three filters. In Figure 6a, the solid line represents the true value, the dotted line represents the estimated value of STMCKF, the cross line represents the estimated value of CKF, the dotted line represents the estimated value of EKF, the horizontal axis represents the number of the sampling, the sampling interval is 0.05 s, and the vertical axis represents the forward velocity. It can be observed that the peak forward velocity reaches 25 m/s. This study simulates the harsh working conditions of high-speed motion, large change of acceleration and long sampling interval. Such large sampling intervals present a great challenge to state estimation for systems whose states change frequently. It can be seen from Figure 6a that the estimated curve of STMCKF tracks the real value well. Although the curve lags behind due to the influence of harsh working conditions, the overall estimated result is relatively accurate. The estimation curves of CKF and EKF are similar, indicating that the system is a weak non-linear system and has little impact on the estimation performance of EKF. However, both of them are affected by bad working conditions, and the estimation curves lag significantly. Nevertheless, we can see that the general trend is close to the real value, which shows the correctness of the two. By comparing the estimation curves of three kinds of filters, the superiority and robustness of STMCKF can be proved preliminarily. From Figure 6b, it can be seen that the RMSE of the solid line representing STMCKF is far lower than that of the circle point representing CKF and that of the dotted line representing EKF, indicating that the estimation accuracy of STMCKF is much higher than the other two. From the RMSE curves of CKF and EKF, it can be seen that each sudden change of the robot’s motion state makes RMSE increase rapidly, and the larger the robot’s speed is, the larger the RMSE is, and the smaller the robot’s speed is, the smaller the RMSE is. The RMSE curve of STMCKF can be divided into six sections of 0~50, 50~100, 100~150, 150~190, 190~230, and 230~300, which is completely consistent with the range of motion state change in the simulation, indicating that STMCKF can accurately identify the change of motion state. From the sampling interval of 0~50 and 150~190, it can be seen that the RMSE of STMCKF increases slightly upon the sudden change of the motion state, and does not increase continuously like CKF and EKF. The acceleration of the robot is increasing, but the RMSE of STMCKF shows an obvious downward trend, which shows that STMCKF can recognize in a timely way the change of the motion state, start strong tracking to resist so as to improve its own robustness. It can be clearly seen that 50 and 190 are turning points for emergency stop and turning, while CKF and EKF have a lag of about 10 sampling cycles. The forward speed of the robot decreases rapidly and then turns to an increase. This process can be seen from the RMSE curve of CKF and EKF, but not seen so obviously from the RMSE curve of STMCKF, indicating that STMCKF has a certain inhibition effect on the adverse effects of the sudden change of the robot’s motion state. From the range of 100~150 and 230~300, it can be seen that STMCKF has higher estimation accuracy when the robot’s motion state changes slowly, which is in line with our expectation. This proves the correctness of the simulation experiment and shows the superiority of STMCKF compared with CKF and EKF.

Figure 6.

Figure 6

Comparison of forward velocity estimation with three filters. (a) Forward velocity estimation; (b) RMSE of forward velocity.

Figure 7a shows the lateral velocity estimation curves of the three filters. Figure 7b shows the RMSE curve of the robot’s lateral velocity estimated by three filters. As shown in Figure 7a, the solid line represents the true value, the dotted line represents the estimated value of STMCKF, the cross line represents the estimated value of CKF, the dashed line represents the estimated value of EKF, the horizontal coordinate represents the sampling times, the sampling interval is 0.05 s, and the vertical coordinate represents the forward velocity. It can be seen that the peak lateral velocity reaches −27.2 m/s, which is due to the simulation of high-speed movement of the body and large change in acceleration. This extreme situation has exceeded the range of motion ability of foot-type robot. In addition, the sampling interval is long, which poses a great challenge to state estimation of the system with a drastic change of motion state. It can be seen from Figure 7a that the estimated curve of STMCKF tracks the real value well. The estimation error is obvious at the 150th and 232nd sampling, and there is a slight lag in the whole curve, which is mainly due to the large interval sampling and is difficult to overcome completely. It can also be said that the estimated curve is close to the real value on the whole and the estimated result is accurate. The estimation curves of CKF and EKF are similar, indicating that the system belongs to a weak non-linear system. In this system, the estimation performance of EKF and CKF has little difference, but both of them are affected by bad working conditions, and the estimation curve lags significantly. However, it can be seen that the overall trend is close to the real value, which indicates the correctness of the two filters in the simulation. By comparing the estimation curves of three kinds of filters, the superiority and robustness of STMCKF can be preliminarily proved. From Figure 7b, it can be seen that in the first 50 sampling periods, all three filters have high accuracy, this is because the robot only has forward acceleration and the lateral velocity is almost 0 during this period. The solid line representing the STMCKF shows the lateral acceleration applied at 50, 100, and 230, and the RMSE of the three STMCKF increases slightly in response to the sudden change of motion state, which does not diverge as far as CKF and EKF. STMCKF can suppress the divergence in a few sampling periods, showing excellent robustness.

Figure 7.

Figure 7

Comparison of lateral velocity estimation with three filters. (a) Lateral velocity estimation; (b) RMSE of lateral velocity.

The running time of EKF, CKF, STMCKF is comparatively studied using a laptop with an Intel Core i5-9400F processor and 8GB RAM, as shown in Table 2.

Table 2.

Running time and increased percentage of three filters running 100,000 times.

Algorithm EKF CKF STMCKF
Running time (s) 1.288 2.861 1.699
Increased (%) 0 122.13 31.91

5. Velocity Estimation Experiment of Quadruped Robot

The experimental prototype of the quadruped robot employed is shown in Figure 8. The robot body is equipped with a power system consisting of engine, variable pump, and hydraulic accessories, providing power for the hydraulic cylinder of each joint.

Figure 8.

Figure 8

Platform of quadruped robot.

During the experiment, the quadruped robot was walking on the flat ground in a trot gait at a speed of 1 m/s. The sampling frequency of the IMU is 100 HZ, and the sampling frequency of linear displacement sensor is 200 HZ. Let t=0.005s, Qa,k=eye(3), Qb,k=1.25e3eye(3), Qk is calculated according to equation (41) based on the value of Cb,kn; Generally, we use the Suge–Husa method for identification, but in order to make the comparison experiment more convincing, we use the time-invariant observation noise variance in the experiment [0.01; 0.01; 0.01; 0.0001; 0.005; 0.005]eye (6). In the walking process of the robot, STMCKF is used to provide the north and east position of the robot for positioning and navigation, and the forward velocity and lateral velocity of the robot are provided for motion control. Figure 9 is a video screenshot of a quadruped robot walking with STMCKF. It can be seen from the figure that when a pair of diagonal legs are in stable supporting posture, the robot mass center will move forward and the whole process is stable. The correctness and validity of the STMCKF proposed in this paper are proved again by experiments.

Figure 9.

Figure 9

Screenshot of walking experiment of quadruped robot prototype. (a) Robot is ready to start a new trot gait cycle; (b) Robot raises the left front leg and the right hind leg on the diagonal; (c) Robot chooses landing points according to state estimation result; (d) Robot raises the right front leg and the left hind leg on the diagonal; (e) Robot chooses landing points according to update state estimation result; (f) Robot starts next cycle of trot gait.

STMCKF is compared with traditional EKF to highlight the estimation effect of STMCKF more intuitively. For the sake of ensuring the accuracy and fairness of the comparison, we record the data of multiple groups of IMU, and apply STMCKF and EKF to estimate the states of the same group of IMU data, respectively. Here, a 2-minute IMU data is selected, and the comparison diagram of state estimation between STMCKF and EKF for this period of data is shown in Figure 10.

Figure 10.

Figure 10

Figure 10

Comparison of state estimation between EKF and STMCKF of a quadruped robot. (a) Comparison of north position estimation between EKF and STMCKF; (b) Comparison of east position estimation between EKF and STMCKF; (c) Comparison of forward velocity estimation between EKF and STMCKF; (d) Comparison of forward velocity estimation between EKF and STMCKF.

In Figure 10, the red full line represents STMCKF estimation, and green dash line represents EKF estimation. According to Figure 10, it can be seen that it takes about 4 s for the robot to start up and complete initialization, which is consistent with the actual situation. After resetting each foot, the sudden change of the position and velocity of the robot body in all directions will occur, STMCKF and EKF both respond to the sudden change of the robot’s motion state, indicating high sensitivity of the two. However, from the estimation curve, it can be seen that STMCKF converges more rapidly than EKF, and the response amplitude of STMCKF is significantly smaller than EKF, indicating that STMCKF has a strong resistance effect to sudden change of motion state. These results prove that STMCKF is better than EKF in coping with the sudden change of motion state. The robot moves forward at 21 s. In Figure 10a,b, the time-varying curves of the robot’s north and east positions related to the robot’s positioning and navigation performance are depicted. It can be seen that the solid line representing STMCKF presents a regular change with time, indicating that the STMCKF estimation results are accurate. The state switching during 21 s~22 s and 56 s~58 s is smooth and fast, which shows that STMCKF has a strong tracking ability to the motion state and the application of STMCKF can effectively improve the accuracy and stability of positioning and navigation. As shown in Figure 10a,b, the dotted line representing EKF responds to the sudden change at 4s and shows a trend of convergence although it does not fully converge until 21 s. As the robot moves forward, the original convergence trend of EKF becomes the divergence trend and then the robot moves rhythmically, so that the motion state will constantly change and the divergence trend of EKF will converge no more. According to the local enlarged figure in Figure 10a, the robot does not stop moving until 57 s, and STMCKF accurately estimates the static state of the robot and converges directly to the final north position. Although EKF converges gradually from the vibration due to the robot’s static state, it will not converge to the exact final position eventually. The information informs the robot “you are still moving back and forth”, which is obviously unfavorable for positioning and navigation. The partial enlarged view in Figure 10b shows a slight change of the robot’s east position near 79 s, with a displacement of 2.2 mm. Since the moving range of the robot can be ignored, so no one noticed it during the experiment. By comparing Figure 10c with Figure 10d, it can be seen that the robot stops walking after 57 s. The forward velocity of the robot returns to zero, but the lateral speed changes within a very small range. That is to say, the robot swings slightly independently to maintain balance. Instead of swinging back and forth, the robot swings laterally to maintain the balance, which is in line with our bionic design. Since the robot cannot completely calm down after walking, the change of its velocity is notified to the robot control center via STMCKF. Finally, the control center decides to shift 2.2 mm eastward to keep balance. It can be seen from Figure 10d that after the robot moves 2.2 mm eastward, its lateral velocity basically returns to zero. This shows the role of STMCKF in adjusting the motion state of the robot. If EKF is used to transfer the results to the control center, it is difficult for the control center to solve the balance problem via a slight shift because the dotted line in the local enlarged view in Figure 10b,d is constantly oscillating. This shows the advantage of STMCKF in control efficiency. Figure 10c shows that STMCKF converges rapidly in 0.05 s after responding to the sudden change of forward speed caused by robot start-up, while EKF converges successfully in 2 s. EKF is not good at changing the acceleration of the robot. When the walking velocity of the robot is accelerating from zero to the expected velocity of 1 m/s, the estimated results of EKF show a obvious divergent trend, and the amplitude is very large. The estimation velocity of EKF is much higher than the expected velocity, with negative velocity even occurring, which is obviously incorrect. Furthermore, it can be seen from the local enlarged figure of 40 s~45 s that the curve of EKF’s forward velocity estimation is sharp, indicating the velocity often changes abruptly, which is very unfavorable for the control of the quadruped robot. Using such a state estimator will make the track of the foot end of the robot become less smooth, increasing the wear of various components and reducing the service life. The velocity estimation curve plotted by STMCKF shows a regular periodic sawtooth wave, and the peak value of velocity is very close to 1 m/s. This may be because the ground on which the robot walks is made of smooth tile, so the slipping phenomenon occurred, which reduced the walking efficiency.

6. Conclusions

To further increase the accuracy of state estimation for a quadruped robot system, a strong tracking mixed-degree cubature Kalman filter algorithm is proposed in this paper. The proposed algorithm is used to fuse IMU and forward kinematics for estimation, which can greatly improve the accuracy, robustness and real-timeness of state estimation without increasing the cost. This algorithm improves the robustness of STMCKF by strong tracking. Moreover, the more appropriate combination of STMCKF and strong tracking is demonstrated in this study. Unlike the traditional combination method of a strong tracking cubature Kalman filter, this paper puts forward a new calculation method of fading factor matrix, which realizes the unbiased estimation and reduces the original calculation of sampling points from three times to once. Through the judgment of the sudden change of motion state, it can be known that the strong tracking can only be started when necessary, which further improves the real-time performance of the algorithm. The results of simulation and experiment show the correctness and excellent estimation performance of the STMCKF algorithm proposed in this paper. The comparison of Table 2 and RMSE shows that the accuracy of STMCKF is much higher than that of EKF and CKF while the time consumption of STMCKF is only 31.91% longer than that of EKF and 40.62% shorter than that of CKF. For the sudden change of robot motion state, STMCKF can also make accurate judgment, effective suppression and strong tracking. To sum up, STMCKF is very suitable for the quadruped robot system whose motion state changes constantly. Using the proposed STMCKF algorithm, the state estimation accuracy of quadruped robots can be effectively improved without increasing the research and development (R&D) cost. Moreover, the proposed algorithm has good robustness and real-time performance, making the sensor on the robot achieve the maximum use benefit. Meanwhile, since there is no limitation to the number of feet, SMSRCKF is suitable for all legged robots, which has great application value for improving the motion performance of legged robot and for enhancing the accuracy of navigation and positioning.

Acknowledgments

This work was supported by Natural Science Foundation of China (No.61773139), Shenzhen Science and Technology Research and Development Foundation (No.JCYJ20190813171009236) and Shenzhen science and Technology Program (No.KQTD2016112515134654).

Appendix A

The optimal state estimation based on Kalman filtering derivation has the following forms:

x^k=x^k/k1+E(x˜k/k1z˜k/k1)(E(z˜k/k1z˜k/k1T))1z˜k/k1 (A1)

where,

z˜k/k1=zki=02n+2ωih(δi) (A2)
E(z˜k/k1z˜k/k1T)=Pzz,k/k1=HkPk/k1HkT+Rk (A3)
E(x˜k/k1z˜k/k1T)=Pxz,k/k1=Pk/k1HkT (A4)

Introduce the fading factor according to the traditional method and compensate the innovation, then,

Pk/k1*=λkFk1Pk1Fk1T+Qk1 (A5)
Pzz,k/k1*=HkPk/k1*HkT+Rk (A6)
Pxz,k/k1*=Pk/k1*HkT (A7)
z˜k/k1*=zki=02n+2ωih(δi*) (A8)

δj* is the volume point generated by Pk+1/k* after the introduction of the fading factor.

x^k*=x^k/k1+Pxz,k/k1*Pzz,k/k1*1 z˜k/k1* (A9)

The two formulas subtract each other, then,

x^kx^k*=Pxz,k/k1*Pzz,k/k1*1 (z˜k/k1z˜k/k1*)=Pxz,k/k1*Pzz,k/k1*1 i=02n+2ωi(h(δi)h(δi*)) (A10)

Thus, when strong tracking is valid, that is, λk>1, then Pk/k1Pk/k1*, then δiδi*. That is, the state estimation results are biased. The performance index formula (3) is thus not met. It can be seen that compensation for one-step prediction of observation is unnecessary.

When the fading factor is introduced according to the traditional method, but the innovation is not compensated, there is,

x^k*=x^k/k1+Pxz,k/k1*Pzz,k/k1*1 z˜k/k1 (A11)

Then, the performance index formula (3) is met, but if strong tracking is effective at this time, which means λk>1, there is still z˜k/k1z˜k/k1*.

Then, whether performance index formula (4) is met cannot be guaranteed. That is, the innovation sequence cannot be guaranteed to be orthogonal.

Appendix B

First, the system state equation and observation equation are expanded by Taylor series at xk1=x^k1 and xk=x^k/k1, then:

xkfk1(x^k1)+Fk1(xk1x^k1)+wk1 (A12)
zkhk(x^k/k1)+Hk(xkx^k/k1)+vk (A13)

where,

Hk=hk(xk)xk|xk=x^k/k1, Fk1=fk1(xk1)xk1|xk1=x^k1.

The innovation z˜k at the moment k is:

z˜k=zkz^k=hk(xk)+vki=02n+2ωihk(xk,i)hk(x^k/k1)+Hk/k1(xkx^k/k1)+vki=02n+2ωihk(xk,i) (A14)

z^k can be expanded into the following form:

z^k=i=02n+2ωihk(xk,il)=E[hk(xk)]=hk(x^k/k1)+(Pk/k1T2)hk(x^k/k1) (A15)

where is a complete differential operator. Substitute formula (A13) and formula (A15) into formula (A14), then,

z˜k=Hk(xkx^k/k1)+vk(Pk/k1T2)hk(x^k/k1) (A16)

Similar to formula (A15), x^k/k1 can be expanded into the following form:

x^k/k1=i=02n+2ωiχk/k1,i=E[fk1(xk1)]=fk1(x^k1)+(Pk1T2)fk1(x^k1) (A17)

Calculate xkx^k/k1 based on formula (A12) and formula (A17), then,

xkx^k/k1=fk1(xk1)+wk1i=02n+2ωifk1(xk1,i)fk1(x^k1)+Fk1(xk1x^k1)+wk1fk1(x^k1)(Pk1T2)fk1(x^k1)=Fk1(xk1x^k1)+wk1(Pk1T2)fk1(xk1) (A18)

Substitute formula (A18) into formula (A16), then,

z˜k=HkFk1(xk1x^k1)+Hkwk1Hk(Pk1T2)fk1(x^k1)+vk(Pk/k1T2)hk(x^k/k1) (A19)

xk1 can be expanded by Taylor series into:

xk1fk2(x^k2)+Fk2(xk2x^k2)+wk2 (A20)
x^k1=x^k1/k2+Kk1z˜k1fk2(x^k2)+(Pk2T2)fk2(x^k2)+Kk1z˜k1 (A21)
xk1x^k1=Fk2(xk2x^k2)+wk2(Pk2T2)fk2(x^k2)Kk1z˜k1=(Fk2Kk1Hk1Fk2)(xk2x^k2)+(IKk1Hk1)wk2Kk1vk1(IKk1Hk1)(Pk2T2)fk2(x^k2)+Kk1(Pk1/k2T2)hk1(x^k1/k2) (A22)

Substitute formula (A23) into formula (A19), then the covariance at any previous time is:

E[(Pk2T2)fk2(x^k2)z˜kjT]=(Pk2T2)fk2(x^k2)E(z˜kjT)=0 (A23)
E[(Pk1/k2T2)hk1(x^k1)z˜kjT]=(Pk1/k2T2)hk1(x^k1)E(z˜kjT)=0 (A24)
E[wk2z˜kjT]=0 (A25)
E[vk2z˜kjT]=0 (A26)

Then the covariance of the innovation sequence at any previous time kj is:

E[z˜kz˜kjT]=E[HkFk1(Fk2Kk1Hk1Fk2)(xk2x^k2)z˜kjT]=HkFk1(Fk2Kk1Hk1Fk2)E[(xk2x^k2)z˜kjT] (A27)

It can be seen that there is an iterative connection between E[z˜kz˜kjT] and (xk2x^k2). According to formula (A22), the above steps are iterated, and it can be finally obtained that,

E[z˜kz˜kjT]=HkFk1(Fk2Kk1Hk1Fk2)(FkjKkj+1Hkj+1Fkj)E(Pkj/kj1HkjTKkjVkj) (A28)
Vkj=E[z˜kjz˜kjT] (A29)

According to the principle of strong tracking orthogonality, E[z˜k+jz˜kT]=0, sufficient condition must be met:

Pk/k1HkTKkVk=0 (A30)

Formula (A30) can be written as:

Pxz,k/k1KkVk=0 (A31)
Kk(Pzz,k/k1Vk)=0 (A32)

Since Kk is a non-zero matrix, then,

Pzz,k/k1Vk=0 (A33)

It can be seen that calculating λk while maintaining Pzz,k/k1=Vk can ensure that the innovation sequence is orthogonal everywhere.

λki=02n+2ωiζk/k1,iζk/k1,iTz^k/k1z^k/k1T=VkRk (A34)
Nk=VkRk (A35)
Mk=i=02n+2ωiζk/k1,iζk/k1,iTz^k/k1z^k/k1T (A36)
Vk={z˜kz˜kT,k=0ρVk1+z˜kz˜kT1+ρ,k1 (A37)

Then the matrix of the fading factor is as follows:

λki={αick,αick>11,αick1,ck=tr[Nk]i=1nαiMkii (A38)

where αi1, λki is the element of the fading factor matrix; Mkii is the element on the diagonal of the matrix Mk; and the αi value is obtained from RBF neural network training, which can also be obtained from prior knowledge.

Author Contributions

Conceptualization, J.L.; methodology, J.L.; software, J.L.; validation, F.Z., W.G. and J.L.; formal analysis, J.L.; investigation, F.Z.; resources, W.G. and Z.J.; data curation, J.L. and F.Z.; writing—original draft preparation, J.L. and F.Z.; writing—review and editing, J.L.; visualization, J.L. and F.Z.; supervision, P.W., F.Z. and W.G.; project administration, L.S. and P.W.; funding acquisition, P.W. All authors have read and agreed to the published version of the manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

References

  • 1.Yaakov B.S., Li X., Thiagalingam K. Estimation with Applications to Tracking and Navigation. John Wiley and Sons; New York, NY, USA: 2001. [Google Scholar]
  • 2.Julier S.J., Uhlmann J.K. Unscented Filtering and Nonlinear Estimation. Proc. IEEE. 2004;92:401–422. doi: 10.1109/JPROC.2003.823141. [DOI] [Google Scholar]
  • 3.Doucet A., Godsill S., Andrieu C. On sequential Monte Carlo sampling methods for Bayesian filtering. Stat. Comput. 2000;10:197–208. doi: 10.1023/A:1008935410038. [DOI] [Google Scholar]
  • 4.Arasaratnam I., Haykin S. Cubature Kalman Filters. IEEE Trans. Autom. Control. 2009;54:1254–1269. doi: 10.1109/TAC.2009.2019800. [DOI] [Google Scholar]
  • 5.Gupta D., Anand R.S., Tyagi B. Ripplet domain non-linear filtering for speckle reduction in ultrasound medical images. Biomed. Signal Process. Control. 2014;10:79–91. doi: 10.1016/j.bspc.2014.01.004. [DOI] [Google Scholar]
  • 6.JIA B., XIN M., CHENG Y. High-degree cubature Kalman filter. Automatica. 2013;49:510–518. doi: 10.1016/j.automatica.2012.11.014. [DOI] [Google Scholar]
  • 7.Meng D., Miao L., Shao H. A Seventh-Degree Cubature Kalman Filter. Asian J. Control. 2017;20:250–262. doi: 10.1002/asjc.1537. [DOI] [Google Scholar]
  • 8.Yanling H., Junwei Y., Liang C. Square Root Cubature Kalman Filter. J. Projectiles Rockets Missiles Guidance. 2012;32:169–172. [Google Scholar]
  • 9.Cui X., Jing Z., Luo M., Guo Y., Qiao H. A New Method for State of Charge Estimation of Lithium-Ion Batteries Using Square Root Cubature Kalman Filter. Energies. 2018;11:209. doi: 10.3390/en11010209. [DOI] [Google Scholar]
  • 10.Wang S., Feng J., Tse C.K. Spherical Simplex-Radial Cubature Kalman Filter. IEEE Signal Process Lett. 2014;21:43–46. doi: 10.1109/LSP.2013.2290381. [DOI] [Google Scholar]
  • 11.Liu H., Wu W. Interacting Multiple Model (IMM) Fifth-Degree Spherical Simplex-Radial Cubature Kalman Filter for Maneuvering Target Tracking. Sensors. 2017;17:1374. doi: 10.3390/s17061374. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Wang S., Feng Y., Duan S., Wang L. Mixed-Degree Spherical Simplex-Radial Cubature Kalman Filter. Math. Probl. Eng. 2017;10:23–29. doi: 10.1155/2017/6969453. [DOI] [Google Scholar]
  • 13.Zhang Y., Huang Y., Wu Z., Li N. Seventh-degree spherical simplex-radial cubature Kalman filter; Proceedings of the 33rd Chinese Control Conference; Nanjing, China. 28–30 July 2014; pp. 2513–2517. [Google Scholar]
  • 14.Zhou D.H., Xi Y.G., Zhang Z.J. A suboptimal multiple fading extended Kalman filter. Acta Autom. Sin. 1991;17:689–695. [Google Scholar]
  • 15.Feng K., Li J., Zhang X., Zhang X., Shen C., Cao H., Yang Y., Liu W. An Improved Strong Tracking Cubature Kalman Filter for GPS/INS Integrated Navigation Systems. Sensors. 2018;18:1919. doi: 10.3390/s18061919. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Huang W., Xie H., Shen C., Li J. A robust strong tracking cubature Kalman filter for spacecraft attitude estimation with quaternion constraint. Acta Astronautica. 2016;121:153–163. doi: 10.1016/j.actaastro.2016.01.009. [DOI] [Google Scholar]
  • 17.Hua L., Wen W. Strong Tracking Spherical Simplex-Radial Cubature Kalman Filter for Maneuvering Target Tracking. Sensors. 2017;17:741–753. doi: 10.3390/s17040741. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Zhao L., Wang J., Yu T., Jian H., Liu T. Design of adaptive robust square-root cubature Kalman filter with noise statistic estimator. Appl. Math. Comput. 2015;256:352–367. doi: 10.1016/j.amc.2014.12.036. [DOI] [Google Scholar]
  • 19.Zhang A., Bao S., Gao F., Bi W. A novel strong tracking cubature Kalman filter and its application in maneuvering target tracking. Chin. J. Aeronaut. 2019;32:2489–2502. doi: 10.1016/j.cja.2019.07.025. [DOI] [Google Scholar]
  • 20.Wang P., Liu J., Zha F., Guo W., Wang X., Li M., Sun L. A velocity estimation algorithm for legged robot. Adv. Mech. Eng. 2017;9:168781401773273. doi: 10.1177/1687814017732736. [DOI] [Google Scholar]

Articles from Sensors (Basel, Switzerland) are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES