Fast-DDS icon indicating copy to clipboard operation
Fast-DDS copied to clipboard

[Question]Disabling serializeration/deserialization within FastRTPS [5689]

Open sriramster opened this issue 7 years ago • 1 comments

Hi,

I'm using FastRTPS for one of the research projects. Trying to optimize the communication, is there a way to disable/by-pass serialization/deserialization of a message? Just curious if there is a easy way to do this.

Sriram

sriramster avatar May 16 '19 18:05 sriramster

Hi,

At first, there is no way to do that. Data types must implement the serialization/deserialization method to be transferred over the RTPS protocol. But there is a workaround. You could implement serialization/deserialization methods overriding TopicDataType class with your desired data type in the way you prefer. You can just assign data to serializedPayload data instead of using a serialization class like Cdr as Helloworld example does. You should be careful with memory allocation.

I hope this responds to your question

AlvaroMolinillo avatar Jul 30 '19 07:07 AlvaroMolinillo