Use Robo-Nav to teach robot motion. The app based software from QPoint Robotic Solutions takes care of the rest