Tutorial2 PDF
Tutorial2 PDF
Denavit-Hartenberg Denavit-Hartenberg
• Link offset di • Link rotation (joint angle) φi (In the movie - θ)
• The distance between the origins of the coordinate • The angle between the link lenghts αi-1 and αi
frames attached to jointi and jointi+1 • Angle around zi-axis
• Measured along the axis of jointi
3 4
Denavit-Hartenberg Denavit-Hartenberg
• Link length ai (In the movie - r) • Link twist αi
• The perpendicular distance between the axes of • The angle between the axes of jointi and jointi+1
jointi and jointi+1 • Angle around xi-axis
5 6
Denavit-Hartenberg Denavit-Hartenberg
1.Compute the link vector ai and the link length
7 8
Denavit-Hartenberg Denavit-Hartenberg
(i −1 )
T = R zi (ϕ i )T zi (d i )T xi (a i )R xi (α i )
i T = R zi (ϕ i )T zi (d i )T xi (a i )R xi (α i )
(i −1 )
i
1 0 0 0 1 0 0 ai
0 Multiplying the matrices :
0 cos α i − sin α i 0 1 0 0
R xi (α i ) = T xi (a i ) =
0 sin α i cos α i 0 0 0 1 0
cos ϕ i − sin ϕ i cos α i sin ϕ i sin α i a i cos ϕ i
0 0 0 1 0 0 0 1 sin ϕ
(i −1 ) cos ϕ i cos α i − cos ϕ i sin α i a i sin ϕ i
iT =
i
cos ϕ i − sin ϕ i 0 0 1 0 0 0 0 sin α i cos α i di
sin ϕ cos ϕ i 0 0 0 1 0 0
R zi (ϕ i ) = i T zi (d i ) = 0 0 0 1
0 0 1 0 0 0 1 di
In DH only φ and d are allowed to change.
0 0 0 1 0 0 0 1
9 10
11 12
End effector End effector
• We can also express it as • The origin of a coordinate frame relative
• three rotations (around each of the to some base coordinate frame is
coordinate axes) specified by the translation :
• followed by a translation
End effector
End effector
• Any 3D orientation relative to
some base coordinate frame
can be specified by :
three rotations, one around
each of the coordinate axes.
17 18
19 20
End effector End effector
21 22
23 24
DH Example - 3 revolute joints DH Example - 3 revolute joints
Shown in home position Shown with joints in non-zero positions
joint 1
Z0 x3
R z3
Link 2 θ2 θ3
x2
Link 1 Link 3 x1
θ1 Z2
x0
joint 2 joint 3
Z1
L1 L2
Observe that frame i moves with link i
25 26
1.Compute the link vector ai and the link length 1.Compute the link vector ai and the link length
2. Attach coordinate frames to the joint axes 2. Attach coordinate frames to the joint axes
L1 L2 27 28
DH Example Example – the Stanford Arm
where
29 30
X6 X4
X3
d θy
i ai di αi θi d3
Z2
1
X5
X2
Z1
Z3 dy
2 d2
3
4
d1
dy = d tan θ y
5
Y1
dx = d tan θ x
X1
6
31 32
Imaging Imaging x
y3 x y
x
y y Z0 x3 z 0
x3 z3
z 0 z3 z 3 θ2 θ3
x2
• Given a point. What is its image? (dx,dy) x x x1
Z2
θ1
• Solution: y = T y
0
3 x0
Z1
• Convert the point’s coordinates to the z 3 z 0
T = ( N0T )
−1
camera coordinate system. tan (θ y ) =
N z y3
0 tan (θ x ) = 3
• Derive θ and θ
x y
x3 x3
dy = d tan (θ y ) = d
z3 y3
dx = d tan (θ x ) = d
• Calculate dx and dy. 33
x3 x3
34
2 2
1 0 0 0
0 0 0 1
37