update
This commit is contained in:
parent
9121b1985a
commit
51bbac6405
@ -177,7 +177,7 @@ public class ExecuteMove extends BaseService {
|
|||||||
*/
|
*/
|
||||||
private static Integer getDrivePose(org.opentcs.data.model.Path path) {
|
private static Integer getDrivePose(org.opentcs.data.model.Path path) {
|
||||||
String drivePost = path.getProperties().get(LoopbackAdapterConstants.AGV_DRIVE_POSE);
|
String drivePost = path.getProperties().get(LoopbackAdapterConstants.AGV_DRIVE_POSE);
|
||||||
System.out.println("getDrivePose drivePost: " + drivePost);
|
// System.out.println("getDrivePose drivePost: " + drivePost);
|
||||||
|
|
||||||
int pose = 0;
|
int pose = 0;
|
||||||
if (drivePost == null) {
|
if (drivePost == null) {
|
||||||
|
@ -84,18 +84,17 @@ public class AdapterManage {
|
|||||||
if (currentTime - value.getTime() > AUTO_CLOSE_TIME) {
|
if (currentTime - value.getTime() > AUTO_CLOSE_TIME) {
|
||||||
//当前时间减去记录时间大于阈值,自动关闭通讯适配器
|
//当前时间减去记录时间大于阈值,自动关闭通讯适配器
|
||||||
kernel.disableAdapter(key);
|
kernel.disableAdapter(key);
|
||||||
agvStatus.setStatus(AdapterStatus.DISABLE);
|
// agvStatus.setStatus(AdapterStatus.DISABLE);
|
||||||
|
adapterStatusMap.remove(key);
|
||||||
|
LOG.info("disable the adapter: {}", key);
|
||||||
} else {
|
} else {
|
||||||
//通讯适配器当前状态为关闭,设置状态为开启时才会进入
|
//通讯适配器当前状态为关闭,设置状态为开启时才会进入
|
||||||
kernel.enableAdapter(key);
|
kernel.enableAdapter(key);
|
||||||
agvStatus.setStatus(AdapterStatus.ENABLE);
|
agvStatus.setStatus(AdapterStatus.ENABLE);
|
||||||
|
//更新记录数据
|
||||||
|
adapterStatusMap.put(key, agvStatus);
|
||||||
|
LOG.info("enable the adapter: {}", key);
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG.info("update the adapter: {} status: {}", key, value);
|
|
||||||
|
|
||||||
//更新记录数据
|
|
||||||
adapterStatusMap.put(key, agvStatus);
|
|
||||||
// LOG.info("adapterStatusMap end name: {}", key);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user