Saying goodbyes to rotating your phone: Magnetometer calibration during SLAM
Ilari Vallivaara, Yinhuan Dong, Tughrul Arslan
TL;DR
This work tackles magnetometer bias as a major impediment to MF-based indoor SLAM by introducing SLAMnC, a Rao-Blackwellized particle filter that performs simultaneous localization, mapping, and bias calibration without requiring a pre-collected MF map. Each particle maintains its own map and a bias estimate, with a per-particle Kalman filter updating the bias as loop closures occur; MF residuals guide the bias refinement while the map grows analytically from the trajectory. The approach is validated on smartphone data from a shopping mall and mobile-robot data from office/apartment environments, showing convergence of the bias to values comparable to manually calibrated references and MF map consistency similar to or better than OS-calibrated baselines. The results suggest that magnetometer calibration can be effectively integrated into SLAM, enabling robust indoor positioning when manual calibration is impractical and paving the way for combining calibration with other modalities in diverse platforms.
Abstract
While Wi-Fi positioning is still more common indoors, using magnetic field features has become widely known and utilized as an alternative or supporting source of information. Magnetometer bias presents significant challenge in magnetic field navigation and SLAM. Traditionally, magnetometers have been calibrated using standard sphere or ellipsoid fitting methods and by requiring manual user procedures, such as rotating a smartphone in a figure-eight shape. This is not always feasible, particularly when the magnetometer is attached to heavy or fast-moving platforms, or when user behavior cannot be reliably controlled. Recent research has proposed using map data for calibration during positioning. This paper takes a step further and verifies that a pre-collected map is not needed; instead, calibration can be done as part of a SLAM process. The presented solution uses a factorized particle filter that factors out calibration in addition to the magnetic field map. The method is validated using smartphone data from a shopping mall and mobile robotics data from an office environment. Results support the claim that magnetometer calibration can be achieved during SLAM with comparable accuracy to manual calibration. Furthermore, the method seems to slightly improve manual calibration when used on top of it, suggesting potential for integrating various calibration approaches.
