Python DDS connector issue

2 posts / 0 new
Last post
Offline
Last seen: 5 years 1 month ago
Joined: 11/09/2019
Posts: 1
Python DDS connector issue

Hi

I want to use 2 connectors in my python program but I don't know why this error occurs

DDS_PropertySeq_add_element:!new element. ELEMENT ALREADY EXISTS. EITHER REMOVE THIS CALL OR CALL assert_element INSTEAD.
DDS_PropertyQosPolicyHelper_add_property:!add element
RTI Connector Unable to access RTI Data Distribution Service Core Libraries
See www.rti.com for more information.
RTIDDSConnector_newI:!new unable to add license
RTIDDSConnector_EntitiesLookupList_delete:RTIDDSConnector
Exception in thread Thread-1:
Traceback (most recent call last):
  File "RCInput.py", line 45, in Velocitywriter
    filepath + "/../dds.xml")
  File "/home/diego/.local/lib/python3.6/site-packages/rticonnextdds_connector/rticonnextdds_connector.py", line 326, in __init__
    raise ValueError("Invalid participant profile, xml path or xml profile")
ValueError: Invalid participant profile, xml path or xml profile

I am using threads and so that each connector is in a thread but only the first one to run is created. I attach the xml and the python below

thans

 

AttachmentSize
Package icon dds.zip2.04 KB
Offline
Last seen: 2 months 3 weeks ago
Joined: 04/02/2013
Posts: 196

Hi,

I can reproduce the problem you reported. I've found a workaround while we investigate it.

You can simply add a <participant_qos> tag to your profile, even an empty one:

 

    <!-- Qos Library -->
    <qos_library name="qosLibrary">
        <qos_profile name="defaultProfile" is_default_qos="true">
            <participant_qos/>
        </qos_profile>
    </qos_library>