Week 2 Lecture 2 Fundamental Rotations
Week 2 Lecture 2 Fundamental Rotations
MECH950
Lecture Outline
2
A Robotic Manipulator
• A robotic manipulator can
be modelled as a chain of
rigid bodies called links.
• The links are
interconnected to one Link
another by joints.
• One end of the chain of
links is fixed to a base, Joint
Tool
while the other end is free
to move. or
End-effector
• The mobile end has a
flange, or face plate, with a
tool, or end-effector,
attached to it. Base
• The joints can be Revolute or
prismatic.
3
Aim of modelling a robotic arm
4
Refresher: Vector & Matrix
n Column vector
é px ù
P = êê p y úú = [ p x , p y , p z ]T
êë p z úû
n A column vector is represented by arranging its
components in a n x1 array and enclosing them in
square brackets.
n The superscript T denotes the transpose of a vector or a
matrix.
n The transpose is obtained by interchanging the rows
with the columns.
5
Refresher: Vector & Matrix
n Matrix
AB ¹ BA
6
Refresher: Dot Product
7
Refresher: Dot Product-Properties
1. x.x ³ 0
2. x.x = 0 Û x = 0
3. x. y = y.x
4. (ax + by ).z = a ( x.z ) + b ( y.z )
8
Refresher: Orthogonal Vectors
9
Refresher: Norm of a Vector
n
p = ( p. p)1/ 2 = (å pk2 )1/ 2
k =1
10
Refresher: Orientation
n Let p and q be arbitrary vectors in R3 and let θ be the
angle from p to q then
p.q = p q cosq
n Hence, the dot product can be interpreted as a measure
of angle between two vectors.
11
Refresher: Cross Product
n The cross product of two vectors u and v is a vector
orthogonal to u and v in the right-hand sense
ìé i j k ù ü éu y v z - u z v y ù
ïê úï ê ú
w = det íêu x uy u z ú ý = êu z vx - u x vz ú , u ´ v = u v sin q
ïê v vy v z úû ïþ êëu x v y - u y v z úû
îë x
12
Orthogonal Coordinates
3 p
r
p3 r 2
p1
p2
O
r1
Orthogonal coordinates
13
Tool and world co-ordinate frames
For the purpose of modelling, lets consider the following
manipulator that only consists of a tool.
n P-r1r2r3 is the tool coordinate frame, an orthogonal frame.
n The vectors r3, r2 and r1 are called the approach vector, the
sliding vector and the normal vector, respectively.
n The vectors n, t, and b are the unit vectors along r1, r2 and r3.
n O-XYZ is the world coordinate frame
b
n
Z
r1
r3
P Y
r2
t
0 X
14
Orientation of Tool
n The orientation of the tool can be defined in terms of
the axes of tool co-ordinate frame relative to the world
co-ordinate frame.
n Let’s assume that the tool is located as shown below.
The tool coordinate is defined in terms of the unit
vectors n, t, b, pointing in the directions of r1, r2, r3
defined relative to the world co-ordinate frame.
The orientation of
the tool is defined by
the rotation matrix:
R = [n t b]
15
Rotation Matrix
R = [n t b]
é nx tx bx ù Where:
R = êên y ty by úú é nx ù ét x ù ébx ù
êë nz tz bz úû n = êên y úú t = êêt y úú b = êêby úú
êë nz úû êët z úû êëbz úû
16
Fundamental Rotation Matrix about X Axis
é1 ù é 0 ù é 0 ù
ê ú ê ú ê ú b Z
n = ê0 ú , t = êcos θ ú , b = ê-sin θ ú
êë0 úû êësin θ úû êë cos θ úû θ
r3 t
r2 sinθ
cosθ Y
r1
é1 0 0 ù n
ê ú
Rx ( θ ) = ê0 cos θ -sin θ ú X
êë0 sin θ cos θ úû
17
Fundamental Rotation Matrix - Other Axes
é cosq 0 sinq ù
About Y axis: ê ú
RY (q ) = ê 0 1 0 ú
êë - sin q 0 cos q úû
écos q - sin q 0 ù
= ê ú
About Z axis: Rz (q ) êsinq cos q 0ú
êë 0 0 1 úû
Rx(q), Ry(q), and Rz(q) are known as 1st , 2nd , and 3rd fundamental rotations.
18
Fundamental Rotation Matrix - Rules
nThe kth row and the kth column are identical to the kth
row and the kth column of the identity matrix I.
19
Trigonometric Symbols representation
In mathematical models of robotic manipulators, the
trigonometric functions are represented according to the
table below:
Symbol Description
Sθ sin θ
Cθ cos θ
Sk sin θ k
Ck cos θ k
Skj sin (θ k+ θ j)
Ckj cos (θ k+ θ j)
Sk-j sin (θ k- θ j)
Ck-j cos (θ k- θ j)
atan2 (y, x) four-quadrant arctan (y/x)
Vθ 1-cos θ
20
Properties of Rotation Matrix
n =1 t =1 b =1
All three are mutually perpendicular
n×t = 0 t ×b = 0 b×n = 0
21
Properties of Rotation Matrix – cont.
é nx tx bx ù énx ny nz ù
-1 ê ú
R = RT R = êên y ty by úú RT = ê t x ty tz ú
êë nz tz bz úû êbx by bz úû
ë
22
Inverse Rotation
n Let’s assume point P is defined in the co-ordinate frame r1r2r3 by
[P]r. Then [P]x, the co-ordinate of P relative to XYZ co-ordinate
frame. If r1r2r3 is rotated about the X axis of XYZ co-ordinate frame
by angle q:
[ P]x = R[ P]r
é1 0 0 ù
R1 (q ) = êê0 Cq - Sq úú
êë0 Sq Cq úû
n At the same, time, the co-ordinate frame r1r2r3 can be rotated back
to of XYZ co-ordinate frame by rotating by angle - q about the X
axis: é1 0 0 ù
R1 (-q ) = êê0 Cq Sq úú = RT R -1 = RT
êë0 - Sq Cq úû RT (q ) = R(-q )
As a result: [ P]r = RT [ P]x
23
Composite Rotations
24
Algorithm for Composite Rotations
25
Yaw-Pitch-Roll Transformation (X-Y-Z Fixed Angles)
¢ Orientation Representation
Description of Yaw, Pitch, Roll
¢ A rotation of y about the OX axis (
R x ,y)
-- yaw
¢ A rotation of q about the OY axis ( R )
y ,q
-- pitch Z roll
¢ A rotation of f about the OZ axis ( R ) f
z ,f
– roll
Y
q
yaw
y
pitch
X
26
26
Yaw-Pitch-Roll Transformation (X-Y-Z Fixed Angles)
27
Yaw-Pitch-Roll Transformation (X-Y-Z Fixed Angles)
" Cφ Cθ Sφ Sθ Cψ − Cφ Sψ Cφ Sθ Cψ + Sφ Sψ %
$ '
= $ Cθ Sφ Sφ Sθ Sψ + Cφ Cψ Cφ Sθ Sψ − Cφ Sψ '
$ −Sθ SψCθ CψCθ '
# &
28
Define Position and Orientation Together
29
Translation Matrix and Rotation Matrix
é1 0 0 p1 ù
ê0 p2 úú
1 0 éR pù
Tran( p) = ê T =ê ú
ê0 0 1 p3 ú ë0 1û
ê ú
ë0 0 0 1û
é 0ù
ê R (f ) 0úú
Rot (f , k ) = ê k 1£ k £ 3
ê 0ú
êë0 0 0 1úû
30
Homogeneous transformation -- Example
n The two co-ordinate frames M and F initially coincide.
n Point P is located at [P]M= [0 0 10]T.
n Let’s translate co-ordinate frame M by 5 units along f1
and by -3 along f2. What are the coordinates of P
relative to F after translation? f3
m3
m3
xP
x P
é1 0 0 5 ùé 0 ù é 5 ù m2
ê0 1 0 - 3úú êê 0 úú êê- 3úú
ê = m2
f2
ê0 0 1 0 ú ê10 ú ê 10 ú m1
ê ú ê ú ê úm1
ë0 0 0 1 ûë 1 û ë 1 û f1
31
Composite Homogeneous Transformations
n Inverse Translation
Tran -1 ( p) = Tran(- p)
n Inverse Rotation
n Inverse Transformation
-1 é R T
- R T
pù
T =ê ú
ë0 0 0 1 û
34
Inverse Transformation: Proof
-1 é R T
- R T
pù
T =ê ú
ë0 0 0 1 û
-1
T ×T = I
-1 é R p ù é R T
- R T
pù
TT = ê ú ê ú
ë0 0 0 1 û ë0 0 0 1 û
é RR T - RR T p + p ù
=ê ú =I
ë0 0 0 1 û
35
Composite Homogenous Transformation
tool = é R Pù
Tbase ê ú
ë000 1 û
36
Coordinate Transformations
n Develop a sequence of transformations from tool to
wrist, wrist to elbow, elbow to shoulder, ... back to the
base.
q3
q4
q2
T =T T T
1
4 2 3 4
1 2 3
q1
37