Development of a Locomotion and Balancing Strategy for Humanoid Robots