Whole-body model-predictive control applied to the HRP-2 humanoid