i
i
i
i
i
i
i
i
274 11. Navigation and Movement in VR
The Jacobian J is of course dependent on , so an initial guess must be made
for the values
1
,
2
..
n
. In the case of the IK problem, the initial guess
is simply the current configuration. After the first step, we proceed to find a
new
by iterating:
n+1
=
n
+ =
n
+ J
−1
X,
where n is a count of the number of iterations, and at each step J
−1
is recal-
culated from the current
n
.
11.4.2 Solving the IK Problem in Two Dimensions
We will look at an example of a three-link articulation. Because it’s restricted
to two dimensions, it moves only in the plane of the page. When equations
have been obtained for this specific case, we will see how they may be ex-
tended to a system with n links. The links are fixed at one end, which we will
designate as the origin (0, 0). The other end, at point (x, y), is moved towards
a goal point, which it may or may not reach. We hope a solution to the IK
problem will reveal where it gets to.
A solution of Equation (11.9) gives us the orientation of each link in the
chain, and from that we can find out how close to the goal the endpoint
actually gets. F igure 11.7(a) illustrates several possible configurations for a
three-link articulation, and Figure 11.7(b) gives the notation used to specify
and solve the three-link IK problem. The first link is anchored at (0, 0) and
lies at an angle of
1
to the x-axis. The lengths of the links are l
1
, l
2
and
l
3
, and link 2 makes an angle of
2
from link 1. The endpoint P
4
lies at
coordinate (x, y).
Figure 11.7(b) shows us that if we know the values of P
1
(anchor point),
l
1
, l
2
, l
3
(lengths of the links),
1
,
2
and
3
(the relative orientation between
one link and the next) then the current position of every joint in the link is
fully specified (including the endpoint P
4
).
Since P
1
, l
1
, l
2
and l
3
are constant and independent of the orientation
of the linkage, only the
i
are the unknowns in our IK function, Equa-
tion (11.9). For our specific example,
P
4
= f(
1
,
2
,
3
).
Note carefully how
i
is specified as an angle measured anti-clockwise
from the direction in which link (i − 1) is pointing to the direction in which