CLASE 5 ARQ ROB A2023
CLASE 5 ARQ ROB A2023
ROBOTS
Spatial transformations pt2
cos − sen 0 1 0 0
B R ( Z , ) = sen cos B R( X , ) = 0 cos − sen
A A
0
0 0 1 0 sen cos
cos 0 sen
A
R (Y , ) = 0 1 0
B
− sen 0 cos
cos − sen 0
B R ( Z , ) = sen cos
A
0
0 0 1
cos + − sen + 0 = 1
2 2 2
cos + sen + 0 = 1
2 2 2
cos − sen 0
B R ( Z , ) = sen cos
A
0
0 0 1
A B =| A || B | cos
R( X , 1 ) R(Y , 2 ) R(Y , 2 ) R( X , 1 )
The inverse of the rotation matrix is its transpose
R −1 ( X , 1 ) = RT ( X , 1 )
A
B T = BA T −1
1 0 0 px 1 0 0 0
0 0 0
1 0 1 0 p y
Trans ( X , p ) Trans (Y , p)
0 0 1 0 0 0 1 0
0 0 0 1 0 0 0 1
• The operator is commutative
1 0 0 px
0 1 0 p y
Trans ( X , p )
0 0 1 pz
0 0 0 1
A
P = BA R B P
A
P= A
B R( X , ) P B
A
P = BA T B P
1 0 0 1 3
0 cos(45) − sin(45) 2 2
A
P = BA T B P =
0 sin(45) cos(45) 3 1
0 0 0 1 1
4
2 cos(45) − sin(45) + 2
A
P = BA T B P =
2sin(45) + cos(45) + 3
1
4
2.707
A
P = BA T B P =
5.121
1
01.09.23 Arquitectura de Robots 14
Exercise
• A frame {B} is rotated over Z A 55 degrees and moved along
X A , YA , Z A by 5,2 y 1 units respectively. Let be the position of the
point P on {B} given by [3,5,1]T
• Determine
A
P = BA R B P
A
P= T P
A
B
B
Rcom = R ( X , ) R (Y , ) R ( Z , )
1 0 0 0 cos − sen 0 0 1 0 0 r
0 1 0
0 sen cos 0
0 0 1 0
0
Tcom =
0 0 1 z 0 0 1 0 0 0 1 0
0 0 0 1 0 0 0 1 0 0 0 1
• Donde qx = r cos
q y = r sin
qy = z
01.09.23 Arquitectura de Robots 23
Spherical coordinate system
• Steps:
• 1. Start from the origin O,
move r units along the ZA axis
• 2. Rotate counterclockwise,
over YA an angle
• 3. Rotate counterclockwise, on
ZA an angle
• Donde
𝑞𝑥 = 𝑟 sin 𝛼 cos 𝛽
𝑞𝑦 = 𝑟 sin 𝛼 sin 𝛽
𝑞𝑧 = 𝑟 cos 𝛼
A
B Rcom:RPY = Rot ( Z A , ) Rot (YA , ) Rot ( X A , )
c c −c s + s s c s s + c s c
A
Rcom:RPY
= c s c c + s s s
− s c + c s s
B
− s c s c c
Arquitectura de Robots