[Python] Quat to Euler
C++ μμ λ§ ν¬μ€ν
νλλ°, νμ΄μ¬λ λΉ λ₯΄κ² λ§λ€κΈ° μν΄μ μ μ΄λλ€
from tf.transformations import euler_from_quaternion, quaternion_from_euler
q_list = [q.x, q.y, q.z, q.w]
(r, p, y) = euler_from_quaternion(q_list)
Leave a comment