fkie / multimaster_fkie

ROS stack with FKIE packages for multi-robot (discovering, synchronizing and management GUI)
BSD 3-Clause "New" or "Revised" License
271 stars 108 forks source link

[WARN] can't retrieve connection information using XMLRPC from [http://192.XXX.XXX.ae:11611], socket error: timed out #195

Open mericgeren opened 1 year ago

mericgeren commented 1 year ago

Hello,

I am trying to do the same what i did there: #194 in WSL version 1. I have 2 computers:

Laptop


export ROS_MASTER_URI=http://laptop-windows:11311

export ROS_HOSTNAME=laptop-windows
127.0.0.1              localhost

127.0.1.1              laptop-windows.localdomain       laptop-windows

192.XXX.XXX.ae      laptop-windows

192.XXX.XXX.dc      pc-linux

PC


export ROS_MASTER_URI=http://192.XXX.XXX.dc:11311

export ROS_IP=192.XXX.XXX.dc
127.0.0.1              localhost

127.0.0.1              pc-linux

192.XXX.XXX.ab         laptop-linux

192.XXX.XXX.ae         laptop-windows    

192.XXX.XXX.dc         pc-linux

I can ping each from eachother both with ips and their hostnames without any errors or duplicates. Then i did rosrun fkie_master_discovery master_discovery _log_level:=DEBUG _robot_hosts:=['192.XXX.XXX.XXX'] send_mcast:=False listen_mcast:=False on both computers. This is the output in the laptop-windows:

[INFO] [1685535984.541164]: Check the ROS Master[Hz]: 1
[INFO] [1685535984.545838]: Heart beat [Hz]: 0.02
[INFO] [1685535984.549145]: Active request after [sec]: 60
[INFO] [1685535984.552254]: Remove after [sec]: 300
[INFO] [1685535984.556303]: Robot hosts: ['192.XXX.XXX.dc']
[INFO] [1685535984.559417]: Approx. mininum avg. network load: 2.72 bytes/s
[INFO] [1685535984.580044]: Start RPC-XML Server at ('0.0.0.0', 11611)
[INFO] [1685535984.586414]: hide_nodes: []
[INFO] [1685535984.592322]: hide_topics: []
[INFO] [1685535984.598337]: hide_services: []
[INFO] [1685535984.601438]: Subscribe to parameter `/roslaunch/uris`
[INFO] [1685535986.800580]: Detected master discovery: http://192.XXX.XXX.ae:11611
[INFO] [1685535987.680392]: Detected master discovery: http://192.XXX.XXX.dc:11611
[INFO] [1685535987.803892]: Added master with ROS_MASTER_URI=http://192.XXX.XXX.dc:11311/
[WARN] [1685535996.918111]: can't retrieve connection information using XMLRPC from [http://192.XXX.XXX.ae:11611], socket error: timed out
[WARN] [1685536011.939376]: can't retrieve connection information using XMLRPC from [http://192.XXX.XXX.ae:11611], socket error: timed out

This the output from the pc-linux:

[INFO] [1685535335.030902]: Check the ROS Master[Hz]: 1
[INFO] [1685535335.034230]: Heart beat [Hz]: 0.02
[INFO] [1685535335.037334]: Active request after [sec]: 60
[INFO] [1685535335.040327]: Remove after [sec]: 300
[INFO] [1685535335.043350]: Robot hosts: ['192.XXX.XXX.ae']
[INFO] [1685535335.046686]: Approx. mininum avg. network load: 2.72 bytes/s
[INFO] [1685535335.063905]: Start RPC-XML Server at ('0.0.0.0', 11611)
[INFO] [1685535335.070067]: hide_nodes: []
[INFO] [1685535335.075686]: hide_topics: []
[INFO] [1685535335.080992]: hide_services: []
[INFO] [1685535335.084193]: Subscribe to parameter `/roslaunch/uris`
[INFO] [1685535335.098708]: + Bind to specified unicast socket @(192.XXX.XXX.dc:11511)
[INFO] [1685535335.231672]: Detected master discovery: http://192.XXX.XXX.dc:11611
[INFO] [1685535335.340096]: Added master with ROS_MASTER_URI=http://192.XXX.XXX.dc:11311/
[INFO] [1685535987.121457]: Detected master discovery: http://192.XXX.XXX.ae:11611
[WARN] [1685535997.244617]: can't retrieve connection information using XMLRPC from [http://192.XXX.XXX.ae:11611], socket error: timed out
[WARN] [1685536012.269107]: can't retrieve connection information using XMLRPC from [http://192.XXX.XXX.ae:11611], socket error: timed out

Could you help me on this issue please?

Thanks in advance.

atiderko commented 1 year ago

can you try to set the _rpc_addr:=192.XXX.XXX.ae on the laptop-windows

mericgeren commented 1 year ago

When i try to set _rpc_addr:=192.XXX.XXX.ae with rosrun fkie_master_discovery master_discovery _log_level:=DEBUG _robot_hosts:=['192.XXX.XXX.dc'] send_mcast:=False listen_mcast:=False _rpc_addr:=192.XXX.XXX.ae on the laptop-windows, i get this warning repeating itself:

[WARN] [1685538983.994773]: Error while start RPC-XML server on port 11611: [Errno 98] Address already in use Try again...

Thank you for your kind help and for your time.

atiderko commented 1 year ago

the port is already in use. Try to change the rpc port to e.g.: _rpc_port:=11612