Adaptive Energy Regularization for Autonomous Gait Transition and Energy-Efficient Quadruped Locomotion