Lec04 - Forward - Inversekinematics - 2024
Lec04 - Forward - Inversekinematics - 2024
Vår 2011
side 2
side 3
side 4
side 6
c1 − s1 0 0 1 0 0 0 1 0 0 0
s c1 0 0 0 0 1 0 0 1 0 0
A1 = 1 , A2 = , A3 =
0 0 1 d1 0 − 1 0 d2 0 0 1 d3
0 0 0 1 0 0 0 1 0 0 0 1
c1 0 − s1 − s1d 3
s 0 c1 c1d 3
T3 = A1A2 A3 =
0 1
0 − 1 0 d1 + d 2
0 0 0 1
side 7
side 8
− s5 c 6 s5 c 6 c5 c5d 6
0 0 0 1
side 9
1 0 0 d1 θ1
2 0 -90 d2 0
3 0 0 d3 0
4 0 -90 0 θ4
o3, o4, o5 are all at
5 0 90 0 θ5
the same point oc
6 0 0 d6 θ6
side 10
side 11
Choose xi axes
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 side 12
c1 0 − s1 0 c 2 0 s2 0 1 0 0 0
s 0 c1 0 s 0 − c20 0 1 0 0
A1 = 1 , A2 = 2 , A3 =
0 −1 0 0 0 1 0 d2 0 0 1 d3
0 0 0 1 0 0 0 1 0 0 0 1
c 4 0 − s 4 0 c5 0 s5 0 c 6 − s6 0 0
s 0 c4 0 s 0 − c5 0 s c6 0 0
A4 = 4 , A5 = 5 , A6 = 6
0 −1 0 0 0 − 1 0 0 0 0 1 d6
0 0 0 1 0 0 0 1 0 0 0 1
side 13
Choose xi axes
link ai αi di θi
1 a1 0 0 θ1
2 a2 180 0 θ2
3 0 0 d3 0
4 0 0 d4 θ4
side 15
0 0 − 1 − d3 − d 4
0 0 0 1
side 16
Hazardous environments
side 17
side 18
side 19
x1 a1 cos(θ1 )
y = a sin(θ )
1 1 1
2
x 2 a1 cos(θ1 ) + a2 cos(θ1 + θ 2 ) x
y = a sin(θ ) + a sin(θ + θ ) ≡
2 1 1 2 1 2 y t
1 0
xˆ 0 = , yˆ 0 =
0 1 0 1
Orientation of the tool frame:
cos(θ1 + θ 2 ) − sin(θ1 + θ 2 )
xˆ 2 = ˆ =
2 cos(θ + θ )
, y
sin( θ 1 + θ 2
) 1 2
xˆ ⋅ xˆ yˆ 2 ⋅ xˆ 0 cos(θ1 + θ 2 ) − sin(θ1 + θ 2 )
R20 = 2 0 = sin(θ + θ ) cos(θ + θ )
x2 ⋅ y 0 y 2 ⋅ y 0
ˆ ˆ ˆ ˆ 1 2 1 2
side 20
R o
H= ∈ SE (3 )
0 1
Find all solutions to:
Tn0 (q1,..., qn ) = H
Noting that:
Tn0 (q1,..., qn ) = A1 (q1 ) ⋅ ⋅ ⋅ An (qn )
side 21
side 23
For such systems, we can split the inverse kinematics problem into two parts:
Inverse position kinematics: position of the wrist center
R60 (q1,..., q6 ) = R
o60 (q1,..., q6 ) = o
Use the position of the wrist center to determine the first three joint angles…
side 24
0
o = o60 = oco + d 6R 0
1
Rearranging: 0
oco = o − d 6R 0
1
xc o x − d 6 r13
y = o − d r
c y 6 23
zc oz − d 6 r33
side 25
Note that:
R = R30R63
To solve for the final three joint angles:
( )
R63 = R30
−1
( ) T
R = R30 R
side 26
− atan2(− y , x ) y <0
y
π − atan − y ≥ 0, x < 0
x
atan2(y , x ) = atan y y ≥ 0, x ≥ 0
x
π
y > 0, x = 0
2
undefined y = 0, x = 0
side 28
θ1 = π + atan2(xc , y c )
side 29
side 30
α = atan2 xc + y c − d 2 , d
2 2
= atan2 − xc + y c − d 2 ,−d
2 2
side 31
Finding θ2 and θ3 is identical to the planar two-link manipulator we have seen previously
r 2 + s 2 − a2 − a3
2 2
cos θ 3 =
2a2a3
r 2 = xc + y c − d 2
2 2
s = zc − d1
xc + y c − d 2 + (zc − d1 ) − a2 − a3
2 2 2 2 2
⇒ cos θ 3 = ≡D
2a2a3
(
θ 3 = atan2 D,± 1 − D 2 )
side 32
Thus there are two solutions for the pair (θ2, θ3)
side 33
side 34
θ1 = atan2(xc , y c )
Again, if there is an offset, there
s = zc − d1
d3 = r 2 + s 2
= xc + y c + (zc − d1 )
2 2 2
side 35
side 36