-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it support serialization to SerializedPayload_t at the Python layer? #114
Comments
No. You can modify the templates in FastDDSGen to add any helper functions you need. I had a go at adding these types but was unsuccessful. //This is used for python deserialization
bool HardwareStatusPubSubType::deserialize(char* rawData, uint32_t dataSize, HardwareStatus* data)
{
if (m_payload == nullptr)
m_payload = new eprosima::fastrtps::rtps::SerializedPayload_t();
m_payload->length = dataSize;
m_payload->data = reinterpret_cast<unsigned char*>(rawData);
return this->deserialize(m_payload, data);
}
Then in python I can use a byte array to provide the data type to deserialize. |
but print::
|
”Exception caught:Not enough memory in the buffer stream fastdds“ is something wrong? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i cant find the SerializedPayload_t in fastdds_python
The text was updated successfully, but these errors were encountered: