DH Examples
DH Examples
3/10/2015 2
Denavit-Hartenberg Forward
Kinematics How do we place the frames?
3/10/2015 3
Step 1: Choose the z-axis for each
frame
i −1
T i =DH
• recall the Rz ,θi Ttransformation
z , d i Tx , ai Rx ,α i matrix
cθi − sθi cα i sθi sα i ai cθi
s c c − c s a s
= θi θi α i θi α i i θi
0 sα i cα i di
0 0 0 1
xˆii −1 yˆ ii −1 zˆii −1
3/10/2015 4
Step 1: Choose the z-axis for each
ẑi ≡ frame
• axis of actuation for joint i+1
link i link i+1 link i link i+1
ẑi
ẑi
3/10/2015 5
Step 1: Choose the z-axis for each
frame
• Warning: the picture is deceiving. We do not yet know the origin of the
frames; all we know at this point is that each zi points along a joint axis
3/10/2015 6
Step 2: Establish frame {0}
• place the origin o0 anywhere on z0
– often the choice of location is obvious
• choose x0 and y0 so that {0} is right-handed
– often the choice of directions is obvious
3/10/2015 7
Step 2: Establish frame {0}
3/10/2015 8
Step 3: Iteratively construct {1}, {2},
... {n-1}
• using frame {i-1} construct frame {i}
– DH1: xi is perpendicular to zi-1
– DH2: xi intersects zi-1
• 3 cases to consider depending on the
relationship between zi-1 and zi
3/10/2015 9
Step 3: Iteratively construct {1}, {2},
... {n-1}
• Case 1
– zi-1 and
zˆi −1 zi are not coplanar (skew)
shortest line between ẑi (out of page)
zˆi −1 and ẑ
i
x̂i
ai
oi point of intersection
3/10/2015 10
Step 3: Iteratively construct {1}, {2},
... {n-1}
• Case 2
zˆi −1 ẑi
– zi-1 and zi are parallel ( αi = 0 )
oi −1 x̂i
ai
oi point of intersection
3/10/2015 12
Step 3: Iteratively construct {1}, {2},
... {n-1}
3/10/2015 13
Step 3: Iteratively construct {1}, {2},
... {n-1}
3/10/2015 14
Step 4: Place the end effector frame
“sliding”
“normal”
“approach”
3/10/2015 15
Step 4: Place the end effector frame
3/10/2015 16
Step 5: Find the DH parameters
• ai : distance between zi-1 and zi measured
along xi
• αi : angle from zi-1 and zi measured about xi
• di : distance between oi-1 to the intersection of
xi and zi-1 measured along zi-1
• θi : angle from xi-1 and xi measured about zi-1
3/10/2015 17
Step 5: Find the DH parameters
Link ai αi di θi
1 0 0 d1 θ1*
2 0 -90 d2* 0
3 0 0 d3* 0
* joint variable
3/10/2015 18
Step 5: Find the DH parameters
Link ai αi di θi
1 0 0 d1 θ1*
2 0 -90 d2* 0
3 0 0 d3* 0
* joint variable
3/10/2015 19
Step 6: Compute the transformation
• once the DH
Link
parameters
a α
ared
known,
θ
it is easy
to construct1 the 0overall
0 transformation
i i i i
d θ* 1 1
2 0 -90 d2* 0
3 0 0 d3* 0
* joint variable
c1 − s1 0 0
s c 0 0
T 10 = Rz ,θ1Tz ,d1Tx ,a1 Rx ,α1 = 1 1
0 0 1 d1
0 0 0 1
3/10/2015 20
Step 6: Compute the transformation
Link ai αi di θi
1 0 0 d1 θ1*
2 0 -90 d2* 0
3 0 0 d3* 0
* joint variable
1 0 0 0
0 0 1 0
T 12 = Rz ,θ 2 Tz ,d 2 Tx ,a2 Rx ,α 2 =
0 − 1 0 d2
0 0 0 1
3/10/2015 21
Step 6: Compute the transformation
Link ai αi di θi
1 0 0 d1 θ1*
2 0 -90 d2* 0
3 0 0 d3* 0
* joint variable
1 0 0 0
0 1 0 0
T 32 = Rz ,θ3 Tz ,d3 Tx ,a3 Rx ,α 3 =
0 0 1 d3
0 0 0 1
3/10/2015 22
Step 6: Compute the transformation
c1 0 − s1 − s1d 3
s 0 c c d
T 30 = T 10T 12T 32 = 1 1 1 3
0 − 1 0 d1 + d 2
0 0 0 1
3/10/2015 23
Spherical Wrist
3/10/2015 24
Spherical Wrist
3/10/2015 25
Spherical Wrist: Step 1
3/10/2015 26
Spherical Wrist: Step 2
3/10/2015 27
Spherical Wrist: Step 2
3/10/2015 28
Spherical Wrist: Step 4
3/10/2015 29
Step 5: DH Parameters
Link ai αi di θi
4 0 -90 0 θ4*
5 0 90 0 θ5*
6 0 0 d6 θ6*
* joint variable
3/10/2015 30
Step 6: Compute the transformation
− s5c6 s5 s6 c5 c5 d 6
0 0 0 1
3/10/2015 31
RPP + Spherical Wrist
3/10/2015 32
RPP + Spherical Wrist
r11 r12 r13 d x
r r r d
T 06 = T 30T 36 = 21 22 23 y
r31 r32 r33 d z
0 0 0 1
3/10/2015 33
Stanford Manipulator + Spherical Wrist
Link ai αi di θi
1 0 -90 0 θ1*
2 0 90 d2 θ2*
3 0 0 d3* 0
4 0 -90 0 θ4*
5 0 90 0 θ5*
6 0 0 d6 θ6*
* joint variable
3/10/2015 34
SCARA + 1DOF Wrist
Link ai αi di θi
1 a1 0 d1 θ1*
2 a2 180 0 θ2*
3 0 0 d3* 0
4 0 0 d4 θ4* * joint variable
3/10/2015 35