Obstacle Avoidance of the Swan''s Neck Manipulator