From d53cabf9bf6ffa52d719e62e822f7b191ecf154f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Ferreira=20Gonz=C3=A1lez?= Date: Mon, 6 Apr 2026 14:47:07 +0200 Subject: [PATCH] Disable Type propagation of Fast DDS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Ferreira González --- doc/test_description.template.rst | 1 + srcCxx/shape_configurator_eprosima_fast_dds.h | 7 +++++++ srcCxx/shape_main.cxx | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/doc/test_description.template.rst b/doc/test_description.template.rst index b110c1b8..d90d66f9 100644 --- a/doc/test_description.template.rst +++ b/doc/test_description.template.rst @@ -70,6 +70,7 @@ product versions. * Content Filtered Topic expression created with single quotes around strings values + * Type Propagation property set to "disabled" * **InterCOM DDS**: diff --git a/srcCxx/shape_configurator_eprosima_fast_dds.h b/srcCxx/shape_configurator_eprosima_fast_dds.h index ed8c155c..e0cf0d16 100644 --- a/srcCxx/shape_configurator_eprosima_fast_dds.h +++ b/srcCxx/shape_configurator_eprosima_fast_dds.h @@ -32,6 +32,13 @@ namespace DDS = eprosima::fastdds::dds; #define RETCODE_OK DDS::RETCODE_OK +void configure_fastdds_dp_qos(DDS::DomainParticipantQos &dp_qos) +{ + dp_qos.properties().properties().emplace_back( + "fastdds.type_propagation", + "disabled"); +} + const char* get_qos_policy_name(DDS::QosPolicyId_t policy_id) { switch (policy_id) { diff --git a/srcCxx/shape_main.cxx b/srcCxx/shape_main.cxx index b68a781f..a4d43f62 100644 --- a/srcCxx/shape_main.cxx +++ b/srcCxx/shape_main.cxx @@ -1219,6 +1219,10 @@ class ShapeApplication { configure_participant_announcements_period(dp_qos, options->periodic_announcement_period_us); #endif +#ifdef EPROSIMA_FAST_DDS + configure_fastdds_dp_qos(dp_qos); +#endif + if (options->datafrag_size > 0) { bool result = false; #if defined(RTI_CONNEXT_DDS)