Continuous path control for robots

How would you program continuous path control in a robot?