[ROS2] Two machines are in same network but can't communicate in ROS2 [closed]
They can ping each other, but nodes in both machines cannot talk to each other. Topics being published are not seen by another machine too.
Did you set the same
ROS_DOMAIN_ID
for both machines?A lot of people have gotten similar weirdness with fastRTPS as their dds implementation. If you are using that, I recommend switching to opensplice and seeing if your issue continues to reproduce.
Is it possible UDP multicast is disabled in the network? How can I check that? If so, is there a way to do it differently? I saw something like unicast and specifying ops in a XML file.
I modify opensplice settings here: /opt/ros/dashing/share/opensplice_cmake_module/config/ros_ospl.xml
but I don't know how to configure other impls
the folks here mentioned problems with multicast: https://blog.roverrobotics.com/ros-2-...
I think it's not the issue of ROS_DOMAIN_ID since it works under the ethernet but right after switching to the wifi it doesn't.
That sounds a lot like your traffic is being blocked on the wifi or it's still trying to route through the ethernet that was just unplugged.