Skip to main content
. 2017 May 5;17(5):1037. doi: 10.3390/s17051037
Algorithm 1. Visual-inertial motion tracking process.
01. Initialize x^0|0, x˜0|0 and P0|0
02. for k=1, do
03. { Time update:
04.   Compute Fd and Qd, x˜k|k1=021×1, Pk|k1=FdPk1|k1FdT+Qd
05.   Compute x^k|k1 with the 4th Runge Kutta integration
06.     if Pose from visual-based arrived
07.      {Measurement update:
08.       Compute the residual: z˜=zz^, Kalman gain: Kk=Pk|k1HT(HPk|k1HT+R)1;
09.       Compute the correction: x˜k|k=x˜k|k1+Kkz˜, Pk|k=(IdKkH)Pk|k1(IdKkH)T+KkRKkT;
10.       Use x˜k|k to correct state estimate and the obtain x^k|k}
11.     end
12. end }