An articulated body can propel and steer itself in a
perfect fluid by changing its shape only. Our strategy for motion
planning for the submerged body is based on finding the optimal
shape changes that produce a desired net locomotion; that
is, motion planning is formulated as a nonlinear optimization
problem.