ros2 / rclcpp

rclcpp (ROS Client Library for C++)
Apache License 2.0
559 stars 422 forks source link

Support Serialize/Deserialize Functions in Type Adaption #1665

Open audrow opened 3 years ago

audrow commented 3 years ago

Currently, we only support convert functions to go between custom and ROS message types, which are more efficient for intra-process communication. It would be more efficient (less copy operations) for inter process communication to support serialization and deserialization functions.


I've put this issue on the H-turtle board for consideration.

asasine commented 3 years ago

Would this encompass deserializing a YAML representation of a message to its ROS/custom message type, the opposite of rosidl's to_yaml() function?

audrow commented 3 years ago

I'm not sure. I'm not very familiar with rosidl. Any thoughts, @wjwwood?

wjwwood commented 2 years ago

No, it would not. That's orthogonal to this issue which is supporting (de)serialization of custom types directly to/from the wire format. It doesn't cover other targets like yaml and it doesn't cover that for existing ROS types, only the custom types (which don't have to_yaml() either atm).