[SciPy-User] The different results given by scipy and https://quaternions.online/ when converting Euler angles to Quaternion representation.
Hongyi Zhao
hongyi.zhao at gmail.com
Tue Oct 27 09:19:30 EDT 2020
Hi,
I try to convert between Euler angle and Quaternion representations.
But I obtained different results when using scipy and the online
converter (https://quaternions.online/). See following for detailed
info:
The results obtained from scipy:
In [14]: from scipy.spatial.transform import Rotation as R
In [15]: r = R.from_euler('xyz', [90, 45, 30], degrees=True)
In [17]: r.as_quat()
Out[17]: array([ 0.56098553, 0.43045933, -0.09229596, 0.70105738])
The results given by the online converter (https://quaternions.online/):
w: 0.561
x: 0.701
y: 0.092
z: 0.430
Any hints for this problem will be highly appreciated?
Regards,
HY
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao at gmail.com>
Theory and Simulation of Materials, Xingtai Polytechnic College
NO. 552 North Gangtie Road, Xingtai, China
More information about the SciPy-User
mailing list