Separate pitch and roll angle when calculating angular difference of footsteps