cyclonedds-python icon indicating copy to clipboard operation
cyclonedds-python copied to clipboard

Domain initialization exception when ROS_DOMAIN_ID=0

Open alrad32 opened this issue 4 weeks ago • 0 comments
trafficstars

Hello, When trying to initialize the Domain class using id 0, while simultaneously having ROS_DOMAIN_ID environment variable set to 0, the following exception is raised by the Entity class: Occurred upon initialisation of a cyclonedds.domain.Domain. I am passing the following config to the Domain class:

'''<?xml version="1.0" encoding="UTF-8" ?>
    <CycloneDDS>
        <Domain Id="any">
            <General>
                <Interfaces>
                    <NetworkInterface name="eht0" priority="default" multicast="default"/>
                </Interfaces>
            </General>
            <Tracing>
                <Verbosity>config</Verbosity>
            <OutputFile>/tmp/cdds.LOG</OutputFile>
        </Tracing>
        </Domain>
    </CycloneDDS>'''

Changing the ROS_DOMAIN_ID to any other value results in successful initialization of the Domain class. It is unclear whether this is related to ROS already using the CPP version of cyclone DDS by default. I would appreciate it if you could suggest possible inspection tracks for this.

I am using ROS Humble within a docker container on an Ubuntu 20.04 host.

alrad32 avatar Oct 22 '25 12:10 alrad32