|
|
@ -172,11 +172,15 @@ public class RcsController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
LogisticsRuntime runtime = LogisticsRuntimeService.INSTANCE.getByProjectEnv(projectUUID, envId); |
|
|
LogisticsRuntime runtime = LogisticsRuntimeService.INSTANCE.getByProjectEnv(projectUUID, envId); |
|
|
StaticItem sourceItem = runtime.getStaticItemById(fromStoreLoc); |
|
|
|
|
|
|
|
|
StoreLocation sourceLocation = StoreLocation.of(fromStoreLoc, "/"); |
|
|
|
|
|
StoreLocation targetLocation = StoreLocation.of(targetStoreLoc, "/"); |
|
|
|
|
|
|
|
|
|
|
|
StaticItem sourceItem = runtime.getStaticItemById(sourceLocation.rackId()); |
|
|
if (sourceItem == null) { |
|
|
if (sourceItem == null) { |
|
|
return Model.newFail("fromStoreLoc storePoint not found!"); |
|
|
return Model.newFail("fromStoreLoc storePoint not found!"); |
|
|
} |
|
|
} |
|
|
StaticItem targetItem = runtime.getStaticItemById(targetStoreLoc); |
|
|
StaticItem targetItem = runtime.getStaticItemById(targetLocation.rackId()); |
|
|
if (targetItem == null) { |
|
|
if (targetItem == null) { |
|
|
return Model.newFail("targetStoreLoc storePoint not found!"); |
|
|
return Model.newFail("targetStoreLoc storePoint not found!"); |
|
|
} |
|
|
} |
|
|
@ -217,8 +221,8 @@ public class RcsController { |
|
|
bizTask.setBizType(BizTaskType.MOVE.toString()); |
|
|
bizTask.setBizType(BizTaskType.MOVE.toString()); |
|
|
bizTask.setLpn("N/A"); |
|
|
bizTask.setLpn("N/A"); |
|
|
bizTask.setPriority(Conv.asInteger(option.get("priority"), 1)); |
|
|
bizTask.setPriority(Conv.asInteger(option.get("priority"), 1)); |
|
|
bizTask.setTaskFrom(sourceItem.getId()); |
|
|
bizTask.setTaskFrom(fromStoreLoc); |
|
|
bizTask.setTaskTo(targetItem.getId()); |
|
|
bizTask.setTaskTo(targetStoreLoc); |
|
|
bizTask.setAllocatedExecutorId(agvId); |
|
|
bizTask.setAllocatedExecutorId(agvId); |
|
|
bizTask.setBizTaskPayload("N/A"); |
|
|
bizTask.setBizTaskPayload("N/A"); |
|
|
bizTask.setBizTaskErrorInfo("N/A"); |
|
|
bizTask.setBizTaskErrorInfo("N/A"); |
|
|
@ -229,8 +233,8 @@ public class RcsController { |
|
|
|
|
|
|
|
|
CarryTask carryTask = new CarryTask( |
|
|
CarryTask carryTask = new CarryTask( |
|
|
agvId, "dummy", 1, |
|
|
agvId, "dummy", 1, |
|
|
new StoreLocation("rack1", 0, 1, 0), |
|
|
sourceLocation, |
|
|
new StoreLocation("54", 0, 0, 0) |
|
|
targetLocation |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
runtime.pathPlannerMap.get(executorItem.getT()) |
|
|
runtime.pathPlannerMap.get(executorItem.getT()) |
|
|
|