Skip to content

Commit 6e8c1ea

Browse files
Remove type information from RPC topics (#143)
Signed-off-by: Juan Lopez Fernandez <juanlopez@eprosima.com>
1 parent 607dcc5 commit 6e8c1ea

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ddspipe_core/src/cpp/types/topic/rpc/RpcTopic.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ RpcTopic::RpcTopic(
8888
// Set both topic qos as the one found
8989
request_topic_.topic_qos = topic.topic_qos;
9090
reply_topic_.topic_qos = topic.topic_qos;
91+
92+
// WORKAROUND: Remove type information from RPC topics. Currently the creation of an RPC topic is triggered when
93+
// an entity corresponding to the request or reply topics is discovered. This way, the topic and type names of the
94+
// other topic conforming the pair is deduced. However it is not possible to deduce the type information, so we
95+
// leave this field empty until the creation mechanism is adapted to cover this scenario.
96+
request_topic_.type_identifiers = fastdds::dds::xtypes::TypeIdentifierPair();
97+
reply_topic_.type_identifiers = fastdds::dds::xtypes::TypeIdentifierPair();
9198
}
9299

93100
RpcTopic::RpcTopic(

0 commit comments

Comments
 (0)