更新axis等参数

This commit is contained in:
Xuwznln
2025-07-17 21:53:25 +08:00
parent aaf33a8878
commit 0466b57e0a
12 changed files with 9992 additions and 159 deletions

View File

@@ -367,7 +367,7 @@ def convert_to_ros_msg(ros_msg_type: Union[Type, Any], obj: Any) -> Any:
logger.warning(f"Not Supported type: {td}")
setattr(ros_msg, key, []) # FIXME
elif "array.array" in str(type(attr)):
if attr.typecode == "f":
if attr.typecode == "f" or attr.typecode == "d":
setattr(ros_msg, key, [float(i) for i in value])
else:
setattr(ros_msg, key, value)

View File

@@ -660,7 +660,7 @@ class BaseROS2DeviceNode(Node, Generic[T]):
if len(action_kwargs[k]) > 1:
for i in action_kwargs[k]:
r = ResourceGet.Request()
r.id = i["id"]
r.id = i["id"] # splash optional
r.with_children = True
response = await self._resource_clients["resource_get"].call_async(r)
current_resources.extend(response.resources)