fix deck & host_node

This commit is contained in:
Xuwznln
2026-02-11 17:33:26 +08:00
parent 8da6fdfd0b
commit 45efbfcd12
2 changed files with 16 additions and 14 deletions

View File

@@ -460,7 +460,7 @@ class BaseROS2DeviceNode(Node, Generic[T]):
}
res.response = json.dumps(final_response)
# 如果driver自己就有assign的方法那就使用driver自己的assign方法
if hasattr(self.driver_instance, "create_resource"):
if hasattr(self.driver_instance, "create_resource") and self.node_name != "host_node":
create_resource_func = getattr(self.driver_instance, "create_resource")
try:
ret = create_resource_func(