Understanding euler_from_quaternion in tf.transformations

asked 2020-09-14 11:18:59 -0500

yetanotherbeginner gravatar image

I have troubles understanding euler_from_quaternion in tf.transformations and how the output relates to rotations about axes.

Given the following function call

 angles = euler_from_quaternion([q.x, q.y, q.z, q.w], axes='ryzx')

and

 q = 0 <0.7071,0.7071,0>

I would expect that I get rotation around y (pi), z (pi/2) and x (0) axis, as according to http://docs.ros.org/kinetic/api/tf/ht... 'ryzx' means that rotations are in rotating frame and succeeding as in yzx order.

However, I get (-0.0, 1.5707963267948966, 3.141592653589793) in the opposite order.

What should I enter as axis parameter to get standard roll pitch yaw?

edit retag flag offensive close merge delete

Comments

Could it be that I misunderstood what is meant by static and rotating frame?

yetanotherbeginner gravatar image yetanotherbeginner  ( 2020-09-15 01:54:03 -0500 )edit