Walking trajectory control for a biped robot