支持通过list[int],list[float]进行Int64MultiArray,Float64MultiArray的替换

This commit is contained in:
Xuwznln
2025-06-29 11:52:24 +08:00
parent 157da1759d
commit 498b3cad6a
3 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ hplc.agilent:
module: unilabos.devices.hplc.AgilentHPLC:HPLCDriver module: unilabos.devices.hplc.AgilentHPLC:HPLCDriver
status_types: status_types:
could_run: bool could_run: bool
data_file: tuple data_file: list
device_status: str device_status: str
driver_init_ok: bool driver_init_ok: bool
finish_status: str finish_status: str

View File

@@ -521,7 +521,7 @@ linear_motion.grbl:
- -80 - -80
- 0 - 0
description: '参数: limits' description: '参数: limits'
type: string type: array
port: port:
description: '参数: port' description: '参数: port'
type: string type: string

View File

@@ -310,7 +310,7 @@ class Registry:
{k: v["return_type"] for k, v in enhanced_info["status_methods"].items()} {k: v["return_type"] for k, v in enhanced_info["status_methods"].items()}
) )
for status_name, status_type in device_config["class"]["status_types"].items(): for status_name, status_type in device_config["class"]["status_types"].items():
if status_type in ["Any", "None"]: if status_type in ["Any", "None", "Unknown"]:
status_type = "String" # 替换成ROS的String便于显示 status_type = "String" # 替换成ROS的String便于显示
device_config["class"]["status_types"][status_name] = status_type device_config["class"]["status_types"][status_name] = status_type
target_type = self._replace_type_with_class(status_type, device_id, f"状态 {status_name}") target_type = self._replace_type_with_class(status_type, device_id, f"状态 {status_name}")