%0 Journal Article %T An Onsite Calibration Method for MEMS-IMU in Building Mapping Fields. %A Li S %A Niu Y %A Feng C %A Liu H %A Zhang D %A Qin H %J Sensors (Basel) %V 19 %N 19 %D Sep 2019 25 %M 31557838 %F 3.847 %R 10.3390/s19194150 %X Light detection and ranging (LiDAR) is one of the popular technologies to acquire critical information for building information modelling. To allow an automatic acquirement of building information, the first and most important step of LiDAR technology is to accurately determine the important gesture information that micro electromechanical (MEMS) based inertial measurement unit (IMU) sensors can provide from the moving robot. However, during the practical building mapping, serious errors may happen due to the inappropriate installation of a MEMS-IMU. Through this study, we analyzed the different systematic errors, such as biases, scale errors, and axial installation deviation, that happened during the building mapping, based on a robot equipped with MEMS-IMU. Based on this, an error calibration model was developed. The problems of the deviation between the calibrated and horizontal planes were solved by a new sampling method. For this method, the calibrated plane was rotated twice; the gravity acceleration of the six sides of the MEMS-IMU was also calibrated by the practical values, and the whole calibration process was completed after solving developed model based on the least-squares method. Finally, the building mapping was then calibrated based on the error calibration model, and also the Gmapping algorithm. It was indicated from the experiments that the proposed model is useful for the error calibration, which can increase the prediction accuracy of yaw by 1-2° based on MEMS-IMU; the mapping results are more accurate when compared to the previous methods. The research outcomes can provide a practical basis for the construction of the building information modelling model.