Template Function MessageSerialization::deserialize
Defined in File MessageSerialization.h
Function Documentation
-
template<typename MembersType>
void MessageSerialization::deserialize(void *msg, const MembersType *casted_members, cbor::RxStream &stream) Deserialize a ROS message, request or response.
Every time DESERT receives data from the channel a memory location is used to store the corresponding member type, and this function merges all the elementary C or C++ types into the whole message. To perform this operation the deserialize_field function is called to decode every specific data.
- Parameters:
msg – Pointer to the first byte of the message in memory
casted_members – Pointer to the member containing type support informations
stream – The stream used to receive data