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

How to communicate ros2 nodes running on different machines and different network?

asked 2021-05-11 10:46:40 -0500

pmuthu2s gravatar image

Running Ubuntu 20.04 on both the machines and connected different network.

Looked into Fast RTPS eprosima documentation, but I'm not a network engineer, so that I'm not able to understand on how to setup the communication between the ROS-2 nodes.

Any help would be great here !

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-11 15:39:46 -0500

highmax1234 gravatar image

You have multiple possibilities, the easiest being a vpn.
This one is easy to set up: https://vpncloud.ddswd.de/

You can follow this tutorial, but keep in mind that it uses an old version of vpncloud: https://matteocontrini.medium.com/how...

Be sure to use tap mode, since ros2 discovery works with udp broadcast. Once you can ping the machines, you should be able to find each others nodes and topics.

Another way is to use a fastdds discovery server, according to the following tutorial: https://docs.ros.org/en/foxy/Tutorial...

Be aware that using command line tools like ros2 topic listdoes not yet work out of the box, see https://answers.ros.org/question/3730...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-05-11 10:46:40 -0500

Seen: 3,875 times

Last updated: May 11 '21