Skip to main content
. 2019 Dec 9;19(24):5430. doi: 10.3390/s19245430
Algorithm 3: Improved weighted iterative closest point (ICP)
Input: V-SLAM track pi, GPS track qi, weights on timestamps wiwi≥0, i=1,…,N
Output: Rotation matrix and translation vector that minimises ∑i=1Nwiqi−Rpi+t2
1: Centroids p¯=∑i=1Nwipi/∑i=1Nwi, q¯=∑i=1Nwiqi/∑i=1Nwi
2: Centred vectors xi=qi−q¯, yi=pi−p¯
3: Covariance matrix S=XWYT, where X and Y have xi and yi as columns, respectively, and W is a diagonal matrix with wi on the diagonal
4: Singular value decomposition S=UΣVT
5: R=UVT and t=q¯−Rp¯
6: V-SLAM track after calibration in global coordinates p′i=Rpi+t