Closed mericgeren closed 1 year ago
If I understand the configuration correctly, the launch in the pc-linux should contain the IP address of laptop-linux:
<rosparam param="robot_hosts">[192.XXX.XXX.ab]</rosparam>
I just tried that. But, when i try the setting with 192.XXX.XXX.ab, both pc-linux and laptop-linux couldn't see each other.
That is strange! Are you sure, you changed 192.XXX.XXX.ae to 192.XXX.XXX.ab on pc-linux?
Can you post the log output of both master_discovery
This is the output of launch on laptop-linux:
started roslaunch server http://192.XXX.XXX.ab:33415/
SUMMARY
========
PARAMETERS
* /master_discovery/listen_mcast: False
* /master_discovery/robot_hosts: ['192.XXX.XXX.dc']
* /master_discovery/send_mcast: False
* /rosdistro: noetic
* /rosversion: 1.16.0
NODES
/
master_discovery (fkie_master_discovery/master_discovery)
master_sync (fkie_master_sync/master_sync)
ROS_MASTER_URI=http://192.XXX.XXX.ab:11311
process[master_discovery-1]: started with pid [2627]
process[master_sync-2]: started with pid [2628]
[WARN] [1685527211.398182]: Send multicast is disabled.
[WARN] [1685527211.399327]: Listen to multicast is disabled.
[WARN] [1685527211.466337]: Multicast disabled! This master is only by unicast reachable!
This is the output of the launch on pc-linux:
started roslaunch server http://192.XXX.XXX.dc:41693/
SUMMARY
========
PARAMETERS
* /master_discovery/listen_mcast: False
* /master_discovery/robot_hosts: ['192.XXX.XXX.ab']
* /master_discovery/send_mcast: False
* /rosdistro: melodic
* /rosversion: 1.14.13
NODES
/
master_discovery (fkie_master_discovery/master_discovery)
master_sync (fkie_master_sync/master_sync)
ROS_MASTER_URI=http://192.XXX.XXX.dc:11311
process[master_discovery-1]: started with pid [3347]
process[master_sync-2]: started with pid [3348]
[WARN] [1685523371. 007897]: Send multicast is disabled
[WARN] [1685523371. 009964]: Listen to multicast is disabled
[WARN] [1685523371. 021482]: master_discovery node appear not to running @192.168.88.37, only found on []. Wait for topic with type 'MasterState' @192.168.88.37.
[WARN] [1685523371. 038358]: Multicast disabled! This master is only unicast reachable!
The launch server prevents the output of the master_discovery. Can you launch the the master_discovery manually and look if you see something wrong, like wrong discovered IP's... For debug output you have to start the node twice, without to stop the roscore.
rosrun fkie_master_discovery master_discovery _log_level:=DEBUG _robot_hosts:=['192.XXX.XXX.ab'] send_mcast:=False listen_mcast:=False
Thank you so much. I don't know how but in logs now i can see they added each other and when i write rosservice /master_discovery/list_masters
i can see that there are 2 masters listed. Thank you so much for all the help you have offered and your time. I you don't mind i am closing this issue as completed.
Glad I could help!
can you try with send_mcast:=True listen_mcast:=True
Hello,
I have 2 computers in the same local network which i am trying to connect them via fkie multimaster:
Laptop
OS: Windows 10
VM: Linux Ubuntu 20.04 (I am using this for ROS and multimaster)
VM Software: VMware Workstation 17 Player (17.0.2 build-21581411)
Connection Method: Wifi
IP Address: 192.XXX.XXX.ab (Ip of VM, in the same network with the other computer)
IP Address: 192.XXX.XXX.ae (original ip of the laptop, same network with the other computers)
VM Network Configuration: Bridged (So i don't have a changing ip and VM machine is just like any other device in the local network)
ROS Distro: Noetic
ROS Parameters: Set in ".bashrc" and just like following:
Multimaster: fkie_multimaster installed.
/etc/hosts:
PC
OS: Linux Ubuntu 18.04 (non-VM)
VM: None
Connection Method: Ethernet
IP Address: 192.XXX.XXX.dc (In the same network with the other computer)
ROS Distro: Melodic
ROS Parameters: Set in ".bashrc" and just like following:
Multimaster: fkie_multimaster installed.
/etc/hosts:
I can ping from both computer to each other. When, i ping i get such an output in laptop-linux:
this is the output at the pc-linux:
Then i do a roslaunch on a custom launch file on both computers. This is the custom launch in laptop-linux:
This is the launch file in the pc-linux:
Then, when i enter rosservice call /master_discovery/list at pc-linux i see the following output:
As you can see from the output the master_discovery node on pc-linux can detect the master in laptop-linux. But, when i enter the same command in the laptop-linux, i get the following output:
Can you help me on this issue please?
Thanks in advance.