|
@@ -138,8 +138,8 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
- //todo $需要换地址$
|
|
|
- bool = this.cutToolActionCondition("/api/getCutterDeviceIsTake", taskNode,pointId);
|
|
|
+ //todo 与ccs联调需要释放 $需要换地址$
|
|
|
+ //bool = this.cutToolActionCondition("/api/getCutterDeviceIsTake", taskNode,pointId);
|
|
|
|
|
|
if(!bool){
|
|
|
msgUtil.createWarnLog("刀具节点起始位取条件不满足","DataException");
|
|
@@ -209,7 +209,7 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
|
locationMap.put("taskType", DictionaryKey.TASK_TYPE.get("CARRY"));
|
|
|
locationMap.put("carryType", "1");
|
|
|
returnMap.put("data", locationMap);
|
|
|
- returnMap.put("method", "RobotAction");
|
|
|
+ returnMap.put("method", "CutterRobotAction");
|
|
|
returnMap.put("result", true);
|
|
|
returnMap.put("fromStorge", startStorge);
|
|
|
returnMap.put("toStorge", targetStorge);
|
|
@@ -257,7 +257,8 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- bool = this.cutToolActionCondition("/api/getCutterDeviceIsPut", taskNode,pointId);
|
|
|
+ //todo 与ccs联调需要释放 $需要换地址$
|
|
|
+ //bool = this.cutToolActionCondition("/api/getCutterDeviceIsPut", taskNode,pointId);
|
|
|
|
|
|
if(!bool){
|
|
|
msgUtil.createWarnLog("刀具节点目标位放置条件不满足","DataException");
|
|
@@ -287,8 +288,8 @@ public class ToolRobotStrategy implements RobotStrategy {
|
|
|
//机床刀具库条件判断处理
|
|
|
private void CNCTActionHandle(TaskNode taskNode, boolean isPut, String pointId, OrderTask orderTask){
|
|
|
JSONObject cutToolObject = new JSONObject();
|
|
|
- cutToolObject.put("taskId", taskNode.getTaskId());
|
|
|
- cutToolObject.put("taskNodeId", taskNode.getId());
|
|
|
+ cutToolObject.put("taskId", taskNode.getTaskId().toString());
|
|
|
+ cutToolObject.put("taskNodeId", taskNode.getId().toString());
|
|
|
JSONObject cutToolData = new JSONObject();
|
|
|
cutToolData.put("taskType", "1");
|
|
|
cutToolData.put("carryType", "1");
|