Hello @all,
I am trying to configure the Limited Endpoint Discovery Plugin in the "USER_QOS_PROFILES.xml" file of a Python API application.
See configuration below:
<qos_library name="LBEDiscoveryPluginExample_Library"> <!-- QoS profile used to configure reliable communication between the DataWriter and DataReader created in the example code. A QoS profile groups a set of related QoS. --> <qos_profile name="LBEDiscoveryPluginExamplePublisher_Profile" is_default_qos="true"> <domain_participant_qos> <discovery_config> <builtin_discovery_plugins>SPDP</builtin_discovery_plugins> </discovery_config> <property> <value> <element> <name>dds.discovery.endpoint.lbediscovery.library</name> <value>rtilbedisc</value> </element> <element> <name>dds.discovery.endpoint.lbediscovery.create_function</name> <value>DDS_LBEDiscoveryPlugin_create</value> </element> <element> <name>dds.discovery.endpoint.lbediscovery.config_file</name> <value>LBEDiscoveryPluginExampleSubscriber.xml</value> </element> <element> <name>dds.discovery.endpoint.load_plugins</name> <value>dds.discovery.endpoint.lbediscovery</value> </element> <element> <name>dds.discovery.endpoint.lbediscovery.verbosity</name> <value>0</value> </element> </value> </property> </domain_participant_qos> <datawriter_qos> <protocol> <rtps_object_id>200</rtps_object_id> </protocol> </datawriter_qos> </qos_profile> </qos_library>
However, when the application loads the "USER_QOS_PROFILES.xml", it returns the following error message:
RTIXMLParser_validateOnStartTag:Parse error at line 75: Unexpected tag 'domain_participant_qos'
RTIXMLParser_parseFromFile_ex:Parse error in file 'USER_QOS_PROFILES.xml'
Do you have any ideas?
Thanks in advance!
Regards,
Marc
I think your XML file is missing the dds tag:
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://community.rti.com/schema/current/rti_dds_qos_profiles.xsd">
</dds>
Can you wrap your XML file with that and see if it resolves your issue?
Hello samr,
It is not missing. I didnt post the whole xml content. Here once again with the whole content:
Marc,
Can you replace domain_participant_qos with just 'participant_qos' as a quick experiment?
We made this change recently.
Hello garyb,
Thanks, that works so far.
Regards,
Marc