Skip to main content
. 2021 Jun 8;21(12):3955. doi: 10.3390/s21123955
Algorithm 1: Loop closure algorithm.

Input: Tm,Pm from the sliding window

Output: TICP
  • 1:
    if (Tm,Pm).isKeyframe() then
  • 2:
    if DTϕ or DPϕ then
  • 3:
       Tm KDtree.RadiusSearch(Tm,DT,r);
  • 4:
       M registerPointCloud(DT,DP);
  • 5:
       if Tm0 then
  • 6:
        TICP ComputeICP(Pm,M,Tm);
  • 7:
       end if
  • 8:
      end if
  • 9:
      Tm0
  • 10:
      DT=DTTm
  • 11:
      DP=DPPm
  • 12:
    end if