Kinematics Pose (Position and Orientation) of A Rigid Body: Introduction To Robotics
Kinematics Pose (Position and Orientation) of A Rigid Body: Introduction To Robotics
ROBOTICS
Kinematics
Pose (position and orientation)
of a Rigid Body
University of Bridgeport
1
Representing Position (2D)
y
5
p (“column” vector) p
2 2
p 5 xˆ 2 yˆ 5 x
b 5 3 8 3
p a
p
2 2 4 2
x x
z
2 z
p 5
right-handed
coordinate frame
2
x̂ A vector of length one pointing in the
direction of the base frame x axis
p 2 xˆ 5 yˆ 2 zˆ
ŷ A vector of length one pointing in the
direction of the base frame y axis
ẑ A vector of length one pointing in the
4
direction of the base frame z axis
The rotation matrix
yˆ B yˆ A
A cos sin
RB p
sin cos
A
p ARB B p xˆB
A
RB :To specify the coordinate vectors xˆ A
for the fame B with respect to
frame A
θ: The angle between xˆ A and xˆB
B A 1 cos sin
RA RB in anti clockwise direction
sin cos
B
p BR A A p 5
The rotation matrix
yˆ B yˆ A
A
RB A xB 2 x1 A
y B 2 x1
A
xB 2 x1 cos xˆ A sin . yˆ A xˆB
A
xˆ A
yB 2 x1 sin xˆ A cos yˆ A
6
Useful formulas
B
A R ( BAR ) 1 ( BAR)T
R R 1 I
B
A R.BA R I
Det ( R ) 1
7
Example 1
B 10
p A
10 B
yˆ yˆ
A
find p
B
xˆ
A cos 30 sin 30 30
RB
sin 30 cos 30 30 A
3 1 xˆ
A A B
A
RB 2 2 p RB p
1 3 3 1
2 2 A
P 2 2 10 3.6603
1 3 10 13.6603
8
2 2
Example 1
A 10
p A
10 B
yˆ yˆ
B
find p
B
xˆ
B cos 30 sin 30 30
R A
sin 30 cos 30 30 A
3 1
xˆ
B B A
B
RA 2 2 p RA p
1 3 3 1
2 2 B 2 2 10 13.6603
P
1 3 10 3.6603
9
2 2
Example 1
Another Solution
B A 1 B A T
R A RB OR RA RB
13
Example 3
• A point a xyz (4,3,2) is the coordinate w.r.t. the
reference coordinate system, find the
corresponding point auvw w.r.t. the rotated
OUVW coordinate system if it has been
rotated 60 degree about OZ axis.
puvw Rot ( z , 60)T pxyz
OR : puvw Rot ( z , 60) 1 pxyz
OR : puvw Rot ( z , 60) pxyz
0.5 0.866 0 4 4.598
0.866 0.5 0 3 1.964
0 0 1 2 2 14
Composite Rotation Matrix
• A sequence of finite rotations
– matrix multiplications do not commute
– rules:
• if rotating coordinate OUVW is rotating about
principal axis of OXYZ frame, then Pre-multiply the
previous (resultant) rotation matrix with an
appropriate basic rotation matrix [rotation about
fixed frame]
• if rotating coordinate OUVW is rotating about its
own principal axes, then post-multiply the previous
(resultant) rotation matrix with an appropriate basic
rotation matrix [rotation about current frame]
15
Rotation with respect to Current
Frame
A A B
P RB P
B
PBRC P C
C C D
P RD P
A
P ARD P D ARB B RC C RD P D
A A B
RD RB RD
A
RD ARB B RC C RD 16
Example 4
• Find the rotation matrix for the following
operations:
R Rot ( y, ) Rot ( z , ) Rot ( x, )
C 0 S C S 0 1 0 0
Rotation about Y axis 0 1 0 S C 0 0 C S
Rotation about current Z axis - S 0 C 0 0 1 0 S C
20
Quiz
• Description of Roll Pitch Yaw
• Find the rotation matrix for the following
operations: Z
Rotation about X axis{ROLL}
Rotation about fixed Y axis{PITCH}
Rotation about fixed Z axis{YAW}
Y
X
21
Z
Answer
Rotation about X axis
Rotation about fixed Y axis
Rotation about fixed Z axis Y
R Rot ( z , ) Rot ( y, ) Rot ( x, )
X
C S 0 C 0 S 1 0 0
S C 0 0 1 0 0 C S
0 0 1 - S 0 C 0 S C
CC SS CSS CSC SS
SC CSS CS CS SSC
S CS CC
22
Coordinate Transformations
• position vector of P
in {B} is transformed
to position vector of P
in {A}
• description of
frame{B} as seen
from an observer in
{A}
Can be written as A A
P H B PB
Rotation
matrix
(3*3)
A
A RB pBA
H B
013 1 Position
vector
(3*1)
24
Homogeneous Representation
A
P AH B B P A xp B xp
A B
A yp yp
P A B
P B
zp zp
Rotation
1 1
matrix
(3*3)
A
A RB pBA
H B Position vector
013 1 of the origin of
frame B wrt
frame A (3*1) 25
Homogeneous Transformation
• Special cases
1. Translation
A
A I 33 p
B
H B
013 1
2. Rotation
A
A RB 031
H B
013 1
26
Example 7
• Translation along Z-axis with h:
1 0 0 0 x 1 0 0 0 p x1 p x1
0 1 0 0 y 0 1 0 0 p y1 p y1
Trans ( z , h)
0 0 1 h z 0 0 1 h p z1
p z1 h
0 0 0 1 1 0 0 0 1 1 1
z z P
P
B
z y
y
w B
y
v
B
x h
x x
O
u 27
O
Example 7
• Translation along Z-axis with h:
0 0 B
P H B P
x 1 0 0 0 p xB p xB
y 0 1 0 0 p y B p y B
z 0 0 1 h p yB p zB h
1 0 0 0 1 1 1
28
Example 8
• Rotation about the X-axis by
1 0 0 0 x 1 0 0 0 p x1
0 C S 0 y 0 C S 0 p y1
Rot ( x, )
0 S C 0 z 0 S C 0 p z1
0 0 0 1 1 0 0 0 1 1
z
z1
P
y1
y
x1
x 29
Homogeneous Transformation
• Composite Homogeneous Transformation
Matrix
• Rules:
– Transformation (rotation/translation) w.r.t fixed
frame, using pre-multiplication
– Transformation (rotation/translation) w.r.t
current frame, using post-multiplication
30
Example 9
• Find the homogeneous transformation matrix
(H) for the following operations:
Rotation about OX axis
Translation of a along OX axis
Translation of d along OZ axis
Rotation of about OZ axis
H Rot z , Trans z ,d Trans x ,a Rot x ,
Answer : C S 0 0 1 0 0 0 1 0 0 a 1 0 0 0
S C 0 0 0 1 0 0 0 1 0 0 0 C S 0
0 0 1 0 0 0 1 d 0 0 1 0 0 S C 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
31
Remember those double-angle formulas…
32
Review of matrix transpose
5 T
p T
p 5 2 Important property: A T BT BA
2
33
and matrix multiplication…
bx
a b a x bx a y by a x T
a y a b
by
34
HW
• Problems 2.10, 2.11, 2.12, 2.13,
2.14 ,2.15, 2.22, 2.24, 2.37, and 2.39
35