| | |
| | | motion.setOrigin(String.valueOf(liftDispatcher.getLiftLevOffset(target.getLiftNo(), origin.getLev()))); |
| | | } |
| | | motion.setTarget(String.valueOf(liftDispatcher.getLiftLevOffset(target.getLiftNo(), target.getLev()))); |
| | | })); |
| | | |
| | | // if (target.getUpdateLiftNo() != null && target.getWrkNo() != null) { |
| | | // if (target.getUpdateLiftNo()) { |
| | | // |
| | | // } |
| | | // } |
| | | if (target.getSync() != null) { |
| | | motion.setSync(target.getSync()); |
| | | } |
| | | |
| | | if (target.getReleaseLift() != null) { |
| | | motion.setReleaseLift(target.getReleaseLift()); |
| | | } |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | |
| | | |
| | | if (target.getSync() != null) { |
| | | motion.setSync(target.getSync()); |
| | | } |
| | | |
| | | if (target.getReleaseLift() != null) { |
| | | motion.setReleaseLift(target.getReleaseLift()); |
| | | } |
| | | })); |
| | | |
| | |
| | | motion.setDeviceCtg(DeviceCtgType.LIFT.val()); |
| | | motion.setDevice(String.valueOf(target.getLiftNo())); |
| | | motion.setMotionCtg(MotionCtgType.LIFT_LOCK.val()); |
| | | |
| | | if (target.getSync() != null) { |
| | | motion.setSync(target.getSync()); |
| | | } |
| | | |
| | | if (target.getReleaseLift() != null) { |
| | | motion.setReleaseLift(target.getReleaseLift()); |
| | | } |
| | | })); |
| | | |
| | | return motionList; |
| | |
| | | motion.setDeviceCtg(DeviceCtgType.LIFT.val()); |
| | | motion.setDevice(String.valueOf(target.getLiftNo())); |
| | | motion.setMotionCtg(MotionCtgType.LIFT_UNLOCK.val()); |
| | | |
| | | if (target.getSync() != null) { |
| | | motion.setSync(target.getSync()); |
| | | } |
| | | |
| | | if (target.getReleaseLift() != null) { |
| | | motion.setReleaseLift(target.getReleaseLift()); |
| | | } |
| | | })); |
| | | |
| | | return motionList; |
| | |
| | | motion.setTemp(String.valueOf(origin.getLiftNo()));//保存提升机号 |
| | | motion.setDockNo(String.valueOf(target.getStaNo())); |
| | | break; |
| | | case SHUTTLE_MOVE_STANDBY://穿梭车移动到待机位 |
| | | motion.setTarget(null);//等待自动搜索 |
| | | motion.setTemp(target.getLocNo());//全部待机位 |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | case SHUTTLE_PALLET_DOWN://托盘下降 |
| | | |
| | | break; |
| | | case SHUTTLE_CHARGE_ON://充电开 |
| | | |
| | | break; |
| | | case SHUTTLE_CHARGE_OFF://充电关 |
| | | |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | public List<Motion> shuttleCharge(MotionDto origin, MotionDto target) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | motionList.add(Motion.build(motion -> { |
| | | motion.setDeviceCtg(DeviceCtgType.SHUTTLE.val()); |
| | | motion.setDevice(String.valueOf(target.getShuttleNo())); |
| | | |
| | | motion.setMotionCtg(MotionCtgType.SHUTTLE_CHARGE_ON.val()); |
| | | |
| | | })); |
| | | |
| | |
| | | return motionList; |
| | | } |
| | | |
| | | // Map ----------------------------------------------------------------------------- |
| | | |
| | | /** |
| | | * 地图路径锁定 |
| | | */ |
| | | public List<Motion> mapLockPath(MotionDto origin, MotionDto target) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | motionList.add(Motion.build(motion -> { |
| | | motion.setDeviceCtg(DeviceCtgType.MAP.val()); |
| | | motion.setDevice(String.valueOf(target.getShuttleNo())); |
| | | motion.setMotionCtg(MotionCtgType.MAP_LOCK_PATH.val()); |
| | | |
| | | motion.setTarget(target.getLocNo()); |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | /** |
| | | * 地图路径解锁 |
| | | */ |
| | | public List<Motion> mapUnlockPath(MotionDto origin, MotionDto target) { |
| | | List<Motion> motionList = new ArrayList<>(); |
| | | |
| | | motionList.add(Motion.build(motion -> { |
| | | motion.setDeviceCtg(DeviceCtgType.MAP.val()); |
| | | motion.setDevice(String.valueOf(target.getShuttleNo())); |
| | | motion.setMotionCtg(MotionCtgType.MAP_UNLOCK_PATH.val()); |
| | | |
| | | motion.setTarget(target.getLocNo()); |
| | | })); |
| | | |
| | | return motionList; |
| | | } |
| | | |
| | | } |