Balancing control of biped walking via switching of multiple objective trajectories