Optimizable control barrier functions to improve feasibility and add behavior diversity while ensuring safety