Skip to main content
. 2019 Sep 5;19(18):3842. doi: 10.3390/s19183842
Algorithm 1: The cooperative localization algorithm based on State Estimation Error Compensation
1:Initialize: Assume that each robot in the system initially knows its pose with respect to a given reference coordinate frame. As Figure 1 shows, consider that at time tk, the follower robot receives the pose information from the leader robot with time delay after N Kalman filters at time ts.
2:  State prediction and compensation: Give the one-step state prediction and covariance matrix:
X(k+1,k)=Φ(k)X(k)
P(k+1,k)=Φ(k)P(k)ΦT(k)+Γ(k)Q(k)ΓT(k)

3:  Calculate the state estimation error compensation:
M(k)=Φ(k)(IK(k)C(k))M(k1)
ΔX(k+1,k)=M(k)Φ(s)K(s)(Z(s)C(s)X(s1,s))

4:  Compute the filter gain:
K(k+1)=P(k+1,k)CT(k)[C(k)P(k+1,k)CT(k)+R(k)]1

5:  Construct the error-state propagation equation and the covariance propagation equation:
X(k+1,k)=X(k+1,k)+ΔX(k+1,k)
X(k+1)=X(k+1,k)+K(k+1)(Z(k+1)C(k)X(k+1,k))
P(k+1)=(IK(k+1)C(k+1))P(k+1,k)

6:end