Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions rmw_connextdds_common/src/ndds/dds_api_ndds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,25 @@ rmw_connextdds_initialize_participant_qos_impl(
}
#endif /* RMW_CONNEXT_FAST_ENDPOINT_DISCOVERY */

// Set dds.ros.demangle_topic_and_type_names to TRUE.
// This will announce a demangled topic name as a topic alias.
// This will enable interoperability with Connext applications using the
// demangled topic name. This should not impact compatibility with any other
// vendors, as the “mangled” topic name will still be announced as the real
// topic name. Set this property for versions 7.5+
#if (RTI_DDS_VERSION_MAJOR > 7) || (RTI_DDS_VERSION_MAJOR == 7 && RTI_DDS_VERSION_MINOR >= 5)
if (DDS_RETCODE_OK != DDS_PropertyQosPolicyHelper_assert_property(
&dp_qos->property,
"dds.ros.demangle_topic_and_type_names",
"TRUE",
DDS_BOOLEAN_FALSE))
{
RMW_CONNEXT_LOG_ERROR_SET(
"failed to assert property on participant: dds.ros.demangle_topic_and_type_names");
return RMW_RET_ERROR;
}
#endif

return RMW_RET_OK;
}

Expand Down