Skip to content

Commit

Permalink
Fill TypeInformation in Topic Description just from complete TypeIden…
Browse files Browse the repository at this point in the history
…tifier in CommonWriter (already done in CommonReader)

Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
  • Loading branch information
LuciaEchevarria99 committed Sep 2, 2024
1 parent ce4eac6 commit d28be5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d28be5f

Please sign in to comment.