Humanoid Robot Motion Control for Ramps and Stairs