diff --git a/unilabos/ros/msgs/message_converter.py b/unilabos/ros/msgs/message_converter.py index e1659e1a..c9f8af3c 100644 --- a/unilabos/ros/msgs/message_converter.py +++ b/unilabos/ros/msgs/message_converter.py @@ -351,7 +351,10 @@ def convert_to_ros_msg(ros_msg_type: Union[Type, Any], obj: Any) -> Any: else: setattr(ros_msg, key, []) # FIXME elif "array.array" in str(type(attr)): - setattr(ros_msg, key, value) + if attr.typecode == "f": + setattr(ros_msg, key, [float(i) for i in value]) + else: + setattr(ros_msg, key, value) else: nested_ros_msg = convert_to_ros_msg(type(attr)(), value) setattr(ros_msg, key, nested_ros_msg) diff --git a/unilabos_msgs/action/ResourceCreateFromOuterEasy.action b/unilabos_msgs/action/ResourceCreateFromOuterEasy.action index bbd34810..233200c4 100644 --- a/unilabos_msgs/action/ResourceCreateFromOuterEasy.action +++ b/unilabos_msgs/action/ResourceCreateFromOuterEasy.action @@ -1,4 +1,5 @@ string res_id +string device_id string class_name string parent geometry_msgs/Point bind_locations