[Question]Disabling serializeration/deserialization within FastRTPS [5689]
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
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