|
@ -638,7 +638,7 @@ public class AgvServiceImpl implements AgvService { |
|
|
String agvurl = acsConfigService.findConfigFromCache().get(AcsConfig.AGVURL); |
|
|
String agvurl = acsConfigService.findConfigFromCache().get(AcsConfig.AGVURL); |
|
|
String agvport = acsConfigService.findConfigFromCache().get(AcsConfig.AGVPORT); |
|
|
String agvport = acsConfigService.findConfigFromCache().get(AcsConfig.AGVPORT); |
|
|
|
|
|
|
|
|
agvurl = agvurl + ":" + agvport + "/orders?page=1&size=9999"; |
|
|
agvurl = agvurl + ":" + agvport + "/orders?page=1&size=100&orderBy=createTime"; |
|
|
|
|
|
|
|
|
HttpResponse result = HttpRequest.get(agvurl) |
|
|
HttpResponse result = HttpRequest.get(agvurl) |
|
|
.timeout(20000)//超时,毫秒
|
|
|
.timeout(20000)//超时,毫秒
|
|
@ -659,7 +659,7 @@ public class AgvServiceImpl implements AgvService { |
|
|
String agvurl = acsConfigService.findConfigFromCache().get(AcsConfig.AGVURL); |
|
|
String agvurl = acsConfigService.findConfigFromCache().get(AcsConfig.AGVURL); |
|
|
String agvport = acsConfigService.findConfigFromCache().get(AcsConfig.AGVPORT); |
|
|
String agvport = acsConfigService.findConfigFromCache().get(AcsConfig.AGVPORT); |
|
|
|
|
|
|
|
|
agvurl = agvurl + ":" + agvport + "/orders?page=1&size=9999"; |
|
|
agvurl = agvurl + ":" + agvport + "/orders?page=1&size=100&orderBy=createTime"; |
|
|
|
|
|
|
|
|
HttpResponse result = HttpRequest.get(agvurl) |
|
|
HttpResponse result = HttpRequest.get(agvurl) |
|
|
.timeout(20000)//超时,毫秒
|
|
|
.timeout(20000)//超时,毫秒
|
|
@ -771,8 +771,7 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
|
|
|
|
|
//1请求取货 2取货完成 3请求放货 4放货完成 5取货完成离开 6放货完成离开 7请求进入区域 8请求离开区域
|
|
|
//1请求取货 2取货完成 3请求放货 4放货完成 5取货完成离开 6放货完成离开 7请求进入区域 8请求离开区域
|
|
|
@Override |
|
|
@Override |
|
|
public synchronized String process(String jobno, String type, String address, String action, String processingVehicle) |
|
|
public synchronized String process(String jobno, String type, String address, String action, String processingVehicle) { |
|
|
{ |
|
|
|
|
|
{ |
|
|
{ |
|
|
log.info("查询到AGV请求参数,jobno:{},address:{}", jobno + ",address:" + address + ",type:" + type + ",action:" + action); |
|
|
log.info("查询到AGV请求参数,jobno:{},address:{}", jobno + ",address:" + address + ",type:" + type + ",action:" + action); |
|
|
//释放AGV资源,继续后续动作
|
|
|
//释放AGV资源,继续后续动作
|
|
@ -802,10 +801,10 @@ public class AgvServiceImpl implements AgvService { |
|
|
//
|
|
|
//
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
if(standardManipulatorStackingSiteDeviceDriver.getMove()==1){ |
|
|
if (standardManipulatorStackingSiteDeviceDriver.getMove() == 1) { |
|
|
is_feedback = true; |
|
|
is_feedback = true; |
|
|
} else { |
|
|
} else { |
|
|
log.info("设备{} 请求取货,光电信号:{}",addressdevice,standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
log.info("设备{} 请求取货,光电信号:{}", addressdevice, standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
@ -815,10 +814,10 @@ public class AgvServiceImpl implements AgvService { |
|
|
if ("PauseOnStation".equals(type)) { |
|
|
if ("PauseOnStation".equals(type)) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
if(standardManipulatorStackingSiteDeviceDriver.getMove()==0){ |
|
|
if (standardManipulatorStackingSiteDeviceDriver.getMove() == 0) { |
|
|
is_feedback = true; |
|
|
is_feedback = true; |
|
|
} else { |
|
|
} else { |
|
|
log.info("设备{} 请求离开,光电信号:{}",addressdevice,standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
log.info("设备{} 请求离开,光电信号:{}", addressdevice, standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
@ -832,10 +831,10 @@ public class AgvServiceImpl implements AgvService { |
|
|
if ("EntryRequired".equals(type)) { |
|
|
if ("EntryRequired".equals(type)) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
if(standardManipulatorStackingSiteDeviceDriver.getMove()==0){ |
|
|
if (standardManipulatorStackingSiteDeviceDriver.getMove() == 0) { |
|
|
is_feedback = true; |
|
|
is_feedback = true; |
|
|
} else { |
|
|
} else { |
|
|
log.info("设备{} 请求放货,光电信号:{}",addressdevice,standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
log.info("设备{} 请求放货,光电信号:{}", addressdevice, standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
@ -845,10 +844,10 @@ public class AgvServiceImpl implements AgvService { |
|
|
if ("PauseOnStation".equals(type)) { |
|
|
if ("PauseOnStation".equals(type)) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardManipulatorStackingSiteDeviceDriver) { |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
standardManipulatorStackingSiteDeviceDriver = (StandardManipulatorStackingSiteDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
if(standardManipulatorStackingSiteDeviceDriver.getMove()==1){ |
|
|
if (standardManipulatorStackingSiteDeviceDriver.getMove() == 1) { |
|
|
is_feedback = true; |
|
|
is_feedback = true; |
|
|
} else { |
|
|
} else { |
|
|
log.info("设备{} 请求离开,光电信号:{}",addressdevice,standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
log.info("设备{} 请求离开,光电信号:{}", addressdevice, standardManipulatorStackingSiteDeviceDriver.getMove()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|
if (addressdevice.getDeviceDriver() instanceof StandardStorageDeviceDriver) { |
|
|