Describir: Optimal trajectory generation with direct acceleration reshaping for autonomous vehicles