Skip to content

Connect a ROS2 node to the Discovery node and to another peer (directly) [12811] #2291

@zemskymax

Description

@zemskymax

Is it possible to connect a ROS2 node (we work with Galactic) to both a Discovery server (to discover other ROS2 nodes) and to another peer that uses a multicast discovery?

I am trying to configure the DEFAULT_FASTRTPS_PROFILES.xml file according to this link.

<?xml version="1.0" encoding="UTF-8" ?>
<profiles>
    <participant profile_name="participant_profile" is_default_profile="true">
        <rtps>
            <builtin>
                <discovery_config>
                    <discoveryProtocol>SUPER_CLIENT</discoveryProtocol>
                    <discoveryServersList>
                        <RemoteServer prefix="x.x.x.x.x.x.x.x.x.x.x.x">
                            <metatrafficUnicastLocatorList>
                                <locator>
                                    <udpv4>
                                        <address>127.0.0.1</address>
                                        <port>11810</port>
                                    </udpv4>
                                </locator>
                            </metatrafficUnicastLocatorList>
                        </RemoteServer>
                    </discoveryServersList>
                </discovery_config>
                <initialPeersList>
                    <locator>
                    	<udpv4>
                            <!-- <port>11818</port> -->
                            <address>127.0.0.1</address>
                        </udpv4>
                    </locator>
                </initialPeersList>
            </builtin>
        </rtps>
    </participant>
</profiles>

However, it doesn't seem to work. Do you have any suggestions?

I would like to provide any other required information.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions