| | |
| | | } |
| | | break; |
| | | case MOVE: |
| | | endCode = codeService.selectByData(destination); |
| | | endCode = codeService.getCacheByData(destination); |
| | | break; |
| | | default: |
| | | return false; |
| | |
| | | } |
| | | |
| | | boolean first = true; |
| | | long startTime = System.currentTimeMillis(); |
| | | for (Segment segment : segmentList) { |
| | | |
| | | // 分段所属的Task |
| | |
| | | |
| | | String next = pathListPart.get(i); |
| | | |
| | | Code nextCode = codeService.selectByData(next); |
| | | Code nextCode = codeService.getCacheByData(next); |
| | | Double nextDirection = mapService.calculateDirection(lastCode, nextCode, angleOffsetVal); |
| | | |
| | | boolean reverse = false; |
| | |
| | | } |
| | | |
| | | } |
| | | System.out.println("save data: " + (System.currentTimeMillis() - startTime)); |
| | | |
| | | // finish |
| | | actionList.add(new Action( |
| | |
| | | } |
| | | } |
| | | |
| | | log.info(agvNo + "号Agv动作组装完成,指令数量:" + newActionList.size()); |
| | | log.info("{}号Agv动作组装完成,指令数量:{}", agvNo, newActionList.size()); |
| | | } catch (Exception e) { |
| | | log.error("mainService.generateAction", e); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |