Connect windows and linux with ROS2
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!
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 https://github.com/ros2/ros2cli/tree/... ).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 theros2 run demo_nodes_cpp listener
to see a "talker" node's messages. What else can I try?I've fallen the same situation as yours (ros multicast works, but not talker/listener between windows and ubuntu)... Did you find any solutions?