Integrating ego-conditioned prediction and gap-driven motion planning for safe autonomous driving | Synapse