Professional Documents
Culture Documents
Equations to Matrices
a x ... a x
11 1
a 11
.
a m1
a 1n
a mn
1n n
k1
.
.
an1 x1 ... ann xn k n
If k1..kn are 0, then it is a
Homogeneous Matrix and
there are some special
properties.
Computing Determinants
Example
2
1
1 0
1
a11k1...a1n
.
.
.
.
D1
D2
.
.
.
.
k n an1...ann
an1.k n ..ann
x1 D1 / D; x2 D2 / D
...
xn Dn / D
Example
Why
multiply
matrices?
These systems come up in many topics
especially robot kinematics.
1p n
e
h
f
i
ae bh af bi ag bj
j ce dh cf di cg dj
Rx
Ry
Rz
Yp
Zi
Yi
Xp
Oi
Op
Zp
Patient
Space
Tx,
Ty
Tz
Image
Space
Xi
Point Transformation
r00 r01 r02 t0 p x
r r r t py
10 11 12 1
r20 r21 r22 t 2 p x
0 0 0 1 1
T
px
p
y
p
x
Do you remember 2D
geometry?
R=Sqrt(x2+y2);
Polar to Cartesian
Coordinates?
Theta=ArcTan(Y/X);
Cartesian From Polar:
X= R*cos(Theta)
Y= R*sin(Theta)
Y
R
(R, Theta) or
(X,Y)
Theta
X
Rotations
Given a rotation vector which represents rotations around the x, y
and z axes respectively, a rotation matrix can be computed which
relates two orthogonal coordinate systems having the same origin
but differing in these rotation angles. Each individual rotation is
given by the following three sets of equations:
cos sin 0
Rx ( ) sin cos 0
0
0
1
cos 0 sin
0
1
0
Ry ( )
sin 0 cos
cos sin 0
R z ( ) sin cos 0
0
0
1
The combined effect of these rotation matricies is given by the following equation :
cos cos sin sin
Rz ( ) Ry ( ) Rx ( ) cos cos sin sin cos
cos sin
sin cos
sin sin
cos
cos sin
sin cos
sin sin
cos
Tx xx
0 0 0 1
Translationn
Tx1xx
J2
TJ 1 J 2 TJ 2 J 3 TJ 3 EE
J3
TJ1-J2
TJ2-J3
TJ3-EE
EE
But,
How do you calculate the individual
transformationslike Tb-jo??
J1
TJ0-J1
J0
TB-J0
*TB-EE
B