Notes_11_02 1 of 10 Three-Dimensional Coordinate Transformations x i x i a i 11 a i 12 y i y i a i 21 a i 22 z z a i i i 31 a i 32 P ri P ri A i s i ' P s i P A i s i ' P s i ' P A i T s i P [A] matrices are orthonormal [A] -1 = [A] T ● all columns are unit vectors ● all columns are mutually orthogonal ● all rows are unit vectors ● all rows are mutually orthogonal ● det [A] = +1 Single rotations 0 1 A X 0 C X 0 S X C Y A Y 0 S Y C z A Z S Z 0 0 S X C X 0 S Y 1 0 0 C Y S Z C Z 0 0 0 1 a i 13 x i a i 23 y i a i 33 z i 'P Notes_11_02 2 of 10 Coordinate Frames at the Corners of a Wedge Adapted from Introduction to Robotics, J.J. Craig, Addison-Wesley, 1989 y3’ z3’ x3’ c z 1’ y1’ x2’ a z2’ x1’ y2’ b x 1 b 1 0 0 x 2 ' y1 0 0 1 0 y 2 z 0 0 0 1 z 1 2 x 1 b 0 S C x 3 ' y1 0 0 C S y 3 z a 1 0 0 z 3 1 z4’ z5 y6’ x5’ x4’ x6’ y5’ c z6’ a y4’ b x 4 ' 0 1 0 0 x 5 ' y 4 c 0 0 1 y 5 z a 0 1 0 z 4 5 0 x 6 ' x 4 ' b C S y 4 c S C 0 y 6 z a 0 0 1 z 6 4 Notes_11_02 3 of 10 Euler Angles Euler sequences – ZXZ (original), ZYZ, YXY, YZY, XYX, XZX ZXZ sequence (1 about global z - 2 about intermediate x - 3 about local z) C1 A Z A X A Z S1 0 S1 C1 0 0 1 0 0 0 C X 1 0 S X S1C 2S 3 C1C 3 A Z A X A Z C1C 2S3 S1C3 S 2S 3 0 C 3 S X S 3 C X 0 S 3 C 3 0 S1C 2 C 3 C1S 3 C1C 2 C 3 S1S 3 S 2 C 3 0 0 1 S1S 2 C1S 2 C 2 2 a cosa 33 1 a tan 2 a 13 / a 23 3 a tan 2a 31 / a 32 fails for 2 0 and ZYZ sequence YXY sequence YZY sequence XYX sequence XZX sequence Notes_11_02 4 of 10 Cardan-Bryant-Tait sequences – XYZ, XZY, YXZ, YZX, ZXY, ZYX XYZ sequence (x about global x - y about intermediate y - z about local z) C Y C z A X A Y A Z S XS Y C z C XS z C X S Y C z S X S z C Y S z S Y S X S Y S z C X C z C X S Y S z S X C z S X C Y C X C Y Y a sin a 13 Z a tan 2 a 12 / a 11 X a tan 2 a 23 / a 33 fails for Y / 2 and 3 / 2 ZYX sequence (z about global z - y about intermediate y - x about local x) C X C Y A Z A Y A X S X C Y S Y C X S Y S z S X C z S X S Y S z C X C z C Y S z C X S Y C z S X S z S X S Y C z C X S z C Y C z Y a sin a 31 Z a tan 2a 32 / a 33 X a tan 2a 21 / a 11 fails for Y / 2 and 3 / 2 XZY sequence (x about global x - z about intermediate z - y about local y) C Y C Z A X A Z A Y C X C YS Z S XS Y S X C Y S Z C X S Y S Z C X C Z S X C Z S Y C Z C X S Y S Z S X C Y S X S Y S Z C X C Y Z a sin a 12 X a tan 2a 32 / a 23 Y a tan 2a 13 / a 11 fails for Z / 2 and 3 / 2 YZX sequence YXZ sequence ZXY sequence Notes_11_02 5 of 10 Chasles’ Angle and Euler Parameters u 2 V + C uvV - wS uwV + vS A uvV + wS v 2 V + C vwV - uS uwV - vS vwV + uS w 2 V + C Rotation about unit direction u C ( tr A 1) / 2 u a 32 a 23 1 û v a 13 a 31 w 2S a a 21 12 fails for 0 and Euler parameters (unit quarternion) e 0 C 2 e uS p 1 2 e 2 vS 2 e 3 wS 2 e 02 e12 12 A 2e1e 2 e 0 e 3 e1 e 3 e 0 e 2 e 0 ( tr A 1) / 4 2 pT p e 02 e12 e 22 e32 1 e1 e 2 e 0 e 3 e 02 e 22 12 e 2 e 3 e 0 e1 e1 e 3 e 0 e 2 e 2 e 3 e 0 e1 e 02 e 32 12 e1 a 32 a 23 1 e e 2 a 13 a 31 e 4e1 a a 3 21 12 fails for e 0 0 at Notes_11_02 e1 E e 2 e 3 A EG T e0 e3 e3 e2 e0 e1 e1 G e 2 e 3 e2 e1 e 0 2e1e 2 e 0 e 3 e 02 e12 e 22 e 32 2e 2 e 3 e 0 e1 e 02 e12 e 22 e 32 2e1e 2 e 0 e 3 2e1e 3 e 0 e 2 EET GGT I 3 ET E G T G I 4 ppT Ep Gp 0 Velocity A 2Ep 2E p A T 2G p 2G p p 12 ET 12 GT pT p p T p 0 ~ A AT 2EE T 2E ET ~ AT A 2G G T G T 2 G A ~ A A~ 2EG T T 2 E G 6 of 10 e0 e3 - e3 e2 e0 - e1 - e2 e1 e 0 2e1e 3 e 0 e 2 2e 2 e 3 e 0 e1 e 02 e12 e 22 e 32 Notes_11_02 Acceleration A 2Ep AT 2G p p 12 ET 12 E T 12 ET 14 pT p 12 GT 12 G T 12 GT 14 p T p T p 14 T 14 14 2 T E p G p 0 A 2E G T 2E G EG T E GT T T GT 2 E G 2E 7 of 10 Notes_11_02 8 of 10 Jerk A A~ ~ 2Ep 2E p 2Ep 12 14 T AT AT ~ 2G p 2G p 2G p 12 ~ 14 T p 12 ET E T 12 E T T ~ 12 12 T 34 pT 12 E p 12 G T G T 12 G T G G T 1 2 G T 12 ~ 14 34 p T G G T 0 A 2EG T T 0 G p 0 Gp 0 G pG p 0 T 2 E T 2 E GT 4 E T 2 E G T G G 4 E G EGT E G T EGT E G T Notes_11_02 9 of 10 Numerical partial derivatives of rotation matrices with respect to Euler parameters can produce different results e 02 e12 12 A 2e1e 2 e 0 e 3 e1 e 3 e 0 e 2 A EG T e1 e 2 e 0 e 3 e 02 e 22 12 e 2 e 3 e 0 e1 e 02 e12 e 22 e 32 2e1e 2 e 0 e 3 2e1e 3 e 0 e 2 e1 e 3 e 0 e 2 e 2 e 3 e 0 e1 e 02 e 32 12 2e1e 2 e 0 e 3 e e12 e 22 e 32 2e 2 e 3 e 0 e1 2 0 numerical a 11 0 e 3 2e1e 3 e 0 e 2 2e 2 e 3 e 0 e1 e 02 e12 e 22 e 32 numerical a 11 2e 3 e 3 Notes_11_02 Rodriguez Parameters R tan û 2 10 of 10