Skip to main content

Accurate Computation of Quaternions from Rotation Matrices

  • Conference paper
  • First Online:
Advances in Robot Kinematics 2018 (ARK 2018)

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

Included in the following conference series:

Abstract

The main non-singular alternative to \(3\times 3\) proper orthogonal matrices, for representing rotations in \({\mathbb R}^3\), is quaternions. Thus, it is important to have reliable methods to pass from one representation to the other. While passing from a quaternion to the corresponding rotation matrix is given by Euler-Rodrigues formula, the other way round can be performed in many different ways. Although all of them are algebraically equivalent, their numerical behavior can be quite different. In 1978, Shepperd proposed a method for computing the quaternion corresponding to a rotation matrix which is considered the most reliable method to date. Shepperd’s method, thanks to a voting scheme between four possible solutions, always works far from formulation singularities. In this paper, we propose a new method which outperforms Shepperd’s method without increasing the computational cost.

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 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.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

References

  1. Goldstein, H.: Classical Mechanics. Addison-Wesley, Cambridge (1951)

    MATH  Google Scholar 

  2. Sarabandi, S., Thomas, F.: A survey on the computation of Euler parameters from rotation matrices (submitted for publication)

    Google Scholar 

  3. Shepperd, S.W.: Quaternion from rotation matrix. J. Guidance Control 1(3), 223–224 (1978)

    MATH  Google Scholar 

  4. Husty, M.L., Pfurner, M., Schröcker, H.-P., Brunnthaler, K.: Algebraic methods in mechanism analysis and synthesis. Robotica 25(6), 661–675 (2007)

    Article  Google Scholar 

  5. Hughes, P.C.: Spacecraft Attitude Dynamics. Wiley, Hoboken (1986)

    Google Scholar 

  6. Goldberg, D.: What every computer scientist should know about floating-point arithmetic. ACM Comput. Surv. 23(1), 5–48 (1991)

    Article  Google Scholar 

  7. Shuster, M.D., Natanson, G.A.: Quaternion computation from a geometric point of view. J. Astronaut. Sci. 41(4), 545–556 (1993)

    MathSciNet  Google Scholar 

  8. Angeles, J.: Fundamentals of Robotic Mechanical Systems. Theory, Methods, and Algorithms. Springer, New York (1997)

    Book  Google Scholar 

  9. Marsaglia, G.: Choosing a point from the surface of a sphere. Ann. Math. Stat. 43, 645–646 (1972)

    Article  Google Scholar 

  10. Huynh, D.Q.: Metrics for 3D rotations: comparison and analysis. J. Math. Imaging Vis. 35(2), 155–164 (2009)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgments

This work has been partially supported by the Spanish Ministry of Economy and Competitiveness through projects DPI2014-57220-C2-2-P, DPI2017-88282-P, and MDM-2016-0656.

We also want to express our gratitude to Antonio B. Martínez for the financial support of the first author, and to the anonymous reviewers whose comments have led to a number of valuable improvements in the text.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Federico Thomas .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer International Publishing AG, part of Springer Nature

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sarabandi, S., Thomas, F. (2019). Accurate Computation of Quaternions from Rotation Matrices. In: Lenarcic, J., Parenti-Castelli, V. (eds) Advances in Robot Kinematics 2018. ARK 2018. Springer Proceedings in Advanced Robotics, vol 8. Springer, Cham. https://doi.org/10.1007/978-3-319-93188-3_5

Download citation

Publish with us

Policies and ethics