In this paper, first we present different curves used in path generation. We show the advantages and drawbacks of each curve. Next, we propose a method of calculation of a complex smooth path. This smooth path minimizes the integral-square-jerk. Finally, we introduce a variable velocity along the path. The velocity of the robot is a function of path curvature so as to control the centrifugal acceleration.