From 91dbfe4bb2798176078a6853a86e7e8ecb4ba76d Mon Sep 17 00:00:00 2001 From: Lucia Echevarria Date: Mon, 2 Sep 2024 10:46:32 +0200 Subject: [PATCH] Fill TypeInformation in Topic Description just from complete TypeIdentifier in CommonWriter (already done in CommonReader) Signed-off-by: Lucia Echevarria --- ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp b/ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp index 82f351e1..cb477642 100644 --- a/ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp +++ b/ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp @@ -390,11 +390,14 @@ fastdds::rtps::TopicDescription CommonWriter::reckon_topic_description_( topic_description.type_name = topic.type_name; topic_description.topic_name = topic.m_topic_name; + fastdds::dds::xtypes::TypeIdentifierPair type_identifiers; + type_identifiers.type_identifier1(topic.type_identifiers.type_identifier1()); + // Set TypeInformation of the discovered type fastdds::dds::xtypes::TypeInformation type_information; if (fastdds::dds::RETCODE_OK == fastdds::dds::DomainParticipantFactory::get_instance()->type_object_registry().get_type_information( - topic.type_identifiers, + type_identifiers, type_information)) { topic_description.type_information = type_information;