This commit is contained in:
xuzhiheng
2025-06-18 10:35:01 +08:00
parent 952d0db0d1
commit 7ac42a2b80
5 changed files with 17 additions and 26 deletions

View File

@@ -86,6 +86,18 @@ public class VehicleHandler {
throw new ObjectUnknownException("postReceiveCallback Unknown vehicle: " + name);
}
// String adapterName = "org.opentcs.virtualvehicle.LoopbackCommunicationAdapterDescription";
// VehicleCommAdapterDescription newAdapter
// = vehicleService.fetchAttachmentInformation(vehicle.getReference())
// .getAvailableCommAdapters()
// .stream()
// .filter(description -> description.getClass().getName().equals(adapterName))
// .findAny()
// .orElseThrow(
// () -> new IllegalArgumentException("Unknown vehicle driver class name: " + adapterName)
// );
// vehicleService.attachCommAdapter(vehicle.getReference(), newAdapter);
//将数据更新到线程安全的集合中,防止线程阻塞
AdapterManage.setAdapterStatus(name);
if (type == 1) { //上报agv详细信息