| | |
| | | }}; |
| | | |
| | | private List<String> CONVEYOR_PICK_CODE_DATA_CACHE = new ArrayList<String>(){{ |
| | | add("00000246"); |
| | | add("00000146"); |
| | | }}; |
| | | |
| | | @Autowired |
| | |
| | | Code startCode = codeService.getCacheById(agvDetail.getRecentCode()); |
| | | |
| | | Set<String> notInCodeSet = new HashSet<>(); |
| | | notInCodeSet.add("00000301"); |
| | | notInCodeSet.add("00000302"); |
| | | notInCodeSet.add("00000303"); |
| | | notInCodeSet.add("00000351"); |
| | | notInCodeSet.add("00000353"); |
| | | notInCodeSet.add("00000401"); |
| | | notInCodeSet.add("00000402"); |
| | | |
| | | notInCodeSet.add("00000311"); |
| | | notInCodeSet.add("00000312"); |
| | | notInCodeSet.add("00000313"); |
| | | notInCodeSet.add("00000361"); |
| | | notInCodeSet.add("00000363"); |
| | | notInCodeSet.add("00000411"); |
| | | notInCodeSet.add("00000412"); |
| | | |
| | | notInCodeSet.add("00000046"); |
| | | notInCodeSet.add("00000047"); |
| | | |
| | | Collections.shuffle(CODE_DATA_CACHE); |
| | | |
| | |
| | | |
| | | Runnable patrolTask = () -> { |
| | | try { |
| | | // executePatrolLogic(agvNo); |
| | | executeUShapeConveyor(agvNo); |
| | | executePatrolLogic(agvNo); |
| | | // executeUShapeConveyor(agvNo); |
| | | } catch (Exception e) { |
| | | log.error("执行AGV{}跑库任务时发生异常: {}", agvNo, e.getMessage()); |
| | | log.error("执行AGV{}跑库任务时发生异常", agvNo, e); |
| | | } |
| | | }; |
| | | |