Beruflich Dokumente
Kultur Dokumente
Example:#
&2 5# &6 2# &8 7 #
$3 1! + $1 5! = $4 6!
% " % " % "
Matrices#
Product:#
A and B must have
Cn× p = An×m Bm× p compatible dimensions#
m
cij = ∑ aik bkj An×n Bn×n ≠ Bn×n An×n
k =1
Examples:#
Transpose:#
T T T T
Cm×n = A n×m ( A + B) = A + B
cij = a ji ( AB)T = B T AT
T
If # A =A A is symmetric#
Examples:# T
T &6 2 #
&6 2 # & 6 1# $1 5! = &6 1 3#
$1 5! = $2 5! $ ! $2 5 8!
% " % " $%3 8 !" % "
Matrices#
' 2 5$
Example:# det % " = 2 − 15 = −13
& 3 1#
Matrices#
−1
&6 2 # 1 & 5 − 2#
Example:# $1 5! = 28 $− 1 6 !
% " % "
−1
&6 2# &6 2# 1 & 5 − 2# &6 2# 1 &28 0 # &1 0#
$1 5! .$1 5! = 28 $− 1 6 !.$1 5! = 28 $ 0 28! = $0 1!
% " % " % "% " % " % "
2D,3D Vectors#
P#
x2#
v#
θ#
2 2 x1#
Magnitude:# || v ||= x1 + x2
u+v#
v#
u#
u-v#
u#
v# av#
v#
Inner (dot) Product#
norm of a vector#
Vector (cross) Product#
u# w# α# u = v× w
v#
The cross product is a VECTOR!#
Orientation:#
€
Orthonormal Basis in 3D#
Standard base vectors:#
u# w# α#
v#
Y!
x’#
t#
ty# x#
tx# X!
Homogeneous Coordinates#
Homogeneous coordinates:
P = [x,y]’#
Rotation Matrix#
Counter-clockwise rotation of a coordinate#
frame by an angle θ#
{A}#
XA = RAB XB
Rigid Body Transform#
Translation only, tABis the origin of the frame B expressed in the #
Frame A #
XA = XB + tAB
Composite transformation: #
XA = RAB XB + tAB
{B}#
XB
Transformation: # T = (RAB , tAB )
XA
Homogeneous coordinates #
⇥
RAB tAB
XA = XB tAB
0 1
The points from frame A to frame B are {A}#
transformed by the inverse of# T = (RAB , tAB )
(see example next slide) #
#
Example#
⇥
cos sin tx
XA = ⇤ sin cos ty ⌅ XB
0 0 1
In homogeneous coordinates: #
⇥
0 1 0
XA = ⇤ 1 0 3 ⌅ XB for# = 90o , tAB = [0, 3]T
0 0 1 ⇥ ⇥
2 0
XA = ⇤ 3 ⌅ XB = ⇤ 2 ⌅
XB 1 1
{B}#
tAB XA
{A}#
Verify that the inverse of the above transform #
Transforms coordinates in frame {A} to frame {B} #
Degrees of Freedom#
P
Y’# ’# γ#
y# P#
X’# x#
z#
Rotation Matrix#
• Euler theorem – any rotation can be expressed as a sequence of
rotations around different coordinate axes #
• Different order of rotations yields different final rotation#
• Rotation multiplication is not commutative#
R = Rx (θ r )Ry (θ p )Rz (θ y )
#
Rotation Matrices in 3D#
• 3 by 3 matrices#
• 9 parameters – only three degrees of freedom#
• Representations – either three Euler angles#
• or axis and angle representation #
#
• Properties of rotation matrices (constraints between the #
elements)#
Property of R#
Taking derivative#
By algebra#
By solution to ODE#
3D Rotation (axis & angle)#
with#
or#
Rotation Matrices#
Given#
Translate by a vector #
P
’# t#
Y’# x’# x#
P#
z’# y#
z#
Rigid Body Motion – Homogeneous
Coordinates#