rclcpp icon indicating copy to clipboard operation
rclcpp copied to clipboard

Support Serialize/Deserialize Functions in Type Adaption

Open audrow opened this issue 4 years ago • 3 comments

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.

audrow avatar May 11 '21 23:05 audrow

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

asasine avatar Oct 22 '21 15:10 asasine

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

audrow avatar Oct 27 '21 00:10 audrow

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).

wjwwood avatar Nov 29 '21 15:11 wjwwood