Programming a robot by physically moving it through the trajectory you want it to follow is called:
contact sensing control
continuous-path control
robot vision control
pick-and-place control