Control the arm to achieve the goal by programming