We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3327b1d commit ac20f17Copy full SHA for ac20f17
rosidl_runtime_py/set_message.py
@@ -70,6 +70,8 @@ def set_message_fields_internal(
70
value = numpy.array(field_value, dtype=field.dtype)
71
elif type(field_value) is field_type:
72
value = field_value
73
+ elif field_type is bytes and type(field_value) is str:
74
+ value = field_value.encode()
75
# We can't import these types directly, so we use the qualified class name to
76
# distinguish them from other fields
77
elif qualified_class_name == 'std_msgs.msg._header.Header' and \
0 commit comments