An algorithm for on-line inverse kinematics with path tracking capability under velocity and acceleration constraints