Recursive formulation for the inverse kinematics of redundant robots performing tasks with priority order.