自动化立体仓库 - WCS系统
Junjie
2023-07-18 35c3d65ff0926fc7516c8f26c08c63b807806e3a
src/main/java/com/zy/asrs/utils/RouteUtils.java
@@ -39,7 +39,8 @@
    }
    // 获取当前小车未行走的路线
    public static List<Integer> getRoute(boolean sign,Integer drop){
    public static List<Integer> getRoute(Integer groupStart,Integer groupEnd){
        boolean sign = groupStart < groupEnd;
        List<Integer> result = new ArrayList<>();
        List<Integer> groupRoute = new ArrayList<>();
        if (sign){
@@ -47,11 +48,15 @@
        }else {
            groupRoute = TRACK_POSITION_REVERSE_SEQUENCE;
        }
        if (groupRoute.contains(drop)) {
        if (groupRoute.contains(groupStart) && groupRoute.contains(groupEnd)) {
            sign = false;
            for (Integer route : groupRoute) {
                if (route == drop){
                if (route.equals(groupStart)){
                    sign=true;
                }
                if (route.equals(groupEnd)){
                    result.add(route);
                    break;
                }
                if (sign){
                    result.add(route);
@@ -60,9 +65,6 @@
        }else {
            return null;
        }
        return result;
    }
    // 外侧方向的货位  优先入库方向/优先出库方向 ===>> 反之