Skip to content

Latest commit

 

History

History
145 lines (122 loc) · 4.83 KB

datareader.rst

File metadata and controls

145 lines (122 loc) · 4.83 KB

DataReader profiles

The DataReader profiles allow declaring |DataReaders| from an XML file. These profiles are defined within the <data_reader> XML tags.

DataReader XML attributes

The <data_reader> element has two attributes defined: profile_name and is_default_profile.

Name Description Use
profile_name Sets the name under which the <data_reader> profile is registered in the DDS Domain, |br| so that it can be loaded later by the |DomainParticipant|, as shown in |br| :ref:`loadingapplyingprofiles`. Mandatory
is_default_profile Sets the <data_reader> profile as the default profile. Thus, if a default profile |br| exists, it will be used when no other DataReader profile is specified at the |br| DataReader's creation. Optional

DataReader configuration

The DataReader configuration is performed through the XML elements listed in the following table.

Name Description Values Default
<topic> :ref:`TopicType` configuration of the DataReader. :ref:`TopicType`  
<qos> Subscriber :ref:`CommonQOS` configuration. :ref:`CommonQOS`  
<times> It allows configuring some time related |br| parameters of the DataReader. :ref:`ReaderTimes <subtimes>`  
<unicastLocatorList> List of input unicast locators. |br| It expects a :ref:`LocatorListType`. List of :ref:`LocatorListType`  
<multicastLocatorList> List of input multicast locators. |br| It expects a :ref:`LocatorListType`. List of :ref:`LocatorListType`  
<external_unicast_locators> List of :ref:`external_locators` |br| to announce for the communication |br| with this DataReader. :ref:`externalLocatorListType`  
<ignore_non_matching_locators> Whether to ignore locators received on |br| announcements from other entities when |br| they don't match with any of the locators |br| announced by this DataReader. bool false
<expectsInlineQos> It indicates if QoS is expected inline. bool false
<historyMemoryPolicy> Memory allocation kind for DataReaders's |br| history. :ref:`historymemorypoliciesXML` |PREALLOCATED-xml-api|
<propertiesPolicy> Additional configuration properties. :ref:`PropertiesPolicyType`  
<userDefinedID> Used for StaticEndpointDiscovery. int16_t -1
<entityID> Set the |RTPSEndpointQos::entity_id-api| of the |RTPSEndpointQos| |br| class. int16_t -1
<matchedPublishersAllocation> Sets the limits of the collection of matched |br| DataWriters. See |br| :ref:`participantresourcelimitsqos`. :ref:`CommonAlloc`  

Example

.. literalinclude:: /../code/XMLTester.xml
    :language: xml
    :start-after: <!-->XML-SUBSCRIBER<-->
    :end-before: <!--><-->
    :lines: 2-4, 6-78, 80-81

ReaderTimes

These parameters are included within :ref:`rtpsreliablereaderqos` in the :ref:`readertimes` structure.

Name Description Values Default
<initialAcknackDelay> Initial ACKNACK delay. :ref:`DurationType` 70 ms
<heartbeatResponseDelay> Response time delay when receiving a Heartbeat. :ref:`DurationType` 5 ms