Use the sliders to control the position of the green ball. The robot arm will attempt to keep a hold of the green ball.
This is actually a rather simple-minded specific solution to inverse kinematics, but since the dynamic programming solution is harder to implement in a functional language, I chose this straightforward approach.
This Demonstration was inspired by Professor Oussama Khatib's Introduction to Robotics Course, available free online through Stanford's Engineering Everywhere.
Wolfram Demonstrations Project
Published: March 7 2011