The Safety Filter: A Unified View of Safety-Critical Control in Autonomous Systems