Skip to main content
. 2026 Jun 10;26(12):3697. doi: 10.3390/s26123697
Algorithm 1: Tightly coupled motion-capture algorithm (TCMA)
  Input: Sensor measurements yt, an initial state estimate x^0 with covariance P^0, process and measurement noise covariance matrices Q and R; see (4), (13) and (14).
  Output: Estimates of the system states x^t and the respective covariance P^t for t=1,…T.
   1: for t=1,…,T do
   2: Time update  Compute the state prediction by numerically integrating the noise-free dynamics in (4) from the previous estimate x^t−1 over one time step Δt,
xˇt=f(x^t−1,Δt). (15)
      Compute the predicted state covariance as
Pˇt=Ft−1P^t−1Ft−1T+Q, (16)
      where the discrete-time state transition Jacobian is approximated by discretizing the continuous-time Jacobian as Ft−1≈expGt−1Δt, with Gt−1=∂g(x)∂xx=x^t−1 computed numerically.
  3: Measurement update
  4:   for k=1,…,ϵ until x¯tk+1≈x¯tk do
  5:    Update the state with measurements yt as
x¯tk+1=xˇt+Ktkyt−ht(x¯tk)−Htk(xˇt−x¯tk), (17)
       where Ktk=Pˇt(Htk)THtkPˇt(Htk)T+R−1and Htk=∂ht(xt)∂xtxt=x¯tk.
  6:   Compute the filtered state and covariance
x^t=x¯tk+1,P^t=I−KtkHtkPˇt. (18)