Is there a way to specify which QoS profile a domain participant uses via XML?

4 posts / 0 new
Last post
Offline
Last seen: 5 years 5 months ago
Joined: 03/26/2019
Posts: 4
Is there a way to specify which QoS profile a domain participant uses via XML?

Hey there,

I'm using the rti python connector for building a testing API and I need a way to specify the QoS profile for some of my domain participants. Currently they all are using the default profile which works for some topics but produces a mismatch for others. In general I can subscribe successfully to every topic but publishing does not work for some topics due to a QoS mismatch. As far as I can tell there's no functionality in the python connector for setting a QoS profile like there is mentioned in the RTI manual.

Any help would be appreciated, thanks!

Andrew

Offline
Last seen: 2 months 21 hours ago
Joined: 04/02/2013
Posts: 196

Hi Andrew,

In your XML configuration file, use the tag <participant_qos> under <domain_participant>

For example, in ShapeExample.xml:

<domain_participant_library name="MyParticipantLibrary">
<domain_participant name="Zero" domain_ref="MyDomainLibrary::MyDomain">
    <participant_qos> 
       <!-- configure the Qos here -->
    </participant_qos>
...
 
 
Offline
Last seen: 5 years 5 months ago
Joined: 03/26/2019
Posts: 4

Hey Alejandro,

I see, that's exactly what I needed. Thanks!

Offline
Last seen: 2 months 21 hours ago
Joined: 04/02/2013
Posts: 196

Andrew,

I suggest to define your Qos profiles separately (for example, inside the <qos_library> tag at the beginning of ShapeExample.xml).

Then, from your domain participants you can simply refer to existing profiles (possibly overriding a small ammount of Qos policies):

<domain_participant_library name="MyParticipantLibrary">
<domain_participant name="Zero" domain_ref="MyDomainLibrary::MyDomain">
    <participant_qos base_name"QosLibrary::MyQosProfile">
      <!-- optionally, override some policies here -->
    <participant_qos> 
 
This will help keep your configuration file cleaner and avoid duplication.