|
@@ -134,10 +134,11 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
Object cutToolAction = msgUtil.redis_get(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION);
|
|
Object cutToolAction = msgUtil.redis_get(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION);
|
|
if(ObjectUtil.isEmpty(cutToolAction)){
|
|
if(ObjectUtil.isEmpty(cutToolAction)){
|
|
this.CNCTActionHandle(taskNode, false, pointId, orderTask);
|
|
this.CNCTActionHandle(taskNode, false, pointId, orderTask);
|
|
- msgUtil.redis_set(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION, "0",10, TimeUnit.MINUTES);
|
|
|
|
|
|
+ msgUtil.redis_set(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION, taskNode.getId().toString(),10, TimeUnit.MINUTES);
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
//todo 与ccs联调需要释放 $需要换地址$
|
|
//todo 与ccs联调需要释放 $需要换地址$
|
|
bool = this.cutToolActionCondition("/api/getCutterDeviceIsTake", taskNode,pointId);
|
|
bool = this.cutToolActionCondition("/api/getCutterDeviceIsTake", taskNode,pointId);
|
|
|
|
|
|
@@ -207,7 +208,7 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
}
|
|
}
|
|
|
|
|
|
locationMap.put("taskType", DictionaryKey.TASK_TYPE.get("CARRY"));
|
|
locationMap.put("taskType", DictionaryKey.TASK_TYPE.get("CARRY"));
|
|
- locationMap.put("carryType", "1");
|
|
|
|
|
|
+ locationMap.put("carryType", DictionaryKey.CARRY_TYPE.get("TOOL_HAND"));
|
|
returnMap.put("data", locationMap);
|
|
returnMap.put("data", locationMap);
|
|
returnMap.put("method", "CutterRobotAction");
|
|
returnMap.put("method", "CutterRobotAction");
|
|
returnMap.put("result", true);
|
|
returnMap.put("result", true);
|
|
@@ -252,13 +253,17 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
Object cutToolAction = msgUtil.redis_get(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION);
|
|
Object cutToolAction = msgUtil.redis_get(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION);
|
|
if(ObjectUtil.isEmpty(cutToolAction)){
|
|
if(ObjectUtil.isEmpty(cutToolAction)){
|
|
this.CNCTActionHandle(taskNode, true, pointId, orderTask);
|
|
this.CNCTActionHandle(taskNode, true, pointId, orderTask);
|
|
- msgUtil.redis_set(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION, "1",10, TimeUnit.MINUTES);
|
|
|
|
|
|
+ msgUtil.redis_set(DemoLineConstant.DEMOLINE_CUT_DEVICE_ACTION, taskNode.getId().toString(),10, TimeUnit.MINUTES);
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+<<<<<<< Updated upstream
|
|
//todo 与ccs联调需要释放 $需要换地址$
|
|
//todo 与ccs联调需要释放 $需要换地址$
|
|
bool = this.cutToolActionCondition("/api/getCutterDeviceIsPut", taskNode,pointId);
|
|
bool = this.cutToolActionCondition("/api/getCutterDeviceIsPut", taskNode,pointId);
|
|
|
|
+=======
|
|
|
|
+ //bool = this.cutToolActionCondition("/api/getCutterDeviceIsPut", taskNode,pointId);
|
|
|
|
+>>>>>>> Stashed changes
|
|
|
|
|
|
if(!bool){
|
|
if(!bool){
|
|
msgUtil.createWarnLog("刀具节点目标位放置条件不满足","DataException");
|
|
msgUtil.createWarnLog("刀具节点目标位放置条件不满足","DataException");
|