View full-text article in PMC Sensors (Basel). 2020 Nov 28;20(23):6814. doi: 10.3390/s20236814 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1: UAPF(xt−1,ri,t,ut,zt). 1:xr,t=Ranging_Based_Localization(ri,t) 2:xp,t=PF_based_Localization(xt−1,ut,zt,Σp) 3:Get KNP according to distributions of xr,t and xp,t 4:ifKNP>thresholdthen 5: xt=Pose_Fusion(xp,t,xr,t,Σr) 6:else 7: if Σp≫Σr then 8: Re-localization: xt∼N(μr,Σp+Σr) 9: else 10: xt=Pose_Fusion(xp,t,xr,t,Σr) 11: end if 12:end if 13:Update Σp according to KNP and pose difference 14:returnxt