Код: Выделить всё
from scipy.spatial.transform import Rotation
axis_angle = #some axis * angle vector
r = Rotation.from_rotvec(axis_angle)
Код: Выделить всё
yaw, _, _ = r.as_euler('zyx')
# or
_, _, yaw = r.as_euler('zyx')
Код: Выделить всё
_, _, yaw = r.as_euler('ZYX')
Подробнее здесь: https://stackoverflow.com/questions/767 ... nsic-euler