| | |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.model.NavigateNode; |
| | | |
| | | /** |
| | | * 库位编号和A*算法的xy轴转换工具类 |
| | |
| | | return newPosition; |
| | | } |
| | | |
| | | //WCS系统库位号转路径算法节点 |
| | | public static NavigateNode locNoToNode(String locNo) { |
| | | int col = Integer.parseInt(locNo.substring(0, 2)); |
| | | int row = Integer.parseInt(locNo.substring(2, 5)); |
| | | int[] newPosition = coverPosition(col,row); |
| | | NavigateNode node = new NavigateNode(col, row); |
| | | node.setZ(Utils.getLev(locNo)); |
| | | return node; |
| | | } |
| | | |
| | | //牛眼坐标转WCS库位号 |
| | | public static String xyzToLocNo(int x, int y, int z) { |
| | | int[] ints = NyXyzToWCSXyz(x, y, z); |