|
@ -52,17 +52,17 @@ public class ToAgvDevice { |
|
|
request.put("REQCODE", IdUtil.simpleUUID()); |
|
|
request.put("REQCODE", IdUtil.simpleUUID()); |
|
|
request.put("TASKCODE", IdUtil.simpleUUID()); |
|
|
request.put("TASKCODE", IdUtil.simpleUUID()); |
|
|
//电量
|
|
|
//电量
|
|
|
request.put("AGVBATTERY", "80"); |
|
|
request.put("AGVBATTERY", agvNdcOneDeviceDriver.getElectric_qty()); |
|
|
//X
|
|
|
//X
|
|
|
request.put("POSX", "60"); |
|
|
request.put("POSX", agvNdcOneDeviceDriver.getX()); |
|
|
//Y
|
|
|
//Y
|
|
|
request.put("POSY", "80"); |
|
|
request.put("POSY", agvNdcOneDeviceDriver.getY()); |
|
|
//ip
|
|
|
//ip
|
|
|
request.put("AGVIP", "127.0.0.1"); |
|
|
request.put("AGVIP", ObjectUtil.isEmpty(agvNdcOneDeviceDriver.getDevice().getExtraValue()) ? "" : agvNdcOneDeviceDriver.getDevice().getExtraValue().get("ip_address")); |
|
|
//车号
|
|
|
//车号
|
|
|
request.put("AGVCODE", device.getDevice_code()); |
|
|
request.put("AGVCODE", device.getDevice_code()); |
|
|
//角度
|
|
|
//角度
|
|
|
request.put("AGVDIR", "90"); |
|
|
request.put("AGVDIR", agvNdcOneDeviceDriver.getAngle()); |
|
|
request.put("REQTIME", DateUtil.now()); |
|
|
request.put("REQTIME", DateUtil.now()); |
|
|
log.info("atrQueryAgvStatus 请求参数:"+request.toJSONString()); |
|
|
log.info("atrQueryAgvStatus 请求参数:"+request.toJSONString()); |
|
|
String str = new RTMSAGVSERVICE().getBasicHttpBindingIRTMSAGVSERVICE().atrQueryAgvStatus(request.toJSONString()); |
|
|
String str = new RTMSAGVSERVICE().getBasicHttpBindingIRTMSAGVSERVICE().atrQueryAgvStatus(request.toJSONString()); |
|
|