understanding active_matrix_from_extrinsic_euler_... #169
-
Hello First thanks for providing this code, and the very good documentation. Finding the correct euler convention for a given software can become messy. I really appriciate "Transformation Ambiguities and Conventions" but I may not sure to fully understand it yet. (so I may be wrong) I just want to look at the difference between (for instance) those two transforms I agree with the implementation of the xyz one, but not of the yxz one. To make it coherent I need to change your implementation: R = active_matrix_from_angle(2, gamma).dot(
active_matrix_from_angle(0, beta)).dot(
active_matrix_from_angle(1, alpha)) by R = active_matrix_from_angle(2, gamma).dot(
active_matrix_from_angle(0, alpha)).dot(
active_matrix_from_angle(1, beta) does it make sense or I misinterpreted the conventions ... ? Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I think I don't really understand the question. I guess by basis you mean the axis of rotation? 0 -> x, 1, -> y, 2 -> z? The order of concatenation of the matrices is determined by the order of rotation axes (xyz, yxz, ...) and whether it is an extrinsic or an intrinsic convention. The yxz convention means that the first angle (alpha) rotates around the y-axis, the second angle (beta) rotations around the x-axis, and the third angle (gamma) rotates around the z-axis. When the extrinsic convention is used, you concatenate rotation matrices from right to left. I don't know why you would want to change the order of arguments. |
Beta Was this translation helpful? Give feedback.
I think I don't really understand the question. I guess by basis you mean the axis of rotation? 0 -> x, 1, -> y, 2 -> z?
The order of concatenation of the matrices is determined by the order of rotation axes (xyz, yxz, ...) and whether it is an extrinsic or an intrinsic convention.
The yxz convention means that the first angle (alpha) rotates around the y-axis, the second angle (beta) rotations around the x-axis, and the third angle (gamma) rotates around the z-axis. When the extrinsic convention is used, you concatenate rotation matrices from right to left.
I don't know why you would want to change the order of arguments.