0% found this document useful (0 votes)
47 views32 pages

CLASE 5 ARQ ROB A2023

The document discusses spatial transformations and rotation matrices. It provides the rotation matrices for rotating about the x, y, and z axes. It describes properties of rotation matrices like each row/column being a unit vector and the dot product of rows/columns being 0. Translation operators and composite transformation matrices are also covered. Coordinate systems like cylindrical and spherical are defined using composite transformations of translation and rotation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views32 pages

CLASE 5 ARQ ROB A2023

The document discusses spatial transformations and rotation matrices. It provides the rotation matrices for rotating about the x, y, and z axes. It describes properties of rotation matrices like each row/column being a unit vector and the dot product of rows/columns being 0. Translation operators and composite transformation matrices are also covered. Coordinate systems like cylindrical and spherical are defined using composite transformations of translation and rotation.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

ARQUITECTURA DE

ROBOTS
Spatial transformations pt2

MC. Mario Angel Rico Mendez


Facultad de Ingeniería Mecánica y Eléctrica
Rotation matrix

01.09.23 Arquitectura de Robots 2


Rotación x,y,z

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  

01.09.23 Arquitectura de Robots 3


Rotation matrix
properties

01.09.23 Arquitectura de Robots 4


Rotation Matrix Properties
• Each row/column of a rotation matrix in a unit vector

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

01.09.23 Arquitectura de Robots 5


Rotation Matrix Properties
• The point product of each row of the rotation matrix is 0, as in
each column

cos  − sen 0
 
B R ( Z ,  ) =  sen cos 
A
0
 0 0 1 

A B =| A || B | cos 

01.09.23 Arquitectura de Robots 6


Rotation Matrix Properties
• A rotation matrix is not commutative

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

01.09.23 Arquitectura de Robots 7


Translation operators

01.09.23 Arquitectura de Robots 8


Translation operator
• Trans(X,p): Translation of "p" units along the x direction

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

Trans ( X , p )Trans (Y , p )Trans ( Z , p ) = Trans (Y , p )Trans ( Z , p )Trans ( X , p)


01.09.23 Arquitectura de Robots 9
X,Y,Z translation operator

1 0 0 px 
0 1 0 p y 
Trans ( X , p ) 
0 0 1 pz 
 
0 0 0 1

01.09.23 Arquitectura de Robots 10


Translation example
• According to the Figure, the
O'UVW system is translated a
vector p(6,-3,8) with respect to the
OXYZ system. Calculate the
coordinates (rx,ry,,rz) of the vector
r whose coordinates with respect
to the O'UVW system are r(-2,7,3).

01.09.23 Arquitectura de Robots 11


Example
• A frame {B} is rotated over X A 45 degrees and translated along
𝑋𝐴 , 𝑌𝐴 , 𝑍𝐴 by 1,2 y 3 units respectively. Let the position of the
point P in {B} be given by [3, 2,1]T
• Determine A P

A
P = BA R B P

A
P= A
B R( X , )  P B

01.09.23 Arquitectura de Robots 12


Solution

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 

01.09.23 Arquitectura de Robots 13


Solution

 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

01.09.23 Arquitectura de Robots 15


Transformation matrix

01.09.23 Arquitectura de Robots 16


• The main advantage of homogeneous matrices is their ability to
jointly represent position and orientation

01.09.23 Arquitectura de Robots 17


Rotation-translation example
• An OUVW system has been rotated 90° over the OX axis and subsequently
translated a vector p(8,-4,12) with respect to the OXYZ system.
• Calculate the coordinates (rx ,ry ,rz) of the vector with coordinates ruvw (-3,4,-11).

01.09.23 Arquitectura de Robots 18


Translation – rotation example
• An OUVW system has been moved a vector p(8,-4,12) with respect to the OXYZ
system and rotated 90° around the OX axis (Figure 3.16). Calculate the coordinates
(rx , ry , rz) of the coordinate vector rxyz(—3,4,-11).

01.09.23 Arquitectura de Robots 19


Composite rotation matrix
• The composite rotation matrix represents a rotation of an angle α
about Z-axis, followed by a rotation of an angle β about Y-axis,
followed by a rotation of a γ angle about the x-axis.

Rcom = R ( X ,  ) R (Y ,  ) R ( Z ,  )

01.09.23 Arquitectura de Robots 20


Cylindrical coordinate system
• Representation of the position in
another coordinate system
• Steps:
• 1. Start from the origin O, move r
units along the XA axis
• 2. Rotate counterclockwise, on ZA
an angle 𝜃
• 3. Move z units along ZA

01.09.23 Arquitectura de Robots 21


Cylindrical coordinate system
• Composite matrix
Tcom = Trans ( Z A , z ) Rot ( Z A ,  )Trans ( X A , r )

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

01.09.23 Arquitectura de Robots 22


Cylindrical coordinate system

cos  − sen 0 r cos  


 sen cos  
0 r sin  
Tcom =
 0 0 1 z 
 
 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 

01.09.23 Arquitectura de Robots 24


Spherical coordinate system

Tcom = Rot ( Z A ,  ) Rot (YA ,  )Trans ( Z A , r )

cos  − sin  0 0   cos  0 sin  0  1 0 0 0


 sin  cos  0  
0  0 1 0  
0  0 1 0 
0
Tcom =
 0 0 1 0   − sin  0 cos  0  0 0 1 z
   
 0 0 0 1  0 0 0 1  0 0 0 1

01.09.23 Arquitectura de Robots 25


Spherical coordinate system

cos  cos  − sin  sin  cos  r sin  cos  


 cos  sin  cos  sin  sin  
r sin  sin  
Tcom =
 − sin  0 cos  r cos  
 
 0 0 0 1 

• Donde
𝑞𝑥 = 𝑟 sin 𝛼 cos 𝛽
𝑞𝑦 = 𝑟 sin 𝛼 sin 𝛽
𝑞𝑧 = 𝑟 cos 𝛼

01.09.23 Arquitectura de Robots 26


Roll, pitch and yaw angles
• Orientation roll, pitch, yaw of the frame of an object

01.09.23 Arquitectura de Robots 27


• Angle Roll turn on X

01.09.23 Arquitectura de Robots 28


• Angle Pitch turn on Y

01.09.23 Arquitectura de Robots 29


• Yaw angle turn on Z

01.09.23 Arquitectura de Robots 30


Composite rotation matrix

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 

01.09.23 Arquitectura de Robots 31


Bibliography

• Barrientos, A., Peñin, L. F., Balaguer, C., & Aracil, R.


(2007). Fundamentos de robótica (Vol. 2, pp. 108-122). Madrid:
McGraw-Hill.

• Craig, J. J. (2006). Robótica, 3ra Edición. sl.

Arquitectura de Robots

You might also like