11.4. DataReader profiles¶
The DataReader profiles allow declaring DataReaders from an XML file.
These profiles are defined within the <data_reader>
or <subscriber>
XML tags.
Thus, the following XML codes are equivalent.
DataReader profile - Definition method 1 |
DataReader profile - Definition method 2 |
<data_reader profile_name="my_datareader_profile">
<topic>
<!-- TOPIC_TYPE -->
</topic>
<qos>
<!-- QOS -->
</qos>
<!-- Other elements -->
</data_reader>
|
<subscriber profile_name="my_subscriber_profile">
<topic>
<!-- TOPIC_TYPE -->
</topic>
<qos>
<!-- QOS -->
</qos>
<!-- Other elements -->
</subscriber>
|
Important
The <data_reader>
and <subscriber>
XML tags are equivalent.
Therefore, XML profiles in which the DataReaders are defined with the <subscriber>
tag are fully compatible
with Fast DDS.
11.4.1. DataReader XML attributes¶
The <data_reader>
element has two attributes defined: profile_name
and is_default_profile
.
Name |
Description |
Use |
---|---|---|
|
Sets the name under which the |
Mandatory |
|
Sets the |
Optional |
11.4.2. DataReader configuration¶
The DataReader configuration is performed through the XML elements listed in the following table.
Name |
Description |
Values |
Default |
---|---|---|---|
|
TopicType configuration of the DataReader. |
||
|
Subscriber QoS configuration. |
||
|
It allows configuring some time related |
||
|
List of input unicast locators. |
List of LocatorListType |
|
|
List of input multicast locators. |
List of LocatorListType |
|
|
It indicates if QoS is expected inline. |
|
|
|
Memory allocation kind for DataReaders’s |
||
|
Additional configuration properties. |
||
|
Used for StaticEndpointDiscovery. |
|
-1 |
|
Set the |
|
-1 |
|
Sets the limits of the collection of matched |
Example
<?xml version="1.0" encoding="UTF-8" ?>
<dds>
<profiles xmlns="http://www.eprosima.com/XMLSchemas/fastRTPS_Profiles" >
<data_reader profile_name="sub_profile_name">
<topic>
<!-- TOPIC_TYPE -->
</topic>
<qos>
<!-- QOS -->
</qos>
<times> <!-- readerTimesType -->
<initialAcknackDelay>
<sec>0</sec>
<nanosec>70</nanosec>
</initialAcknackDelay>
<heartbeatResponseDelay>
<sec>0</sec>
<nanosec>5</nanosec>
</heartbeatResponseDelay>
</times>
<unicastLocatorList>
<!-- LOCATOR_LIST -->
<locator>
<udpv4/>
</locator>
</unicastLocatorList>
<multicastLocatorList>
<!-- LOCATOR_LIST -->
<locator>
<udpv4/>
</locator>
</multicastLocatorList>
<expectsInlineQos>true</expectsInlineQos>
<historyMemoryPolicy>DYNAMIC</historyMemoryPolicy>
<propertiesPolicy>
<!-- PROPERTIES_POLICY -->
</propertiesPolicy>
<userDefinedID>55</userDefinedID>
<entityID>66</entityID>
<matchedPublishersAllocation>
<initial>0</initial>
<maximum>0</maximum>
<increment>1</increment>
</matchedPublishersAllocation>
</data_reader>
</profiles>
<dds>
Note
LOCATOR_LIST
means it expects a LocatorListType.PROPERTIES_POLICY
means that the label is a PropertiesPolicyType block.For
QOS
details, please refer to QoS.TOPIC_TYPE
is detailed in section TopicType.
11.4.2.1. Times¶
Name |
Description |
Values |
Default |
---|---|---|---|
|
Initial ACKNACK delay. |
70 ms |
|
|
Response time delay when receiving a Heartbeat. |
5 ms |