We are develop algorithms for stable locomotion of leg robots based on model predictive control and reinforcement learning with special stabilizing machinery. This will allow stable walking especially walking up and down stairs of legged robotic platforms for better usability in civil, and Industrial environments.