[ros-users] [Discourse.ros.org] [Next Generation ROS] Discussion about how to add a new PRIMITIVE_TYPES to rosidl(msg)

Dirk Thomas ros.discourse at gmail.com
Wed Sep 5 22:56:58 UTC 2018



[quote="johnmark, post:9, topic:4607"]
I still think that using `bytes` rather than `list[byte]` would be a good move (at least from IDL `byte[]` types, if not for `uint8[]` types).
[/quote]

Just  mention the current state: you can already use `byte[]` in a `.msg` file and the resulting field in Python will be of type `bytes` (see https://github.com/ros2/rosidl_python/blob/3b97dc828ad14e3360ac52a1ef90ff335ce65715/rosidl_generator_py/rosidl_generator_py/generate_py_impl.py#L219-L221).





---
[Visit Topic](https://discourse.ros.org/t/discussion-about-how-to-add-a-new-primitive-types-to-rosidl-msg/4607/11) or reply to this email to respond.




More information about the ros-users mailing list