apollo-platform icon indicating copy to clipboard operation
apollo-platform copied to clipboard

How is the native protobuf support implemented?

Open chizhangsysu opened this issue 4 years ago • 0 comments

Hi, I was trying to understand which changes to the ROS source codes make it possible to directly publishing a protobuf object.

In vanilla ROS, gencpp will provide template specializations for the MD5Sum<T> struct and the Serializer<T> struct, when generating the header file for a .msg file, so that the message object can be serialized and published.

However, when the message class comes from a .proto file instead of the .msg file, what changes make the protobuf object serializable using the ROS publisher? Could you explain what has been done here if possible?

Thanks, Chi

chizhangsysu avatar Mar 18 '21 10:03 chizhangsysu