A Method for the calculation of the effective Center of Mass of Humanoid robots