Skip to main content

Attitude Tracking from a Camera and an Accelerometer on Gyro-Less Devices

  • Conference paper
  • First Online:
Robotics Research (ISRR 2019)

Part of the book series: Springer Proceedings in Advanced Robotics ((SPAR,volume 20))

Included in the following conference series:

Abstract

In this paper, we address the problem of estimating the 3-DOF attitude of a mobile device using measurements from a camera and an accelerometer; two sensors that are typically found on most mobile devices. In contrast to previous approaches that combine measurements from both the gyroscopes and the accelerometers of an inertial measurement unit (IMU) to estimate attitude, we restrict ourselves to the case of gyro-less devices, of which over one billion are currently in use mostly in developing countries. Furthermore, and in order to support virtual and augmented reality (VR/AR) applications on low-cost devices with limiting processing, we introduce an efficient and robust algorithm where attitude is first estimated locally over a sliding window of three keyframes and subsequently is integrated within an extended Kalman filter (EKF) to track the device’s global orientation. Additionally, gravity direction estimates, which are extracted from the accelerometer measurements when the device is not in motion, are used to update the roll and pitch attitude estimates, as well as the accelerometer’s biases, all of which, as we prove, are observable. The accuracy of the proposed method is assessed using the MAV EuRoC datasets [3], and it is shown to outperform alternative approaches relying on only visual data or the IMU, over a wide range of motions and conditions. Lastly, the efficiency of our algorithm is demonstrated on a Huawei 7A cell phone where it is able to run at 20 Hz on a single 1.4 GHz ARM Cortex A53 processor core.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Although many of these devices may be equipped with magnetometers, we do not consider them since they are susceptible to disturbances and bias from local and global magnetic distortion.

  2. 2.

    In special cases, e.g., blurry images or dramatic changes in illumination that cause all feature tracks to drift, we extract ORB features on both images and perform brute-force matching [18].

  3. 3.

    If the inlier size returned by the 2pt RANSAC is less than \(80\%\) of the input size, the static condition on the rotation angle is not considered satisfied.

  4. 4.

    We employ the visual constraint (with \(\theta _s = 0.05\) deg) due to the fact that the accelerometer’s measurements are contaminated by noise and bias, which can make the static detection unreliable.

  5. 5.

    For simplicity, we consider the accelerometer and camera frames to coincide. In practice, we determine the relative orientation, \({}^{A}\mathbf {q}_{\scriptscriptstyle {C_{}}}\), offline.

  6. 6.

    In contrast to other sliding-window algorithms, in which the oldest keyframe is removed whenever a new keyframe is available, our method keeps accumulating keyframes and only uses the oldest 3 to create the structure.

  7. 7.

    Even though our actual state comprises the global-in-local attitude, we chose to perform the analysis using the local-in-global attitude due to its simpler form of time derivatives. Note that this is without loss of generality, since there exists a bijective mapping \({}^{G}\mathbf {s}_C = -{}^{C}\mathbf {s}_G\).

  8. 8.

    Note that we also compared our algorithm against the 2pt method of [11]. Its median error, however, even for the MH_02 dataset (easy) was over 75 deg; hence, we did not consider it further.

References

  1. Bazin, J.-C., et al.: Globally optimal line clustering and vanishing point estimation in Manhattan world. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 638–645, Providence, RI, 16–21 June 2012

    Google Scholar 

  2. Bouguet, J.-Y., et al.: Pyramidal implementation of the affine Lucas Kanade feature tracker description of the algorithm. Intel Corporation 5(1–10), 4 (2000)

    Google Scholar 

  3. Burri, M., et al.: The EuRoC micro aerial vehicle datasets. Int. J. Robot. Res. 35(10), 1157–1163 (2016)

    Article  Google Scholar 

  4. Craig, J.J.: Introduction to Robotics: Mechanics and Control. Pearson Prentice-Hall, Upper Saddle River (2005)

    Google Scholar 

  5. Do, T., Carrillo-Arce, L.C., Roumeliotis, S.I.: High-speed autonomous quadrotor navigation through visual and inertial paths. Int. J. Robot. Res. 38(4), 486–504 (2019)

    Article  Google Scholar 

  6. Do, T., Neira, L., Roumeliotis, S.I.: Attitude tracking from a camera and an accelerometer on gyro-less devices (2019). https://mars.cs.umn.edu/tr/attitude_gyroless.pdf

  7. Geiger, A., Lenz, P., Urtasun, R.: Are we ready for autonomous driving? the KITTI vision benchmark suite. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3354–3361, Providence, RI, 16–21 June 2012

    Google Scholar 

  8. Hartmann, W., Havlena, M., Schindler, K.: Visual gyroscope for accurate orientation estimation. In: Proceedings of the IEEE Winter Conference on Applications of Computer Vision, pp. 286–293, Waikoloa, HI, 5–9 January 2015

    Google Scholar 

  9. Hesch, J.A., Kottas, D.G., Bowman, S.L., Roumeliotis, S.I.: Camera-IMU-based localization: observability analysis and consistency improvement. Int. J. Robot. Res. 33(1), 182–201 (2014)

    Article  Google Scholar 

  10. Horn, B.: Closed-form solution of absolute orientation using unit quaternions. J. Opt. Soc. Am. A 4(4), 629–642 (1987)

    Article  Google Scholar 

  11. Kamran, D., Karimian, M., Nazemipour, A., Manzuri, M.T.: Online visual gyroscope for autonomous cars. In: Proceedings of the 24th Iranian Conference on Electrical Engineering (ICEE), pp. 113–118, Shiraz, Iran, 10–12 May 2016

    Google Scholar 

  12. Ke, T., Roumeliotis, S.: An efficient algebraic solution to the perspective-three-point problem. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 7225–7233, Honolulu, HI, 21–26 July 2017

    Google Scholar 

  13. Klein, G., Murray, D.: Parallel tracking and mapping for small AR workspaces. In: Proceedings of the 2007 6th IEEE and ACM International Symposium on Mixed and Augmented Reality, ISMAR 2007, pp. 1–10, Nara, Japan, 13–16 November 2007

    Google Scholar 

  14. Lee, J.-K., Yoon, K.-J.: Real-time joint estimation of camera orientation and vanishing points. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1866–1874, Boston, 7–12 June 2015

    Google Scholar 

  15. Lefferts, E.J., Markley, F.L., Shuster, M.D.: Kalman filtering for spacecraft attitude estimation. J. Guidance Control Dyn. 5(5), 417–429 (1982)

    Article  Google Scholar 

  16. Mahony, R., Hamel, T., Pflimlin, J.: Nonlinear complementary filters on the special orthogonal group. IEEE Trans. Autom. Control 53(5), 1203–1218 (2008)

    Article  MathSciNet  Google Scholar 

  17. Mirzaei, F.M., Roumeliotis, S.I.: Optimal estimation of vanishing points in a Manhattan world. In: Proceedings of the 2011 International Conference on Computer Vision, pp. 2454–2461, Barcelona, 6–13 November 2011

    Google Scholar 

  18. Mur-Artal, R., Montiel, J.M.M., Tardos, J.D.: ORB-SLAM: a versatile and accurate monocular SLAM system. IEEE Trans. Robot. 31(5), 1147–1163 (2015)

    Article  Google Scholar 

  19. Rosten, E., Drummond, T.: Machine learning for high-speed corner detection. In: Leonardis, A., Bischof, H., Pinz, A. (eds.) ECCV 2006. LNCS, vol. 3951, pp. 430–443. Springer, Heidelberg (2006). https://doi.org/10.1007/11744023_34

    Chapter  Google Scholar 

  20. Schmidt, S.F.: Application of state-space methods to navigation problems. In: Advances in Control System, vol. 3, pp. 293–340 (1966)

    Google Scholar 

  21. Stewenius, H., Engels, C., Nistér, D.: Recent developments on direct relative orientation. ISPRS J. Photogrammetry Remote Sens. 60(4), 284–294 (2006)

    Article  Google Scholar 

  22. Trawny, N., Roumeliotis, S.I.: Indirect Kalman filter for 3D attitude estimation. Technical Report, January 2005

    Google Scholar 

Download references

Acknowledgements

This work was supported by the University of Minnesota and the National Science Foundation (IIS-1328722).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Tien Do .

Editor information

Editors and Affiliations

1 Electronic supplementary material

Below is the link to the electronic supplementary material.

Supplementary material 1 (ppt 139 KB)

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Do, T., Neira, L., Yang, Y., Roumeliotis, S.I. (2022). Attitude Tracking from a Camera and an Accelerometer on Gyro-Less Devices. In: Asfour, T., Yoshida, E., Park, J., Christensen, H., Khatib, O. (eds) Robotics Research. ISRR 2019. Springer Proceedings in Advanced Robotics, vol 20. Springer, Cham. https://doi.org/10.1007/978-3-030-95459-8_29

Download citation

Publish with us

Policies and ethics