Legged walking on inclined surfaces