Enhance Planning with Physics-informed Safety Controller for End-to-end Autonomous Driving