A Control Architecture with Online Predictive Planning for Position and Torque Controlled Walking of Humanoid Robots — arXiv2