Connect windows and linux with ROS2

asked 2019-01-17 15:36:51 -0500

Nickhodem gravatar image

Hi I installed ROS 2 ontwo machines. First on the ubuntu and second one on windows. On each machine ROS 2 works properly. (Topics are available on localhost) However It is impossible to listen the topic on one machine, when the topic is being published on the second one. I tried to to run

ros2 run demo_nodes_cpp talker and

ros2 run demo_nodes_cpp listener or simply list the available topic.

Do you guys have any advice for me?

I’ve already changed the ROS_DOMAIN_ID on both of the machines.

Thank you in advanced!

edit retag flag offensive close merge delete


You need to make sure that both machines can exchange UDP multicast packet. A good starting point is to try running the ros2 multicast commands on both sides (see ).

Dirk Thomas gravatar image Dirk Thomas  ( 2019-01-18 12:08:54 -0500 )edit

I ran the ros2 multicast test and can see comm between two separate windows cmd prompts, between two separate WSL prompts (Ubuntu 18.04 with ros2-crystal), or between those setups, but still can't get the ros2 run demo_nodes_cpp listener to see a "talker" node's messages. What else can I try?

bwolfe gravatar image bwolfe  ( 2019-02-06 10:21:04 -0500 )edit

I've fallen the same situation as yours (ros multicast works, but not talker/listener between windows and ubuntu)... Did you find any solutions?

xoke gravatar image xoke  ( 2021-07-08 20:36:16 -0500 )edit