| | |
| | | assert agvSpeedType != null; |
| | | |
| | | AgvDetail agvDetail = agvDetailService.selectByAgvId(agvId); |
| | | assert agvDetail != null; |
| | | |
| | | List<Action> actionList = new ArrayList<>(); |
| | | // start node |
| | |
| | | nextDirection = workDirection; |
| | | reverse = true; |
| | | } |
| | | if (!lastDirection.equals(nextDirection) || actionList.size() == 0) { |
| | | if (!lastDirection.equals(nextDirection) || actionList.isEmpty()) { |
| | | // turn |
| | | actionList.add(new Action( |
| | | null, // 编号 |
| | |
| | | |
| | | if (!Cools.isEmpty(pathList)) { |
| | | pathList.remove(0); |
| | | mapDataDispatcher.clearDynamicMatrixByCodeList(null, pathList); |
| | | List<int[]> codeMatrixIdxList = mapDataDispatcher.getCodeMatrixIdxList(null, pathList); |
| | | mapDataDispatcher.clearDynamicMatrixByCodeList(null, codeMatrixIdxList); |
| | | } |
| | | |
| | | throw new RuntimeException("generateAction method caught an exception, rolling back transaction.", e); |