Suppr超能文献

四元数到欧拉角的转换:一种直接、通用且计算效率高的方法。

Quaternion to Euler angles conversion: A direct, general and computationally efficient method.

机构信息

Aix-Marseille Université, CNRS, ISM, Marseille, France.

出版信息

PLoS One. 2022 Nov 10;17(11):e0276302. doi: 10.1371/journal.pone.0276302. eCollection 2022.

Abstract

Current methods of the conversion between a rotation quaternion and Euler angles are either a complicated set of multiple sequence-specific implementations, or a complicated method relying on multiple matrix multiplications. In this paper a general formula is presented for extracting the Euler angles in any desired sequence from a unit quaternion. This is a direct method, in that no intermediate conversion step is required (no quaternion-to-rotation matrix conversion, for example) and it is general because it works with all 12 possible sequences of rotations. A closed formula was first developed for extracting angles in any of the 12 possible sequences, both "Proper Euler angles" and "Tait-Bryan angles". The resulting algorithm was compared with a popular implementation of the matrix-to-Euler angle algorithm, which involves a quaternion-to-matrix conversion in the first computational step. Lastly, a single-page pseudo-code implementation of this algorithm is presented, illustrating its conciseness and straightforward implementation. With an execution speed 30 times faster than the classical method, our algorithm can be of great interest in every aspect.

摘要

目前将旋转四元数转换为欧拉角的方法要么是一组复杂的、特定于多个序列的实现,要么是一种依赖于多次矩阵乘法的复杂方法。本文提出了一种从单位四元数中提取任意期望序列的欧拉角的通用公式。这是一种直接的方法,因为不需要中间转换步骤(例如,不需要将四元数转换为旋转矩阵),而且它是通用的,因为它适用于所有 12 种可能的旋转序列。首先为提取 12 种可能序列中的角度(包括“规范欧拉角”和“Tait-Bryan 角”)开发了一个封闭公式。所得到的算法与一种流行的矩阵到欧拉角算法的实现进行了比较,该算法在第一个计算步骤中涉及四元数到矩阵的转换。最后,提出了此算法的单页伪代码实现,说明了其简洁性和直接实现。我们的算法执行速度比经典方法快 30 倍,在各个方面都具有很大的优势。

相似文献

1
Quaternion to Euler angles conversion: A direct, general and computationally efficient method.
PLoS One. 2022 Nov 10;17(11):e0276302. doi: 10.1371/journal.pone.0276302. eCollection 2022.
2
Improving the precision and speed of Euler angles computation from low-cost rotation sensor data.
Sensors (Basel). 2015 Mar 23;15(3):7016-39. doi: 10.3390/s150307016.
3
Unit quaternion description of spatial rotations in 3D electron cryo-microscopy.
J Struct Biol. 2020 Dec 1;212(3):107601. doi: 10.1016/j.jsb.2020.107601. Epub 2020 Oct 14.
7
Computationally Efficient 3D Orientation Tracking Using Gyroscope Measurements.
Sensors (Basel). 2020 Apr 15;20(8):2240. doi: 10.3390/s20082240.
8
Quaternions as a solution to determining the angular kinematics of human movement.
BMC Biomed Eng. 2020 Mar 23;2:5. doi: 10.1186/s42490-020-00039-z. eCollection 2020.
9
Analysis of passive motion characteristics of the ankle joint complex using dual Euler angle parameters.
Clin Biomech (Bristol). 2004 Feb;19(2):153-60. doi: 10.1016/j.clinbiomech.2003.10.005.
10
A spherical rotation coordinate system for the description of three-dimensional joint rotations.
Ann Biomed Eng. 2000 Nov-Dec;28(11):1381-92. doi: 10.1114/1.1326030.

引用本文的文献

2
Euler-angle norms for tooth rotation, torque and tip.
Orthod Craniofac Res. 2025 Feb;28(1):75-83. doi: 10.1111/ocr.12848. Epub 2024 Aug 27.
3
Attitude Algorithm of Gyroscope-Free Strapdown Inertial Navigation System Using Kalman Filter.
Micromachines (Basel). 2024 Feb 29;15(3):346. doi: 10.3390/mi15030346.

本文引用的文献

1
SciPy 1.0: fundamental algorithms for scientific computing in Python.
Nat Methods. 2020 Mar;17(3):261-272. doi: 10.1038/s41592-019-0686-2. Epub 2020 Feb 3.

文献AI研究员

20分钟写一篇综述,助力文献阅读效率提升50倍。

立即体验

用中文搜PubMed

大模型驱动的PubMed中文搜索引擎

马上搜索

文档翻译

学术文献翻译模型,支持多种主流文档格式。

立即体验