|
@@ -22,17 +22,17 @@ public class ManualTaskOperatorUtil {
|
|
|
/**
|
|
/**
|
|
|
* 黄哥模拟接口地址,模式调试时改成38
|
|
* 黄哥模拟接口地址,模式调试时改成38
|
|
|
*/
|
|
*/
|
|
|
- private static String hostSyetemUrl = "http://192.168.170.248:8081/";
|
|
|
|
|
|
|
+ private static String hostSyetemUrl = "http://127.0.0.1:8089/";
|
|
|
/**
|
|
/**
|
|
|
* agv运输
|
|
* agv运输
|
|
|
*/
|
|
*/
|
|
|
private static String agvURL = "http://localhost:9099/api/authority/mock/mockWms";
|
|
private static String agvURL = "http://localhost:9099/api/authority/mock/mockWms";
|
|
|
// 保障平台
|
|
// 保障平台
|
|
|
- private static String ZK_ip_zlzx = "192.168.170.130";
|
|
|
|
|
|
|
+ private static String ZK_ip_zlzx = "192.168.11.130";
|
|
|
//框体
|
|
//框体
|
|
|
- private static String ZK_ip_rxx = "192.168.170.170";
|
|
|
|
|
|
|
+ private static String ZK_ip_rxx = "192.168.11.170";
|
|
|
//舱体
|
|
//舱体
|
|
|
- private static String ZK_ip_zndy = "192.168.170.150";
|
|
|
|
|
|
|
+ private static String ZK_ip_zndy = "192.168.11.150";
|
|
|
|
|
|
|
|
// 障平台PLC端口
|
|
// 障平台PLC端口
|
|
|
private static String ZK_ip_zlzx_port = "102";
|
|
private static String ZK_ip_zlzx_port = "102";
|
|
@@ -253,11 +253,11 @@ public class ManualTaskOperatorUtil {
|
|
|
// 舱体(柔性线) 代码先写死,6个动作,后续根据resource_code表中获取
|
|
// 舱体(柔性线) 代码先写死,6个动作,后续根据resource_code表中获取
|
|
|
// 执行第一个任务
|
|
// 执行第一个任务
|
|
|
if("get".equals(taskType) && currentIndex == 1){
|
|
if("get".equals(taskType) && currentIndex == 1){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetQualityCenter";
|
|
|
String location = manualInfo.getStartpointId();
|
|
String location = manualInfo.getStartpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendQualityCenter";
|
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
|
|
|
|
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
@@ -267,24 +267,24 @@ public class ManualTaskOperatorUtil {
|
|
|
String location = manualInfo.getEndpointId();
|
|
String location = manualInfo.getEndpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}if("get".equals(taskType) && currentIndex == 4){
|
|
}if("get".equals(taskType) && currentIndex == 4){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetQualityCenter";
|
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
|
|
|
|
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}else if("put".equals(taskType) && currentIndex == 5){
|
|
}else if("put".equals(taskType) && currentIndex == 5){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendQualityCenter";
|
|
|
String location = manualInfo.getEndpointId();
|
|
String location = manualInfo.getEndpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}
|
|
}
|
|
|
manualInfo.setNextTaskNodeIndex(nextTaskNodeIndex);
|
|
manualInfo.setNextTaskNodeIndex(nextTaskNodeIndex);
|
|
|
}else if(robotNodes.size() == 3 && currentIndex == 1){
|
|
}else if(robotNodes.size() == 3 && currentIndex == 1){
|
|
|
if("get".equals(taskType) ){
|
|
if("get".equals(taskType) ){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetQualityCenter";
|
|
|
String location = manualInfo.getStartpointId();
|
|
String location = manualInfo.getStartpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendQualityCenter";
|
|
|
String location = manualInfo.getEndpointId();
|
|
String location = manualInfo.getEndpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}
|
|
}
|
|
@@ -298,11 +298,11 @@ public class ManualTaskOperatorUtil {
|
|
|
// 舱体(柔性线) 代码先写死,6个动作,后续根据resource_code表中获取
|
|
// 舱体(柔性线) 代码先写死,6个动作,后续根据resource_code表中获取
|
|
|
// 执行第一个任务
|
|
// 执行第一个任务
|
|
|
if("get".equals(taskType) && currentIndex == 1){
|
|
if("get".equals(taskType) && currentIndex == 1){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetQualityCenter";
|
|
|
String location = manualInfo.getStartpointId();
|
|
String location = manualInfo.getStartpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendQualityCenter";
|
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
|
|
|
|
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
@@ -312,24 +312,24 @@ public class ManualTaskOperatorUtil {
|
|
|
String location = manualInfo.getEndpointId();
|
|
String location = manualInfo.getEndpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}if("get".equals(taskType) && currentIndex == 4){
|
|
}if("get".equals(taskType) && currentIndex == 4){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetQualityCenter";
|
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
productionresourcePositions = productionresourcePositions.stream().filter(p->null == p.getGoodsId() && "1".equals(p.getLockStatus())).collect(toList());
|
|
|
|
|
|
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
String location = productionresourcePositions.get(0).getPointId().toString();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}else if("put".equals(taskType) && currentIndex == 5){
|
|
}else if("put".equals(taskType) && currentIndex == 5){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendQualityCenter";
|
|
|
String location = manualInfo.getEndpointId();
|
|
String location = manualInfo.getEndpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}
|
|
}
|
|
|
manualInfo.setNextTaskNodeIndex(nextTaskNodeIndex);
|
|
manualInfo.setNextTaskNodeIndex(nextTaskNodeIndex);
|
|
|
}else if(robotNodes.size() == 3){
|
|
}else if(robotNodes.size() == 3){
|
|
|
if("get".equals(taskType) && currentIndex == 1){
|
|
if("get".equals(taskType) && currentIndex == 1){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/GetQualityCenter";
|
|
|
String location = manualInfo.getStartpointId();
|
|
String location = manualInfo.getStartpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
}else if("put".equals(taskType) && currentIndex == 2){
|
|
|
- String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendFlexibleWire";
|
|
|
|
|
|
|
+ String hostSyetemTaskUrl = hostSyetemUrl + "/api/SendQualityCenter";
|
|
|
String location = manualInfo.getEndpointId();
|
|
String location = manualInfo.getEndpointId();
|
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
setProcessInfo(robotNodes, processInfo, hostSyetemTaskUrl, location, deviceUrl, devicePort);
|
|
|
}
|
|
}
|