feat: 添加ChinWe设备控制类,支持串口通信和电机控制功能 (#79)

This commit is contained in:
ZiWei
2025-08-06 18:49:37 +08:00
committed by GitHub
parent 98ce360088
commit 06e66765e7
4 changed files with 293 additions and 0 deletions

View File

@@ -88,6 +88,9 @@ class ROS2ProtocolNode(BaseROS2DeviceNode):
if device_config.get("type", "device") != "device":
continue
# 设置硬件接口代理
if device_id not in self.sub_devices:
self.lab_logger().error(f"[Protocol Node] {device_id} 还没有正确初始化,跳过...")
continue
d = self.sub_devices[device_id]
if d:
hardware_interface = d.ros_node_instance._hardware_interface