Attitude Estimation Algorithm of Portable Mobile Robot Based on Complementary Filter
<p>NERVA LG Robot [<a href="#B18-micromachines-12-01373" class="html-bibr">18</a>].</p> "> Figure 2
<p>Definition of navigation and carrier coordinate system.</p> "> Figure 3
<p>Schematic diagram of body attitude angles (Roll–Pitch–Yaw).</p> "> Figure 4
<p>Principle of classic complementary filtering.</p> "> Figure 5
<p>Mahony complementary filtering algorithm.</p> "> Figure 6
<p>Data from gyroscope and accelerometer.</p> "> Figure 7
<p>Attitude estimation by integrating gyroscope data.</p> "> Figure 8
<p>Attitude estimation by cooperating with accelerometers and magnetometers.</p> "> Figure 9
<p>Attitude estimated by the PixHawk flight control hardware based on PX4-CF.</p> "> Figure 10
<p>Attitude estimation: (<b>a</b>) quaternion extended Kalman filtering (EKF); (<b>b</b>) linear complementary filtering (CCF); (<b>c</b>) Mahony complementary filtering (Mahony).</p> ">
Abstract
:1. Introduction
- (1)
- Attitude estimation is a basic and significant part in robot motion control, whose speed and accuracy will directly affect the stability and reliability of the robot’s motion. This paper compares the quaternion extended Kalman filtering, linear complementary filtering, and Mahony complementary filtering algorithms in the field of attitude estimation. The attitude precision and computational cost is discussed.
- (2)
- Portable mobile robots can be used in anti-terrorism, mines, disaster rescue, field ground pipeline inspections, and security inspections. Confronted with the problem of high computational cost when using extended Kalman filter, this paper introduces the Mahony filtering algorithm (widely used in flight attitude estimation) into portable mobile robots and validates that this algorithm is suitable for low-cost embedded systems.
2. System Descriptions
2.1. Definition of Coordinates and Attitude Description
2.2. Mathematical Model of Sensors
3. Complementary Filtering Algorithms
3.1. Linear Complementary Filtering
3.2. Mahony Complementary Filtering
4. Experimental Simulations
5. Conclusions
- (1)
- Based on the STM32F107 hardware platform, integrating the data from the gyroscope directly to get the attitude of the robot will result in big errors and even the estimated angles will diverge owing to the low-frequency noise. If the attitude angles are obtained by orthogonally decomposing the acceleration, high-frequency noise will appear, which will result in angles inaccuracy.
- (2)
- Based on the simulation experiments when using the quaternion extended Kalman filtering algorithm, due to the randomness of the initial value in the algorithm, the estimated value of the attitude angles is quite different from the true value at the beginning. However, as the iterations increase, the estimated value of the attitude angles gradually converge to the true value, with a fast convergence rate.
- (3)
- Based on the simulation experiments when using the complementary filtering algorithm, CCF is less impressive, but it has a simple calculation with fast response. Mahony complementary filtering inherits the advantages of EKF, the convergence rate is fast, and the estimated attitude angles quickly converge to the true value at initial.
- (4)
- For the absolute mean error, there is little difference between quaternion extended Kalman filtering and the Mahony complementary filtering algorithm, but the absolute mean error of the linear complementary algorithm is bigger than that of these two algorithms.
- (5)
- In terms of the time consumption during attitude estimation, there is little difference between the linear and Mahony complementary filtering algorithms. However, the Mahony complementary filter algorithm is nearly 10 times as fast as the quaternion Kalman filter.
Author Contributions
Funding
Conflicts of Interest
References
- Peng, X.D.; Zhang, T.M.; Li, J.Y. Attitude estimation algorithm of agricultural small-UAV based on sensors fusion and calibration. J. Acta Autom. Sin. 2015, 4, 854–860. (In Chinese) [Google Scholar]
- Li, B.; Pan, H.H.; Chen, L.; Mao, H.L. A data fusion algorithm for improving the detection precision of the robot end attitude. J. Mach. Des. Manuf. 2015, 11, 103–107. (In Chinese) [Google Scholar]
- Qin, Y.Y. Inertial Navigation; Science Press: Beijing, China, 2006. (In Chinese) [Google Scholar]
- Grewal, M.S.; Weill, L.R.; Andrews, A.P. Global Positioning Systems. Inertial Navigation and Integration; Wiley: New York, NY, USA, 2001. [Google Scholar]
- Wang, X.Y.; Yan, J.H.; Qin, Y. Attitude estimation based on extended Kalman filter for a two-wheeled robot. J. Harbin Inst. Technol. 2007, 39, 1920–1924. [Google Scholar]
- Lu, Y.J.; Chen, Y.D.; Li, Y.L. Experimental Study on Attitude Algorithm of Quadrotor Aircraft. J. Electron. Opt. Control 2019, 26, 45–50. (In Chinese) [Google Scholar]
- Choukroun, D.; Bar-Itzhack, I.Y.; Oshman, Y. Novel quaternion Kalman filter. J. Aerosp. Electron. Syst. IEEE Trans. 2006, 42, 174–190. [Google Scholar] [CrossRef] [Green Version]
- Bao, Y.Q.; Chen, G.G.; Wu, K.; Wang, X.R. Research on Attitude Determination Using Magnetometers and MEMS Inertial Sensors. J. Acta Armamentarii 2008, 29, 1227–1231. (In Chinese) [Google Scholar]
- Xu, M.M.; Bu, X.Z.; Yang, H.Q. Dual-Band Infrared and Geomagnetic Fusion Attitude Estimation Algorithm Based on IMMEKF. J. IEEE Trans. Ind. Electron. 2020, 68, 11286–11295. [Google Scholar] [CrossRef]
- Wang, X.X.; Fan, Q.; Huang, H. Overview of deterministic sampling filtering algorithms for nonlinear system. J. Control Decis. 2012, 6, 801–812. [Google Scholar]
- Liang, S.; Xu, X.S.; Huang, Y.L. Application of Sage-Husa Adaptive Filter to Integrated Navigation System. J. Test Meas. Technol. 2012, 25, 327–331. [Google Scholar]
- Li, G.; Zhao, D.Y.; Xie, R.C.; Han, H.L.; Zong, C.F. Vehicle State Estimation Based on Improved Sage-Husa Adaptive Extended Kalman Filtering. J. Automot. Eng. 2015, 37, 1426–1432. [Google Scholar]
- Zhang, X.J.; Xu, Z.H.; Yang, S.P. Approach to Robot Attitude Algorithm. J. Mach. Des. Manuf. 2018, 6, 246–249. [Google Scholar]
- Li, T.C.; Fan, H.Q.; Sun, S.D. Particle filtering: Theory, approach, and application for multi-target tracking. J. Acta Autom. Sin. 2015, 12, 1981–2002. [Google Scholar]
- Liang, Y.D.; Cheng, M.; He, F.B. Attitude estimation of a quad- rotor aircraft based on complementary filter. J. Transducer Microsyst. Technol. 2011, 30, 56–61. [Google Scholar]
- Zhang, R.H.; Jia, H.G.; Chen, T. Attitude solution for strapdown inertial navigation system based on quaternion algorithm. J. Opt. Precis. Eng. 2008, 16, 1963–1970. [Google Scholar]
- Chen, M.Y.; Xie, Y.J.; Chen, Y.D. Attitude estimation of MEMS based on improved quaternion complementary filter. J. Electron. Meas. Instrum. 2015, 29, 1391–1397. [Google Scholar]
- D, K. Nexter rolls out new Nerva UGV. J. Jane’s Int. Def. Rev. IHS Jane’s Int. Def. Rev. 2014, 47, 27. [Google Scholar]
- Zhang, S.Q.; Zhao, Y.W. Attitude Algorithm of Portable Mobile Robot. J. Microcomput. Inf. 2007, 23, 188–189. [Google Scholar]
- Zhao, X.; Du, P.X.; Li, H.; Yang, H.M. Attitude Estimation System based on MEMS accelerometer and gyroscope. J. Railw. Comput. Appl. 2012, 21, 15–18. [Google Scholar]
- Jung, D.; Tsiotras, P. Inertial Attitude and Position Reference System Development for a Small UAV. AIAA 2007. [Google Scholar] [CrossRef] [Green Version]
- Premerlani, W.; Bizard, P. Direction Cosine Matrix IMU: Theory. Diy Drone USA 2009. Available online: https://www.researchgate.net/publication/265755808_Direction_Cosine_Matrix_IMU_Theory (accessed on 27 September 2021).
- Mahony, R.; Hamel, T.; Pflimlin, J.M. Complementary filter design on the special orthogonal group SO(3). In Proceedings of the 44th IEEE Conference on Decision and Control, Seville, Spain, 15 December 2005. [Google Scholar]
- Mahony, R.; Hamel, T.; Pflimlin, J.M. Nonlinear complementary filters on the special orthogonal group. J. IEEE Trans. Autom. Control 2008, 53, 1203–1218. [Google Scholar] [CrossRef] [Green Version]
- Meng, W.; Guan, L.; Gao, Y.; Xu, X.; Xiong, D. UAV Attitude Measurement based on Enhanced Mahony Complementary Filter. In Proceedings of the 2018 IEEE International Conference on Mechatronics and Automation (ICMA), Changchun, China, 5 August 2018. [Google Scholar]
- Battiston, A.; Sharf, I.; Nahon, M. Attitude estimation for collision recovery of a quadcopter unmanned aerial vehicle. J. Int. J. Robot. Res. 2019, 38, 1286–1306. [Google Scholar] [CrossRef] [Green Version]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Liu, M.; Cai, Y.; Zhang, L.; Wang, Y. Attitude Estimation Algorithm of Portable Mobile Robot Based on Complementary Filter. Micromachines 2021, 12, 1373. https://doi.org/10.3390/mi12111373
Liu M, Cai Y, Zhang L, Wang Y. Attitude Estimation Algorithm of Portable Mobile Robot Based on Complementary Filter. Micromachines. 2021; 12(11):1373. https://doi.org/10.3390/mi12111373
Chicago/Turabian StyleLiu, Mei, Yuanli Cai, Lihao Zhang, and Yiqun Wang. 2021. "Attitude Estimation Algorithm of Portable Mobile Robot Based on Complementary Filter" Micromachines 12, no. 11: 1373. https://doi.org/10.3390/mi12111373
APA StyleLiu, M., Cai, Y., Zhang, L., & Wang, Y. (2021). Attitude Estimation Algorithm of Portable Mobile Robot Based on Complementary Filter. Micromachines, 12(11), 1373. https://doi.org/10.3390/mi12111373