puma 1 et 2
TRANSCRIPT
-
7/29/2019 puma 1 et 2
1/46
The City College of New York 1
Jizhong Xiao
Department of Electrical Engineering
City College of New [email protected]
Robot Kinematics II
Introduction to ROBOTICS
-
7/29/2019 puma 1 et 2
2/46
The City College of New York 2
Outline
Review
Manipulator Specifications Precision, Repeatability
Homogeneous Matrix
Denavit-Hartenberg (D-H)Representation
Kinematics Equations Inverse Kinematics
-
7/29/2019 puma 1 et 2
3/46
The City College of New York 3
Review
Manipulator, Robot arms, Industrial robot
A chain of rigid bodies (links) connected by
joints (revolute or prismatic)
Manipulator Specification
DOF, Redundant Robot
Workspace, Payload
Precision
Repeatability
How accurately a specified point can be reached
How accurately the same position can be reached
if the motion is repeated many times
-
7/29/2019 puma 1 et 2
4/46
The City College of New York 4
Review Manipulators:
Cartesian: PPP Cylindrical: RPP Spherical: RRP
SCARA: RRP
(Selective Compliance
Assembly Robot Arm)
Articulated: RRR
Hand coordinate:
n: normal vector; s: sliding vector;
a: approach vector, normal to the
tool mounting plate
-
7/29/2019 puma 1 et 2
5/46
The City College of New York 5
Review
Basic Rotation Matrix
uvwxyz RPP
xyzuvw QPP
TRRQ 1
uvw
w
v
u
z
y
x
xyz RP
p
p
p
p
p
p
P
wzvzuz
wyvyuy
wxvxux
kkjkik
kjjjij
kijiii
x
z
y
v
w
P
u
-
7/29/2019 puma 1 et 2
6/46
The City College of New York 6
Basic Rotation Matrices Rotation about x-axis with
Rotation about y-axis with
Rotation about z-axis with
uvwxyz RPP
CS
SCxRot
0
0
001
),(
0
010
0
),(
CS
SC
yRot
100
0
0
),(
CS
SC
zRot
-
7/29/2019 puma 1 et 2
7/46The City College of New York 7
Review
Coordinate transformation from {B
} to {A
}
Homogeneous transformation matrix
'oAPB
B
APA rrRr
1101 31
' PBoA
B
APA
rrRr
1010
1333
31
' PRrRT
oA
B
A
B
A
Position
vector
Rotation
matrix
Scaling
-
7/29/2019 puma 1 et 2
8/46The City College of New York 8
Review
Homogeneous Transformation Special cases
1. Translation
2. Rotation
10
0
31
13B
A
B
A RT
10 31
'
33
oA
BA rIT
-
7/29/2019 puma 1 et 2
9/46The City College of New York 9
Review
Composite Homogeneous TransformationMatrix
Rules:
Transformation (rotation/translation) w.r.t. (X,Y,Z)
(OLD FRAME), using pre-multiplication
Transformation (rotation/translation) w.r.t.
(U,V,W) (NEW FRAME), using post-multiplication
-
7/29/2019 puma 1 et 2
10/46The City College of New York 10
Review Homogeneous Representation
A point in space
A frame in space
3R
1000
1000 zzzz
yyyy
xxxx
pasn
pasn
pasn
PasnF
x
y
z ),,( zyx pppP
n
sa
1
z
y
x
p
p
p
P Homogeneous coordinate of P w.r.t. OXYZ
3R
-
7/29/2019 puma 1 et 2
11/46The City College of New York 11
Review
Orientation Representation(Euler Angles)
Description of Yaw, Pitch, Roll
A rotation of about the OXaxis ( ) -- yaw
A rotation of about the OY
axis ( ) -- pitch
A rotation of about the OZaxis ( ) -- roll
X
Y
Z
,xR
,yR
,zR
yaw
pitch
roll
-
7/29/2019 puma 1 et 2
12/46The City College of New York 12
Quiz 1 How to get the resultant rotation matrix for YPR?
X
Y
Z
,,, xyz RRRT
1000
0100
00
00
CS
SC
1000
00
0010
00
CS
SC
1000
00
00
0001
CS
SC
-
7/29/2019 puma 1 et 2
13/46The City College of New York 13
Quiz 2
Geometric Interpretation?
10
1333PR
T
10
1 PRRTTT
44
1
10
0
1010
I
RRPRPRRTT
TTT
Position of the origin of OUVW
coordinate frame w.r.t. OXYZ frame
Inverse of the rotation submatrix
is equivalent to its transpose
Position of the origin of OXYZ
reference frame w.r.t. OUVW frame
Orientation of OUVW coordinate
frame w.r.t. OXYZ frame
Inverse Homogeneous Matrix?
-
7/29/2019 puma 1 et 2
14/46The City College of New York 14
Kinematics Model
Forward (direct) Kinematics
Inverse Kinematics
),,( 21 nqqqq
),,,,,( zyxY
x
y
z
Direct Kinematics
Inverse Kinematics
Position and Orientation
of the end-effector
Joint
variables
-
7/29/2019 puma 1 et 2
15/46The City College of New York 15
Robot Links and Joints
-
7/29/2019 puma 1 et 2
16/46The City College of New York 16
Denavit-Hartenberg Convention
Number the joints from 1 to n starting with the base and ending with
the end-effector. Establish the base coordinate system. Establish a right-handed
orthonormal coordinate system at the supporting base
with axis lying along the axis of motion of joint 1.
Establish joint axis. Align the Zi with the axis of motion (rotary or
sliding) of joint i+1.
Establish the origin of the ith coordinate system. Locate the origin of
the ith coordinate at the intersection of the Zi & Zi-1 or at the
intersection of common normal between the Zi & Zi-1 axes and the Zi
axis.
Establish Xiaxis. Establish or along the
common normal between the Zi-1 & Zi axes when they are parallel.
Establish Yiaxis. Assign to complete the
right-handed coordinate system.
Find the link and joint parameters
),,( 000 ZYX
iiiii ZZZZX 11 /)(
iiiii XZXZY /)(
0Z
-
7/29/2019 puma 1 et 2
17/46The City College of New York 17
Example I
3 Revolute Joints
a0 a1
Z0
X0
Y0
Z3
X2
Y1
X1
Y2
d2
Z1
X33O
2O
1O
0O
Joint 1
Joint 2
Joint 3
Link 1 Link 2
-
7/29/2019 puma 1 et 2
18/46The City College of New York 18
Link Coordinate Frames Assign Link Coordinate Frames:
To describe the geometry of robot motion, we assign a Cartesian
coordinate frame (Oi, Xi,Yi,Zi) to each link, as follows:
establish a right-handed orthonormal coordinate frame O0at
the supporting base with Z0 lying along joint 1 motion axis.
the Ziaxis is directed along the axis of motion of joint (i+ 1),that is, link (i+ 1) rotates about or translates along Zi;
Link 1 Link 2
a0 a1
Z0
X0
Y0
Z3
X2
Y1
X1
Y2
d2
Z1
X33
O
2O
1O
0O
Joint 1
Joint 2
Joint 3
-
7/29/2019 puma 1 et 2
19/46
The City College of New York 19
Link Coordinate Frames Locate the origin of the ith coordinate at the intersection
of the Zi & Zi-1 or at the intersection of common normal
between the Zi & Zi-1 axes and the Zi axis.
the Xiaxis lies along the common normal from the Zi-1
axis to the Ziaxis , (if Zi-1 is
parallel to Zi, then Xiis specified arbitrarily, subject only
to Xibeing perpendicular to Zi);
iiiii ZZZZX 11 /)(
a0 a1
Z0
X0
Y0
Z3
X2
Y1
X1
Y2
d2
Z1
X33O
2O1O0OJoint 1
Joint 2
Joint 3
-
7/29/2019 puma 1 et 2
20/46
The City College of New York 20
Link Coordinate Frames Assign to complete the right-
handed coordinate system.
The hand coordinate frame is specified by the geometry
of the end-effector. Normally, establish Zn along the
direction of Zn-1 axis and pointing away from the robot;
establish Xn such that it is normal to both Zn-1 and Znaxes. Assign Yn to complete the right-handed coordinate
system.
iiiii XZXZY /)(
nO
a0 a1
Z0
X0
Y0
Z3
X2
Y1
X1
Y2
d2
Z1
X33
O
2O
1O
0O
Joint 1
Joint 2
Joint 3
-
7/29/2019 puma 1 et 2
21/46
The City College of New York 21
Link and Joint Parameters Joint angle : the angle of rotation from the X
i-1
axis to
the Xiaxis about the Zi-1 axis. It is the joint variable if joint iis rotary.
Joint distance : the distance from the origin of the (i-1)coordinate system to the intersection of the Zi-1 axis and
the Xiaxis along the Zi-1 axis. It is the joint variable if joint iis prismatic.
Link length : the distance from the intersection of the Zi-1axis and the Xiaxis to the origin of the ith coordinate
system along the Xiaxis.
Link twist angle : the angle of rotation from the Zi-1 axisto the Ziaxis about the Xiaxis.
i
id
ia
i
-
7/29/2019 puma 1 et 2
22/46
The City College of New York 22
Example I
Joint i i ai di i1 0 a0 0 0
2 -90 a1 0 1
3 0 0 d2 2
D-H Link Parameter Table
: rotation angle from Xi-1
to Xi
about Zi-1
i
: distance from origin of (i-1) coordinate to intersection of Zi-1
& Xialong Z
i-1
: distance from intersection of Zi-1 & Xito origin of i coordinate along X
i
id
: rotation angle from Zi-1
to Ziabout X
i
ia
i
a0 a1
Z0
X0
Y0
Z3
X2
Y1
X1
Y2
d2
Z1
X33
O
2O1O0OJoint 1
Joint 2
Joint 3
-
7/29/2019 puma 1 et 2
23/46
The City College of New York 23
Example II: PUMA 260
iiiii ZZZZX 11 /)(
iiiii XZXZY /)(
1
2
3
4
5
6
0Z
1Z
2Z
3Z
4Z5Z
1O
2O
3O
5O4O
6O
1X1Y
2X2
Y
3X
3Y
4X
4Y
5X
5Y
6X
6Y
6Z
1. Number the joints
2. Establish base frame
3. Establish joint axis Zi
4. Locate origin, (intersect.
of Zi & Zi-1) OR (intersect
of common normal & Zi )
5. Establish Xi,Yi
PUMA 260
t
-
7/29/2019 puma 1 et 2
24/46
The City College of New York 24
Link Parameters
1
2
3
4
5
6
0Z
1Z
2Z
3Z
4Z5Z
1O
2O
3O
5O4O
6O
1X1Y
2X2
Y
3X
3Y
4X
4Y
5X
5Y
6X
6Y
6Z
: angle from Zi-1
to Zi
about Xi
: distance from intersectionof Z
i-1& X
ito Oialong X
i
Joint distance : distance from Oi-1 to intersection of Zi-1
& Xialong Z
i-1
: angle from Xi-1
to Xi
about Zi-1
i
i
ia
i
d
t006
0090580-904
0
0903
802
130-901
J i
1
4
2
3
6
5
i ia id
-l
-
7/29/2019 puma 1 et 2
25/46
The City College of New York 25
Transformation between i-1 and i
Four successive elementary transformationsare required to relate the i-th coordinate frame
to the (i-1)-th coordinate frame:
Rotate about the Z i-1 axis an angle ofi to align the
X i-1 axis with the X iaxis. Translate along the Z i-1 axis a distance of di, to bring
Xi-1 and Xiaxes into coincidence.
Translate along the Xiaxis a distance ofaito bring
the two origins Oi-1 and Oias well as the X axis intocoincidence.
Rotate about the Xiaxis an angle ofi( in the right-
handed sense), to bring the two coordinates into
coincidence.
-
7/29/2019 puma 1 et 2
26/46
The City College of New York 26
Transformation between i-1 and i
D-H transformation matrix for adjacent coordinate
frames, iand i-1.
The position and orientation of the i-th frame coordinate
can be expressed in the (i-1)th frame by the following
homogeneous transformation matrix:
1000
0
),(),(),(),( 111
iii
iiiiiii
iiiiiii
iiiiiiii
i
i
dCS
SaCSCCS
CaSSSCC
xRaxTzRdzTT
Source coordinate
ReferenceCoordinate
-
7/29/2019 puma 1 et 2
27/46
The City College of New York 27
Kinematic Equations Forward Kinematics
Given joint variables
End-effector position & orientation
Homogeneous matrix
specifies the location of the ith coordinate frame w.r.t.the base coordinate system
chain product of successive coordinate transformation
matrices of
100010
000
1
2
1
1
00
nnn
n
n
n
PasnPR
TTTT
),,(21 n
qqqq
),,,,,( zyxY
i
iT 1
nT0
Orientation
matrix
Position
vector
-
7/29/2019 puma 1 et 2
28/46
The City College of New York 28
Kinematics Equations
Other representations reference from, tool frame
Yaw-Pitch-Roll representation for orientation
tool
n
n
ref
tool
ref HTBT 00
,,, xyz RRRT
1000
0100
00
00
CS
SC
1000
00
0010
00
CS
SC
1000
00
00
0001
CS
SC
-
7/29/2019 puma 1 et 2
29/46
The City College of New York 29
Representing forward kinematics
Forward kinematics
z
y
x
pp
p
6
5
4
3
2
1
1000
zzzz
yyyy
xxxx
pasn
pasnpasn
T
Transformation Matrix
-
7/29/2019 puma 1 et 2
30/46
The City College of New York 30
Representing forward kinematics
Yaw-Pitch-Roll representation for orientation
1000
0
z
y
x
n
pCCSCS
pSCCSSCCSSSCS
pSSCSCCSSSCCC
T
1000
0
zzzz
yyyy
xxxx
n
pasn
pasn
pasn
T
)(sin 1 zn
)
cos
(cos 1
za
)cos
(cos 1
x
n
Problem? Solution is inconsistent and ill-conditioned!!
-
7/29/2019 puma 1 et 2
31/46
The City College of New York 31
atan2(y,x)
x
y
yandxfor
yandxfor
yandxfor
yandxfor
xya
090
90180
18090
900
),(2tan
-
7/29/2019 puma 1 et 2
32/46
The City College of New York 32
Yaw-Pitch-Roll Representation
,,, xyz RRRT
1000
0100
00
00
CS
SC
1000
00
0010
00
CS
SC
1000
00
00
0001
CS
SC
1000
0
0
0
zzz
yyy
xxx
asn
asn
asn
-
7/29/2019 puma 1 et 2
33/46
The City College of New York 33
Yaw-Pitch-Roll Representation
,,
1
, xyz RRTR
1000
0100
00
00
CS
SC
1000
00
0010
00
CS
SC
1000
00
00
0001
CS
SC
1000
0
0
0
zzz
yyy
xxx
asn
asn
asn
(Equation A)
-
7/29/2019 puma 1 et 2
34/46
The City College of New York 34
Yaw-Pitch-Roll Representation
0cossin yx nn
sincossincos
z
yx
nnn
sincossin
coscossin
yx
yx
aa
ss
Compare LHS and RHS of Equation A, we have:
),(2tan xy nna
)sincos,(2tan yzz nnna
)cossin,cos(sin2tan yxyx ssaaa
-
7/29/2019 puma 1 et 2
35/46
The City College of New York 35
Kinematic Model
Steps to derive kinematics model:
Assign D-H coordinates frames
Find link parameters
Transformation matrices of adjacent joints
Calculate Kinematics Matrix
When necessary, Euler angle representation
-
7/29/2019 puma 1 et 2
36/46
The City College of New York 36
Example
Joint i i ai di i1 0 a0 0 0
2 -90 a1 0 1
3 0 0 d2 2
a0 a1
Z0
X0
Y0
Z3
X2
Y1
X1
Y2
d2
Z1
X33O
2O
1O
0O
Joint 1
Joint 2
Joint 3
-
7/29/2019 puma 1 et 2
37/46
The City College of New York 37
ExampleJoint i i ai di i
1 0 a0 0 0
2 -90 a1 0 1
3 0 0 d2 2
1000
0100
0cossin
0sincos
00
00
0
00
00
1sin
cos
a
a
T
1000
000
sincos
1
1
11
sincos0cossin0
111
111
2
aa
T
))()(( 2103213
0 TTTT
1000
0sincos 22
2
2
223
100
00cossin
0
dT
1000
01
iii
iiiiiii
iiiiiii
i
idCS
SaCSCCS
CaSSSCC
T
-
7/29/2019 puma 1 et 2
38/46
The City College of New York 38
Example: Puma 560
-
7/29/2019 puma 1 et 2
39/46
The City College of New York 39
Example: Puma 560
-
7/29/2019 puma 1 et 2
40/46
The City College of New York 40
Link Coordinate Parameters
Joint i i i ai(mm) di(mm 1 1 -90 0 0
2 2 0 431.8 149.09
3 3 90 -20.32 0
4 4 -90 0 433.07
5 5 90 0 0
6 6 0 0 56.25
PUMA 560 robot arm link coordinate parameters
-
7/29/2019 puma 1 et 2
41/46
The City College of New York 41
Example: Puma 560
-
7/29/2019 puma 1 et 2
42/46
The City College of New York 42
Example: Puma 560
-
7/29/2019 puma 1 et 2
43/46
The City College of New York 43
Inverse Kinematics Given a desired position (P)
& orientation (R) of the end-
effector
Find the joint variables
which can bring the robot
the desired configuration
),,( 21 nqqqq
x
y
z
-
7/29/2019 puma 1 et 2
44/46
The City College of New York 44
Inverse Kinematics
More difficult Systematic closed-form
solution in general is not
available
Solution not unique
Redundant robot
Elbow-up/elbow-down
configuration Robot dependent
(x , y)
-
7/29/2019 puma 1 et 2
45/46
The City College of New York 45
Inverse Kinematics
6
5
4
3
2
1
6
5
5
4
4
3
3
2
2
1
1
0
1000
TTTTTTpasn
pasn
pasn
Tzzzz
yyyy
xxxx
Transformation Matrix
Special cases make the closed-form arm solution possible:
1. Three adjacent joint axes intersecting (PUMA, Stanford)
2. Three adjacent joint axes parallel to one another (MINIMOVER)
-
7/29/2019 puma 1 et 2
46/46
Thank you!
x
yz
x
yz
x
yz
x
z
y
Homework 2 posted on the web.
Due: Sept. 23, 2008
Next class: Inverse Kinematics, Jocobian
Matrix, Trajectory planning