LoComposition:  Terrain-Adaptive Energy-Efficient Quadruped Locomotion without Gait Priors