Trajectory planning for traffic safety with dynamic ethical risk adjustment | Synapse