Examination of the optimal flat ground movement pattern for a multi-body robot