Professional Documents
Culture Documents
Nebiyu Tenaye
Introduction to Robotics
ECEG-5372
March 13, 2018
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 1 / 24
Overview
Overview
1 Overview
2 Introduction
Basic Joints
4 Homogeneous Representation
Definition of Kinematics
Basic Joints
Revolute Joint
1 DOF ( Variable - θ)
Prismatic Joint
1 DOF (linear) (Variables - d)
Spherical Joint
3 DOF ( Variables - θ1 , θ2 , θ3 )
Ā · B̄ = kAkkBk cos θ
Matrix Representation:
a b
Ā · B̄ = x · x = ax bx + ay by
ay by
Unit Vector
Vector in the direction of a chosen vector
but whose magnitude is 1.
B̄
U¯B =
kBk
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 6 / 24
Quick Math Review
Matrix Addition:
a b e f (a + e) (b + f )
+ =
c d g h (c + g) (d + h)
Matrix Multiplication:
An (m × n) matrix A and an (n × p) matrix B, can be multiplied since
the number of columns of A is equal to the number of rows of B.
Non-Commutative Multiplication
AB is NOT equal to BA
a b e f (ae + bg) (af + bh)
× =
c d g h (ce + dg) (cf + dh)
Basic Transformations
Moving Between Coordinate Frames
Notation:
VX
N
V PX
V̄ XY = V̄ N O = P̄ =
VY VO 0
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 8 / 24
Quick Math Review
Writing V̄ XY in terms of V̄ N O
PX + V N
XY
V̄ = = P̄ + V̄ N O
VO
P
P̄ XY
= X
PY
PX + V N
V̄ XY = P̄ + V̄ N O =
PY + V O
N NO
kV N O k cos θ
NO
NO V kV k cos θ V̄ · n̄
V̄ = O = N O = N O = N O
V kV k sin θ kV k cos(90 − θ) V̄ · ō
kV̄ XY k = kV̄ N O k
Similarly,
So,
V X = V N (cos θ) − V O (sin θ)
V Y = V N (sin θ) + V O (cos θ)
VX cos θ − sin θ V N
V̄ XY = =
VY sin θ cos θ VO
Rotation Matrix about the z-axis.
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 14 / 24
Quick Math Review
VX cos θ − sin θ V N
XY PX
V̄ = = +
VY PY sin θ cos θ VO
(Note : Px , Py are relative to the original coordinate frame. Translation
followed by rotation is different than rotation followed by translation.)
Why?
In other words, knowing the coordinates of a point (V N , V O ) in some
coordinate frame (N O), you can find the position of that point relative
to your original coordinate frame (X 0 Y 0 ).
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 15 / 24
Homogeneous Representation
Homogeneous Representation
Putting it all into a Matrix
From a translation and a rotation
X
cos θ − sin θ V N
V PX
V̄ XY = = +
VY PY sin θ cos θ VO
X
cos θ − sin θ 0 V N
V PX
= V Y = PY + sin θ cos θ 0 V O
1 1 0 0 1 1
X N
V cos θ − sin θ PX V
= V Y = sin θ cos θ PY V O
1 0 0 1 1
Homogeneous Matrix for a cos θ − sin θ PX
Translation in XY plane, followed H = sin θ cos θ PY
by a Rotation around the z-axis. 0 0 1
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 16 / 24
Homogeneous Representation
Rotation Matrices in 3D
cos θ − sin θ 0
RZ = sin θ cos θ 0 ⇐= Rotation around the Z-Axis
0 0 1
cos θ 0 sin θ
RY = 0 1 0 ⇐= Rotation around the Y-Axis
− sin θ 0 cos θ
1 0 0
RX = 0 cos θ − sin θ ⇐= Rotation around the X-Axis
0 sin θ cos θ
0 0 0 1
Translation without rotation nx ox ax 0
ny oy ay 0
H=
nz oz az
0
0 0 0 1
Rotation part:
Could be rotation around
z-axis, x-axis, y-axis or a
Rotation without translation combination of the three.
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 18 / 24
Homogeneous Representation
nx ox ax PX
ny oy ay PY N
V XY Z VO VA 1
nz oz az PZ V
=
0 0 0 1
V X = nx V N + ox V O + ax V A + PX
The rotation and translation part can be combined into a single homoge-
neous matrix IF and ONLY IF both are relative to the same coordinate
frame.
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 19 / 24
Homogeneous Representation
X
WI
N
W Point relative Point relative W Point relative
W Y to the X-Y-Z W J to the I-J-K W O to the N-O-A
WZ frame WK frame WA frame
I
ni oi ai Pi W N
W
WI
N
Pi ni oi ai W W J nj oj aj Pj W O
W J = Pj + nj oj aj W O ⇒
W K =nk ok ak Pk W A
WK Pk nk ok ak W A
1 0 0 0 1 1
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 20 / 24
Homogeneous Representation
X
jx kx Tx W I
X I W ix
W Tx ix jx kx W Y J
W Y = Ty + iy jy ky W J ⇒ Z = iy
W jy ky Ty
W
W iz jz kz Tz W K
WZ Tz iz jz kz W K
1 0 0 0 1 1
X N
Substituting
I for W ix jx kx Tx ni oi ai Pi W
W W Y iy jy ky Ty nj oj aj Pj O
W
W J W Z = iz jz kz Tz nk
ok ak Pk W A
WK 1 0 0 0 1 0 0 0 1 1
Nebiyu Tenaye (AAiT/SECE) Lecture-2 March 13, 2018 21 / 24
Homogeneous Representation
X N ix jx kx Tx ni oi ai Pi
W W iy jy ky Ty nj oj aj Pj
W Y W O H=
iz jz kz Tz nk ok ak Pk
W Z = H W A
0 0 0 1 0 0 0 1
1 1 | {z }
Product of the two matrices
1 0 0 Tx ix jx kx 0 1 0 0 Pi ni oi ai 0
0 1 0 Ty iy jy ky 0
0 1 0 Pj
nj oj aj 0
H=
0
0 1 Tz iz jz kz 0 0 0 1 Pk nk ok ak 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
H = (Translation relative to the XYZ frame) * (Rotation relative to the XYZ frame)
* (Translation relative to the IJK frame) * (Rotation relative to the IJK frame)