Movement path drawing

I want to draw a curve and the robot follows it.