This commit is contained in:
xuzhiheng 2025-06-20 16:45:33 +08:00
parent 9121b1985a
commit 51bbac6405
2 changed files with 7 additions and 8 deletions

View File

@ -177,7 +177,7 @@ public class ExecuteMove extends BaseService {
*/
private static Integer getDrivePose(org.opentcs.data.model.Path path) {
String drivePost = path.getProperties().get(LoopbackAdapterConstants.AGV_DRIVE_POSE);
System.out.println("getDrivePose drivePost: " + drivePost);
// System.out.println("getDrivePose drivePost: " + drivePost);
int pose = 0;
if (drivePost == null) {

View File

@ -84,18 +84,17 @@ public class AdapterManage {
if (currentTime - value.getTime() > AUTO_CLOSE_TIME) {
//当前时间减去记录时间大于阈值自动关闭通讯适配器
kernel.disableAdapter(key);
agvStatus.setStatus(AdapterStatus.DISABLE);
// agvStatus.setStatus(AdapterStatus.DISABLE);
adapterStatusMap.remove(key);
LOG.info("disable the adapter: {}", key);
} else {
//通讯适配器当前状态为关闭设置状态为开启时才会进入
kernel.enableAdapter(key);
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);
});
}