Trajectories planning by assigning position and velocity laws