public static int lateralShiftForTurn(int turn) { switch (turn) { case MovePath.STEP_TURN_LEFT : return MovePath.STEP_LATERAL_LEFT; case MovePath.STEP_TURN_RIGHT : return MovePath.STEP_LATERAL_RIGHT; default : return turn;
public static int lateralShiftForTurn(int turn, int direction) { if (direction == MovePath.STEP_FORWARDS) { switch (turn) { case MovePath.STEP_TURN_LEFT : return MovePath.STEP_LATERAL_LEFT; case MovePath.STEP_TURN_RIGHT : return MovePath.STEP_LATERAL_RIGHT; default : return turn; } } else { switch (turn) { case MovePath.STEP_TURN_LEFT : return MovePath.STEP_LATERAL_LEFT_BACKWARDS; case MovePath.STEP_TURN_RIGHT : return MovePath.STEP_LATERAL_RIGHT_BACKWARDS; default : return turn; }
    public static int lateralShiftForTurn(int turn) {        switch (turn) {            case MovePath.STEP_TURN_LEFT :                return MovePath.STEP_LATERAL_LEFT;            case MovePath.STEP_TURN_RIGHT :                return MovePath.STEP_LATERAL_RIGHT;            default :                return turn;        }    }