Closed gstavrinos closed 4 years ago
Update: netstat -g
returns:
no support for AF INET igmp on this system
You can use ~robot_hosts
parameter to send unicast discovery messages to WSL machine.
e.g. on linux hosts:
rosrun fkie_master_discovery master_discovery _robot_hosts:=[wsl_machine_name]
or in launch file:
<rosparam param="robot_hosts">[wsl_machine_name]</rosparam>
Hey @atiderko, thanks for the quick reply. The problem with this is that I am afraid that it will flood the network and make it unusable. I will give it a shot though, just to check.
(Note: I guess you meant add the linux machines as robot_hosts on the WSL machine, since the linux machine can successfully discover the WSL but not the other way around)
WSL does not see the linux machines its because WSL does not receive multicast messages from linux hosts. So master_discovery
on linux should send unicast heartbeat messages
to WSL. Therefore robot_hosts
should be set on linux.
Because of flooding you can change the heartbeat_hz
to reduce the send rate. You can set it also to zero. In this case heartbeats are send only on ROS-Master changes!
Woo! Didn't know that even with 0Hz heartbeat changes are caught! That was a great suggestion. I will get back when I try this and close the issue. Thanks, Alexander!
Good luck, George! I would be happy about a success message ;-)
Unicast did the trick! Off to the next steps! Thank you very much, Alexander!
Hello,
I am trying to connect a WSL Ubuntu installation (https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) on a multimaster system of 9 other rosmasters.
The problem I am facing is this:
All other (native linux) machines can discover the WSL machine, but the WSL machine cannot (it only detects itself) leading to a non-working system. No topics and services are synced.
All machines have the IPs and hostnames of the others in their hosts file, including the WSL one. The same goes for exporting the correct ROS_MASTER_URI. (Edit: I can also ping and ssh into any of the machines including the WSL)
Is there any suggestion or recommended way to run multimaster on a Windows machine?
Thanks in advance,
George