mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-04 13:25:13 +00:00
支持通过list[int],list[float]进行Int64MultiArray,Float64MultiArray的替换
This commit is contained in:
@@ -182,7 +182,7 @@ hplc.agilent:
|
||||
module: unilabos.devices.hplc.AgilentHPLC:HPLCDriver
|
||||
status_types:
|
||||
could_run: bool
|
||||
data_file: tuple
|
||||
data_file: list
|
||||
device_status: str
|
||||
driver_init_ok: bool
|
||||
finish_status: str
|
||||
|
||||
@@ -521,7 +521,7 @@ linear_motion.grbl:
|
||||
- -80
|
||||
- 0
|
||||
description: '参数: limits'
|
||||
type: string
|
||||
type: array
|
||||
port:
|
||||
description: '参数: port'
|
||||
type: string
|
||||
|
||||
@@ -310,7 +310,7 @@ class Registry:
|
||||
{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():
|
||||
if status_type in ["Any", "None"]:
|
||||
if status_type in ["Any", "None", "Unknown"]:
|
||||
status_type = "String" # 替换成ROS的String,便于显示
|
||||
device_config["class"]["status_types"][status_name] = status_type
|
||||
target_type = self._replace_type_with_class(status_type, device_id, f"状态 {status_name}")
|
||||
|
||||
Reference in New Issue
Block a user