Modify ur_robot_program to allow us to change to teach mode.