自动化立体仓库 - WMS系统
#
whycq
2024-05-05 0146de915c3bb74dcce2c39debcbdb8cf692623d
src/main/java/com/zy/asrs/controller/AgvMapController.java
@@ -73,10 +73,10 @@
                //y = generateMap2Bay(bay);
            }
            ////3楼
            //if(floor == 3){
            //    y = generateMap3Row(row);
            //    x = generateMap3Bay(bay);
            //}
            if(floor == 3){
                y = generateMap3Row(row);
//                x = generateMap3Bay(bay);
            }
            ArrayList rowData = arrayLists.get(x);
            Object o = rowData.get(y);
@@ -121,12 +121,13 @@
    private Integer generateMap3Row(int row){
        int x = row;
        Integer[] rowAdd = {2,4,6,7,8,10,12,13,15,17,19,21,23,24,26,28,30,32};
        Integer[] rowAdd = {2,4,6,8,10,12,14,15,17,19,21,22,24,26,28,30,32};
        for(int i=0; i<rowAdd.length; i++){
            if(row >= rowAdd[i]){
                x ++;
            }
        }
        if(row >8) x += 9;
        return x;
    }