Envoyer par SMS: Optimal trajectory generation with direct acceleration reshaping for autonomous vehicles