ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Is it possible to run ROS2 via wireguard

asked 2023-03-17 10:41:17 -0500

Markus Bader gravatar image

Hi

I like to connect ROS2 nodes via a wireguard vpn network. Is this possible?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-03-17 10:46:00 -0500

Markus Bader gravatar image

I got it working and prepared an example on github

Using Eclipse Cyclone DDS, but one has to set some variables

export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
export CYCLONEDDS_URI=file:///$(pwd)/cyclonedds.xml

and the cyclonedds.xml looks like:

<?xml version="1.0" encoding="UTF-8" ?>
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd">
    <Domain id="any">
        <General>
            <Interfaces>
                <NetworkInterface name="wg0"/>
            </Interfaces>
        </General>
        <Discovery>
            <Peers>
            <Peer address="192.168.33.80"/>
            <Peer address="192.168.33.51"/>
            </Peers>
            <ParticipantIndex>auto</ParticipantIndex>
        </Discovery>
    </Domain>
</CycloneDDS>
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-03-17 10:41:17 -0500

Seen: 683 times

Last updated: Mar 17 '23