-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathumaa_qos_lib.xml
More file actions
847 lines (658 loc) · 31.5 KB
/
umaa_qos_lib.xml
File metadata and controls
847 lines (658 loc) · 31.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
<?xml version="1.0"?>
<!--
(c) Copyright, Real-Time Innovations, 2025. All rights reserved.
RTI grants Licensee a license to use, modify, compile, and create derivative
works of the software solely for use with RTI Connext DDS. Licensee may
redistribute copies of the software provided that all such copies are subject
to this license. The software is provided "as is", with no warranty of any
type, including any warranty for fitness for any purpose. RTI is under no
obligation to maintain or support the software. RTI shall not be liable for
any incidental or consequential damages arising out of the use or inability
to use the software.
-->
<dds xsi:noNamespaceSchemaLocation="http://community.rti.com/schema/current/rti_dds_profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- UMAA QOS Library -->
<qos_library name="UMAAQoSLib">
<!--
NOTE: Currently there are no official required UMAA QOS settings.
You would need to synchronize QOS with the other party you are communicating with.
The below is just for reference of the simplest mechanisms/best practices to implement.
-->
<!-- Domain Participant QoS Profiles -->
<qos_profile name="DefaultUMAAParticipant">
<domain_participant_qos>
<transport_builtin>
<!--
Default transports are UDPv4 | SHMEM
Disable SHMEM for diagnostics, Wireshark etc
-->
<!-- <mask>UDPv4</mask> -->
<!-- Modify the SHMEM transport -->
<shmem>
<!-- Pipe out SHMEM traffic to loopback for capture on Wireshark -->
<!-- <enable_udp_debugging>true</enable_udp_debugging>
<udp_debugging_address>127.0.0.1</udp_debugging_address>
<udp_debugging_port>7399</udp_debugging_port> -->
</shmem>
<udpv4>
<recv_socket_buffer_size>1048576</recv_socket_buffer_size>
</udpv4>
</transport_builtin>
<resource_limits>
<!--
Default is 8192. UMAA has large type objects.
Needs to be increased for larger types i.e. GlobalVectorCommand = 20,476
Disabled for performance, uncomment to susbcribe dynamically in Admin Console
-->
<!-- <type_object_max_serialized_length>30000</type_object_max_serialized_length> -->
<!-- Default is 256. Increase for GUIDS etc -->
<contentfilter_property_max_length>512</contentfilter_property_max_length>
</resource_limits>
<discovery_config>
<!-- This is to make Type propagation asynchronous due to large UMAA Type Objects -->
<publication_writer_publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</publication_writer_publish_mode>
<subscription_writer_publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</subscription_writer_publish_mode>
<!-- Spreads responses out over time so they don't all hit the wire simultaneously. -->
<publication_reader>
<min_heartbeat_response_delay>
<sec>0</sec>
<nanosec>0</nanosec>
</min_heartbeat_response_delay>
<max_heartbeat_response_delay>
<sec>1</sec>
<nanosec>10000000</nanosec>
</max_heartbeat_response_delay>
</publication_reader>
<subscription_reader>
<min_heartbeat_response_delay>
<sec>0</sec>
<nanosec>0</nanosec>
</min_heartbeat_response_delay>
<max_heartbeat_response_delay>
<sec>1</sec>
<nanosec>10000000</nanosec>
</max_heartbeat_response_delay>
</subscription_reader>
</discovery_config>
</domain_participant_qos>
<!--
PRESENTATION QoS — required by UMAA ICDs for cross-topic ordering.
access_scope = TOPIC ensures samples from different topics within the same
Subscriber are ordered. ordered_access = true guarantees the elements-first
protocol: specialization/element samples arrive before the root sample
in the subscriber cache.
-->
<subscriber_qos>
<presentation>
<access_scope>TOPIC_PRESENTATION_QOS</access_scope>
<ordered_access>true</ordered_access>
</presentation>
</subscriber_qos>
<publisher_qos>
<presentation>
<access_scope>TOPIC_PRESENTATION_QOS</access_scope>
<ordered_access>true</ordered_access>
</presentation>
</publisher_qos>
</qos_profile>
<!-- QoS Snippets to reuse in other Profiles -->
<qos_profile name="InstanceResourceAutoCleanup">
<!--
Every unique Instance allocates a new buffer.
By cleaning up the resources after "dispose" we minimize unbounded memory growth.
Writer: autopurge_disposed_instances_delay supports configurable values
(0 to 1 year) in RTI Connext 7.3.1 LTS — set to ZERO for immediate cleanup.
Reader: autopurge_disposed_instances_delay only supports DURATION_ZERO
or DURATION_INFINITE (even in 7.3.1). We use INFINITE so that dispose
notifications remain visible to application code; the
autopurge_disposed_samples_delay (10 s) cleans up stale disposed samples.
-->
<datawriter_qos>
<writer_data_lifecycle>
<autopurge_disposed_instances_delay>
<sec>DURATION_ZERO_SEC</sec>
<nanosec>DURATION_ZERO_NSEC</nanosec>
</autopurge_disposed_instances_delay>
</writer_data_lifecycle>
</datawriter_qos>
<datareader_qos>
<reader_data_lifecycle>
<autopurge_disposed_instances_delay>
<sec>DURATION_INFINITE_SEC</sec>
<nanosec>DURATION_INFINITE_NSEC</nanosec>
</autopurge_disposed_instances_delay>
<autopurge_disposed_samples_delay>
<sec>10</sec>
<nanosec>DURATION_ZERO_NSEC</nanosec>
</autopurge_disposed_samples_delay>
</reader_data_lifecycle>
<!--
UMAA only disposes instances — it never unregisters them. Without a
cap, the reader's instance table grows without bound.
max_instances = 1000 puts a hard ceiling on tracked instances.
When the limit is reached, instance_replacement controls which
existing slot is recycled to make room:
disposed_instance_removal = FULLY_PROCESSED_INSTANCES
Reclaim disposed instances whose samples have already been
taken by the application. This is the safest option because
it never discards data the application has not yet read.
no_writers_instance_removal = FULLY_PROCESSED_INSTANCES
Same policy for instances whose last writer has left but that
were not explicitly disposed.
alive_instance_removal = NO_INSTANCE (default)
Never evict an alive instance — better to fail loudly than
silently drop live data.
See: https://community.rti.com/static/documentation/connext-dds/current/
doc/manuals/connext_dds_professional/users_manual/users_manual/
DATA_READER_RESOURCE_LIMITS_Qos.htm#Configur
-->
<resource_limits>
<max_instances>1000</max_instances>
</resource_limits>
<reader_resource_limits>
<instance_replacement>
<disposed_instance_removal>FULLY_PROCESSED_INSTANCE_REMOVAL</disposed_instance_removal>
<no_writers_instance_removal>FULLY_PROCESSED_INSTANCE_REMOVAL</no_writers_instance_removal>
<alive_instance_removal>NO_INSTANCE_REMOVAL</alive_instance_removal>
</instance_replacement>
</reader_resource_limits>
</datareader_qos>
</qos_profile>
<qos_profile name="CycloneInterop">
<!-- Used for Interoperability with Cyclone DDS applications -->
<!--
RTI uses a key_hash for instance handles.
This property publishes the key value for scenarios where the dispoe is
the first message received for this instance.
-->
<datawriter_qos>
<protocol>
<serialize_key_with_dispose>true</serialize_key_with_dispose>
</protocol>
</datawriter_qos>
<!--
CycloneDDS uses XCDR2 by default.
RTI determines it based on IDL annotation of the data type.
This allows the reader to match with either.
See README for more detail.
-->
<datareader_qos>
<representation>
<value>
<element>XCDR_DATA_REPRESENTATION</element>
<element>XCDR2_DATA_REPRESENTATION</element>
</value>
</representation>
</datareader_qos>
</qos_profile>
<!-- Beginning of QoS Profiles -->
<qos_profile name="DefaultQoS" base_name="BuiltinQosLib::Generic.Common">
<!--
Default QoS profile for vendor integration / custom topics.
Inherits from BuiltinQosLib::Generic.Common with no additional settings.
If you are integrating with other DDS vendors (e.g. CycloneDDS),
uncomment the CycloneInterop snippet below:
-->
<!-- <base_name>
<element>UMAAQoSLib::CycloneInterop</element>
</base_name> -->
</qos_profile>
<!-- QoS Profile to work with USTM tool -->
<qos_profile name="USTMQoS" base_name="BuiltinQosLib::Generic.Common">
<!--
This QOS profile is intended for aperiodic messages(Configurations etc) that we need to ensure get
delivered as well as sent to any "late-joiners" i.e. if an applications comes up after a message gets "sent", it will
get cached and resent.
-->
<base_name>
<!-- Send messages out "Reliably". Message will get resent if not received -->
<element>BuiltinQosSnippetLib::QosPolicy.Reliability.Reliable</element>
<!--
"Cache" the last message in the writer buffer. This will resend the last written samples to any
late-joiners. This supports the use case of sending out a Configuration message on startup and
ensuring applications that come online later will receive the latest configuration.
-->
<element>BuiltinQosSnippetLib::QosPolicy.Durability.TransientLocal</element>
<!-- Automatically cleanup disposed Instances -->
<element>UMAAQoSLib::InstanceResourceAutoCleanup</element>
<!-- Cyclone Compatibility Mode -->
<element>UMAAQoSLib::CycloneInterop</element>
</base_name>
<datawriter_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<publication_name>
<name>
USTMQoSWriter
</name>
</publication_name>
<!-- This spins up a separate thread to send out samples asynchronously -->
<publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</publish_mode>
<!--
For these samples SpecsReportType etc., the assumption is you need to keep all messages.
In this scenario, no samples will be overwritten, and samples will only be removed from the
queue when they have been acknowledged as received from the reader side.
-->
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit
unbounded memory growth.
When either of these resource limits are hit, the writer will block for the configured
max_blocking_time
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
<!--
Because we are using KEEP_ALL history, when either of the resource limits are reached
i.e. (max_samples, max_samples_per_instance),
the writer will block for the below configured time before returning a Timeout Error
Adjust as necessary per your system requirements.
-->
<reliability>
<max_blocking_time>
<sec>5</sec>
<nanosec>DURATION_INFINITE_NSEC</nanosec>
</max_blocking_time>
</reliability>
<!--
By default, with KEEP_ALL History and Durability QoS set to TRANSIENT_LOCAL,
when an application comes up after samples have been written to this topic,
ALL samples that have been written prior will be resent.
If this is not desired, set the writer_depth property below.
-->
<!-- <durability>
<writer_depth>5</writer_depth>
</durability> -->
</datawriter_qos>
<datareader_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<subscription_name>
<name>
USTMQoSReader
</name>
</subscription_name>
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit unbounded memory growth.
When either of these resource limits are hit, the reader will block from acknowledging new samples
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
</datareader_qos>
</qos_profile>
<!--
This is where we create our QOS profiles per "Data Pattern" i.e. aperiodic commands, periodic status reports etc.
-->
<qos_profile name="TelemetryQoS" base_name="BuiltinQosLib::Generic.Common">
<!-- This profile is intended for Periodic status/report(Telemetry) data -->
<base_name>
<!--
Send messages out "Best Effort" without any guarantee of delivery.
This is akin to a basic UDP "send and forget" message.
Recommended for data sent periodically/high rate where if a sample is dropped
you will receive another one shortly, so no need to resend.
-->
<element>BuiltinQosSnippetLib::QosPolicy.Reliability.BestEffort</element>
<!-- Automatically cleanup disposed Instances -->
<element>UMAAQoSLib::InstanceResourceAutoCleanup</element>
</base_name>
<datawriter_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<publication_name>
<name>
TelemetryQoSWriter
</name>
</publication_name>
<!--
Send messages out "Asynchronously" without blocking the main thread as UMAA messages tend to be large.
-->
<publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</publish_mode>
<!--
Only Keep the last message in a buffer(History depth) of 1 on the writer side.
This is for Status messages that are sent periodically.
For this recommendation, it is assumed that any new sample PER INSTANCE will
overwrite the previous as you only want the last value per unique "Status/Report"
If this is not the case, increase the buffer as desired.
-->
<history>
<depth>1</depth>
<kind>KEEP_LAST_HISTORY_QOS</kind>
</history>
</datawriter_qos>
<datareader_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<subscription_name>
<name>
TelemetryQoSReader
</name>
</subscription_name>
<history>
<depth>1</depth>
<kind>KEEP_LAST_HISTORY_QOS</kind>
</history>
</datareader_qos>
</qos_profile>
<qos_profile name="ConfigQoS" base_name="BuiltinQosLib::Generic.Common">
<!--
This QOS profile is intended for aperiodic messages(Configurations etc) that we need to ensure get delivered as well as
sent to any "late-joiners" i.e. if an applications comes up after a message gets "sent", it will get cached and resent.
-->
<base_name>
<!-- Send messages out "Reliably". Message will get resent if not received -->
<element>BuiltinQosSnippetLib::QosPolicy.Reliability.Reliable</element>
<!--
"Cache" the last message in the writer buffer. This will resend the last written samples to any
late-joiners. This supports the use case of sending out a Configuration message on startup and
ensuring applications that come online later will receive the latest configuration.
-->
<element>BuiltinQosSnippetLib::QosPolicy.Durability.TransientLocal</element>
<!-- Automatically cleanup disposed Instances -->
<element>UMAAQoSLib::InstanceResourceAutoCleanup</element>
</base_name>
<datawriter_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<publication_name>
<name>
ConfigQoSWriter
</name>
</publication_name>
<!-- This spins up a separate thread to send out samples asynchronously -->
<publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</publish_mode>
<!--
For these samples SpecsReportType etc., the assumption is you need to keep all messages.
In this scenario, no samples will be overwritten, and samples will only be removed from the
queue when they have been acknowledged as received from the reader side.
-->
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to limit
unbounded memory growth.
When either of these resource limits are hit, the writer will block for the configured max_blocking_time
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
<!--
Because we are using KEEP_ALL history, when either of the resource limits are reached
i.e. (max_samples, max_samples_per_instance),
the writer will block for the below configured time before returning a Timeout Error
Adjust as necessary per your system requirements.
-->
<reliability>
<max_blocking_time>
<sec>5</sec>
<nanosec>DURATION_INFINITE_NSEC</nanosec>
</max_blocking_time>
</reliability>
<!--
By default, with KEEP_ALL History and Durability QoS set to TRANSIENT_LOCAL,
when an application comes up after samples have been written to this topic,
ALL samples that have been written prior will be resent.
If this is not desired, set the writer_depth property below.
-->
<!-- <durability>
<writer_depth>5</writer_depth>
</durability> -->
</datawriter_qos>
<datareader_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<subscription_name>
<name>
ConfigQoSReader
</name>
</subscription_name>
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit unbounded memory growth.
When either of these resource limits are hit, the reader will block from acknowledging new samples
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
</datareader_qos>
</qos_profile>
<qos_profile name="CommandQoS" base_name="BuiltinQosLib::Generic.Common">
<!-- This QOS profile is intended for aperiodic messages(Commands/SetElements/CommandStatus etc.) that need to be resent if not received -->
<base_name>
<!-- Send messages out "Reliably". Message will get resent if not received -->
<element>BuiltinQosSnippetLib::QosPolicy.Reliability.Reliable</element>
<!-- Automatically cleanup disposed Instances -->
<element>UMAAQoSLib::InstanceResourceAutoCleanup</element>
</base_name>
<datawriter_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<publication_name>
<name>
CommandQoSWriter
</name>
</publication_name>
<!-- This will spin up a separate thread to send out samples asynchronously as UMAA messages can be very large -->
<publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</publish_mode>
<!--
For these samples Commands etc., the assumption is you need to keep all messages.
In this scenario, no samples will be overwritten, and samples will only be removed from the
queue when they have been acknowledged as received from the reader side.
-->
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit unbounded memory growth.
When either of these resource limits are hit, the writer will block for the configured
max_blocking_time
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
<!--
Because we are using KEEP_ALL history, when either of the resource limits are reached
i.e. (max_samples, max_samples_per_instance),
the writer will block for the below configured time before returning a Timeout Error
Adjust as necessary per your system requirements.
-->
<reliability>
<max_blocking_time>
<sec>5</sec>
<nanosec>DURATION_INFINITE_NSEC</nanosec>
</max_blocking_time>
</reliability>
<liveliness>
<lease_duration>
<sec>5</sec>
<nanosec>0</nanosec>
</lease_duration>
</liveliness>
</datawriter_qos>
<datareader_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<subscription_name>
<name>
CommandQoSReader
</name>
</subscription_name>
<!--
This checks every 10 seconds if the DataWriter is still alive.
Will trigger on_liveliness_lost() / change Instance State to NOT_ALIVE_NO_WRITERS
-->
<liveliness>
<lease_duration>
<sec>10</sec>
<nanosec>0</nanosec>
</lease_duration>
</liveliness>
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit unbounded memory growth.
When either of these resource limits are hit, the reader will block from acknowledging new samples
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
</datareader_qos>
</qos_profile>
<qos_profile name="ElementQoS" base_name="BuiltinQosLib::Generic.Common">
<!-- This QOS profile is intended for aperiodic messages(Commands/SetElements/CommandStatus
etc.) that need to be resent if not received -->
<base_name>
<!-- Send messages out "Reliably". Message will get resent if not received -->
<element>BuiltinQosSnippetLib::QosPolicy.Reliability.Reliable</element>
<!-- Automatically cleanup disposed Instances -->
<element>UMAAQoSLib::InstanceResourceAutoCleanup</element>
</base_name>
<datawriter_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<publication_name>
<name>
ElementQoSWriter
</name>
</publication_name>
<!-- This will spin up a separate thread to send out samples asynchronously as UMAA messages
can be very large -->
<publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
</publish_mode>
<!--
For these samples Commands etc., the assumption is you need to keep all messages.
In this scenario, no samples will be overwritten, and samples will only be removed from the
queue when they have been acknowledged as received from the reader side.
-->
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit unbounded memory growth.
When either of these resource limits are hit, the writer will block for the configured
max_blocking_time
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
<!--
Because we are using KEEP_ALL history, when either of the resource limits are reached
i.e. (max_samples, max_samples_per_instance),
the writer will block for the below configured time before returning a Timeout Error
Adjust as necessary per your system requirements.
-->
<reliability>
<max_blocking_time>
<sec>1</sec>
<nanosec>DURATION_INFINITE_NSEC</nanosec>
</max_blocking_time>
</reliability>
</datawriter_qos>
<datareader_qos>
<!-- Use to verify in Admin Console QoS Profile used -->
<subscription_name>
<name>
ElementQoSReader
</name>
</subscription_name>
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
<!--
If using KEEP_ALL History, we want to set some bounds on the samples we can keep in the queue to
limit unbounded memory growth.
When either of these resource limits are hit, the reader will block from acknowledging new samples
NOTE: These values are arbitrary and just for reference usage, adjust to your system requirements
NOTE: max_samples_per_instance must be < max_samples
-->
<resource_limits>
<max_samples>500</max_samples>
<max_samples_per_instance>500</max_samples_per_instance>
</resource_limits>
</datareader_qos>
</qos_profile>
<qos_profile name="AssignerQoS">
<!--
We can use UMAA Topic suffixes to automatically assign QOS using the "topic_filter" tag.
All the datawriters/datareaders defined in the <domain_participant> sections are assigned to this.
Then depending on their suffix the selected QOS will be applied.
IMPORTANT: topic_filter uses FIRST-MATCH-WINS semantics. Place more specific
patterns (e.g. *SpecsReportType) BEFORE broader ones (e.g. *ReportType)
so they are not shadowed.
These filters could be refined further based on the behavior of data going over the Topics
-->
<!--
Uncomment to apply DefaultQoS as a baseline for all topics.
Useful for integration with other teams / DDS vendors.
Because topic_filter is first-match-wins, this MUST remain at the top
so that the more specific filters below override it.
-->
<!-- <datawriter_qos topic_filter="*" base_name="DefaultQoS" /> -->
<!-- <datareader_qos topic_filter="*" base_name="DefaultQoS" /> -->
<!-- Uncomment to apply QoS for use with USTM tool -->
<!-- <datawriter_qos topic_filter="*" base_name="USTMQoS" />
<datareader_qos topic_filter="*" base_name="USTMQoS" /> -->
<datawriter_qos topic_filter="*SpecsReportType" base_name="ConfigQoS" />
<datareader_qos topic_filter="*SpecsReportType" base_name="ConfigQoS" />
<datawriter_qos topic_filter="*ConfigReportType" base_name="ConfigQoS" />
<datareader_qos topic_filter="*ConfigReportType" base_name="ConfigQoS" />
<datawriter_qos topic_filter="*CommandAckReportType" base_name="CommandQoS" />
<datareader_qos topic_filter="*CommandAckReportType" base_name="CommandQoS" />
<datawriter_qos topic_filter="*ExecutionStatusReportType" base_name="CommandQoS" />
<datareader_qos topic_filter="*ExecutionStatusReportType" base_name="CommandQoS" />
<datawriter_qos topic_filter="*ReportType" base_name="TelemetryQoS" />
<datareader_qos topic_filter="*ReportType" base_name="TelemetryQoS" />
<datawriter_qos topic_filter="*CommandStatusType" base_name="CommandQoS" />
<datareader_qos topic_filter="*CommandStatusType" base_name="CommandQoS" />
<datawriter_qos topic_filter="*CommandType" base_name="CommandQoS" />
<datareader_qos topic_filter="*CommandType" base_name="CommandQoS" />
<datawriter_qos topic_filter="*SetElement" base_name="ElementQoS" />
<datareader_qos topic_filter="*SetElement" base_name="ElementQoS" />
<datawriter_qos topic_filter="*ListElement" base_name="ElementQoS" />
<datareader_qos topic_filter="*ListElement" base_name="ElementQoS" />
</qos_profile>
</qos_library>
</dds>