Trajectory planning for car-like vehicles: A modular approach