Predictive Control for Walking