Stability and Gait Optimization of a Hybrid Legged-Wheeled Rover