6. CS generation and obstacle avoidance of a 2 DOF planar arm.