From 38553e977eee024cdf2f450dd8ffab1b381784a4 Mon Sep 17 00:00:00 2001 From: Juan Lopez Fernandez Date: Thu, 14 Mar 2024 07:33:49 +0100 Subject: [PATCH] Add missing change: serialize writer GUID before locators Signed-off-by: Juan Lopez Fernandez --- src/cpp/rtps/builtin/data/WriterProxyData.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/cpp/rtps/builtin/data/WriterProxyData.cpp b/src/cpp/rtps/builtin/data/WriterProxyData.cpp index c7083f90dbd..daff3042da2 100644 --- a/src/cpp/rtps/builtin/data/WriterProxyData.cpp +++ b/src/cpp/rtps/builtin/data/WriterProxyData.cpp @@ -339,6 +339,14 @@ bool WriterProxyData::writeToCDRMessage( } } + { + ParameterGuid_t p(fastdds::dds::PID_ENDPOINT_GUID, 16, m_guid); + if (!fastdds::dds::ParameterSerializer::add_to_cdr_message(p, msg)) + { + return false; + } + } + { ParameterNetworkConfigSet_t p(fastdds::dds::PID_NETWORK_CONFIGURATION_SET, PARAMETER_NETWORKCONFIGSET_LENGTH); p.netconfigSet = m_networkConfiguration; @@ -392,13 +400,6 @@ bool WriterProxyData::writeToCDRMessage( return false; } } - { - ParameterGuid_t p(fastdds::dds::PID_ENDPOINT_GUID, 16, m_guid); - if (!fastdds::dds::ParameterSerializer::add_to_cdr_message(p, msg)) - { - return false; - } - } { ParameterPort_t p(fastdds::dds::PID_TYPE_MAX_SIZE_SERIALIZED, 4, m_typeMaxSerialized); if (!fastdds::dds::ParameterSerializer::add_to_cdr_message(p, msg))