different way to create default datawriter qos?

2 posts / 0 new
Last post
Offline
Last seen: 2 months 2 weeks ago
Joined: 03/29/2020
Posts: 9
different way to create default datawriter qos?

I tried two ways to create default datawriter qos:

1.  dds::core::QosProvider::Default().datawriter_qos().  For this one, it looks like qos is created from default profile from xml if qos xml is given, such as xml specified in "NDDS_QOS_PROFILES"
2. dds::pub::qos::DataWriterQos().  it looks this one will create a default qos and it's not from any qos profile?
 
I am not sure if my understanding is right or not, could you help with this? thanks
Offline
Last seen: 1 month 3 days ago
Joined: 10/22/2018
Posts: 59

That's correct.

Option 1 obtains the configured default. That is, the default QoS profile configured by the user. It is loaded according to the rules defined here in the User's manual.

Option 2 obtains the documented default. This is the default value defined in the API reference for each QoS property. E.g., the default for Reliability can be found here.

Hope that helps,

Sam