Should I set both Topic Qos and DataWriter Qos?

2 posts / 0 new
Last post
Offline
Last seen: 2 weeks 8 hours ago
Joined: 12/11/2024
Posts: 1
Should I set both Topic Qos and DataWriter Qos?

I set Durability to TRANSIENT_LAOCAL_DURABILITY_QOS in DataWriter.

Do I need to set Durability to TRANSIENT_LAOCAL_DURABILITY_QOS in Topic Qos for TRANSIENT_LAOCAL_DURABILITY_QOS to work properly?

Do I need to set other properties in both DataWriter Qos and Topic Qos?

Organization:
Keywords:
r
Offline
Last seen: 5 days 21 hours ago
Joined: 06/17/2019
Posts: 50

For datawriter and datareader QoS settings to take effect they have to be applied to the datawriter and datareaders. 

You don't need to set the same QoS settings (or any QoS settings) using Topic QoS. You can think of Topic QoS as a storage location for QoS settings that can then be applied to relevant data readers and writers. If you use Topic QoS this way it can help with applying consistant QoS settings between different readers and writers.

Here is a relevant section in our manual: https://community.rti.com/static/documentation/connext-dds/current/doc/manuals/connext_dds_professional/users_manual/users_manual/CopyingQoSFromTopictoDW.htm