Professional Documents
Culture Documents
3: Inverse Kinematics
Ch. 4: Velocity Kinematics
• Use the position of the wrist center to determine the first three joint
angles…
xc o x − d 6 r13
y = o − d r
c y 6 23
zc oz − d 6 r33
( )
R63 = R30
−1
( )T
R = R30 R
− s5 c 6 s5 c 6 c5 c5d 6
0 0 0 1
c5 = r33 , s5 = ± 1 − r33
2
( )
R63 = R30
−1
( ) T
R = R30 R
inverse orientation
kinematics
link ai αi di θi
• To solve the inverse orientation kinematics:
1 0 90 d1 θ1
R = R R
3
6 ( )0 T
3
– For a given desired R 2 a2 0 0 θ2
3 a3 0 0 θ3
• Finally, we can solve for the two remaining angles as follows:
θ 4 = atan2(c1c 23 r13 + s1c 23 r23 + s23 r33 ,−c1s23 r13 − s1s23 r23 + c 23 r33 )
θ 6 = atan2(− s1r11 + c1r21, s1r12 − c1r22 )
• For the singular configuration (θ5 = 0), we can only find θ4 + θ6 thus it is
common to arbitrarily set θ4 and solve for θ6
lin ai αi di θi
k
1 0 90 d1 θ1
2 a2 0 0 θ2
3 a3 0 0 θ3
4 0 -90 0 θ4
5 0 0 0 θ5
zc oz − d 6 r33
(
θ 3 = atan2 D,± 1 − D 2 )
• Where d is the shoulder offset (if any) and D is given by:
xc + y c − d 2 + (zc − d1 ) − a2 − a3
2 2 2 2 2
D=
2a2a3
θ 6 = atan2(− s1r11 + c1r21, s1r12 − c1r22 )
0 0 − 1 − d3 − d 4
0 0 0 1
lin ai αi di θi
k
1 a1 0 0 θ1
2 a2 180 0 θ2
3 0 0 d3 0
4 0 0 d4 θ4
c2 =
2a1a2
• This gives two solutions for θ2: θ 2 = atan2 c 2 ,± 1 − c 2
2
• Once θ2 is known, we can solve for θ1:
θ1 = atan2(o x , oy ) - atan2(a1 + a2c 2 , a2s2 )
• θ4 is now give as: θ 4 = θ1 + θ 2 − atan2(r11, r12 )
• Finally, it is trivial to see that d3 = oz + d4
The Interventional Centre
Example: number of solutions
• How many solutions to the inverse position kinematics of a planar 3-link
arm?
– given a desired d=[dx dy]T, the forward kinematics can be written as:
d x = a1c1 + a2c12 + a3c123
d y = a1s1 + a2s12 + a3s123
– Therefore the inverse kinematics problem is under-constrained (two equations
and three unknowns)