过滤本地动作

This commit is contained in:
Xuwznln
2025-10-11 03:06:37 +08:00
parent 93f0e08d75
commit 6fc7ed1b88
2 changed files with 22 additions and 1 deletions

View File

@@ -158,6 +158,18 @@ class HostNode(BaseROS2DeviceNode):
"/devices/host_node/test_resource",
callback_group=self.callback_group,
),
"/devices/host_node/_execute_driver_command": ActionClient(
self,
lab_registry.EmptyIn,
"/devices/host_node/_execute_driver_command",
callback_group=self.callback_group,
),
"/devices/host_node/_execute_driver_command_async": ActionClient(
self,
lab_registry.EmptyIn,
"/devices/host_node/_execute_driver_command_async",
callback_group=self.callback_group,
),
} # 用来存储多个ActionClient实例
self._action_value_mappings: Dict[str, Dict] = (
{}