fkie_master_discovery: A master can't detect the other one while the other one detects the master

asked 2023-05-26 04:38:16 -0500

mericgeren gravatar image

updated 2023-05-26 04:41:13 -0500

Hello there,

I am new to ROS and robotics and now, i have 2 computers in the same local network which i am trying to make them to talk each other on ROS:

Laptop


  • OS: Windows 10
  • VM: Linux Ubuntu 20.04 (I am using this for ROS and multimaster)
  • 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:

    export ROS_HOSTNAME=laptop-linux
    
    export ROS_MASTER_URI=http://laptop-linux:11311
    
    export ROS_IP=192.XXX.XXX.ab
    
  • Multimaster: fkie_multimaster installed.

  • /etc/hosts:

127.0.0.1              localhost

127.0.0.1              laptop-linux

192.XXX.XXX.ab         laptop-linux

192.XXX.XXX.dc         pc-linux

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:
export ROS_HOSTNAME=pc-linux

export ROS_MASTER_URI=http://pc-linux:11311

export ROS_IP=192.XXX.XXX.dc
  • Multimaster: fkie_multimaster installed.

  • /etc/hosts:

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 from both computer to each other. When, i ping i get such an output in laptop-linux:

> From 192.XXX.XXX.ae icmp_seq=1
> Redirect Network(New nexthop:
> cd.XXX.XXX.192) 64 bytes from pc-linux
> (192.XXX.XXX.dc): icmp_seq=1 ttl=64
> time=1.27 ms 64 bytes from pc-linux
> (192.XXX.XXX.dc): icmp_seq=1 ttl=63
> time=1.27 ms (DUP!) 64 bytes from
> pc-linux (192.XXX.XXX.dc): icmp_seq=1
> ttl=64 time=1.49 ms (DUP!) 64 bytes
> from pc-linux (192.XXX.XXX.dc):
> icmp_seq=1 ttl=63 time=1.49 ms (DUP!)
> 1 packets transmitted, 1 received, +3
> duplicates, +1 errors, 0% packet loss

this is the output at the linux-pc:

> From 192.XXX.XXX.ae icmp_seq=1
> Redirect Network(New nexthop:
> laptop-linux (192.XXX.XXX.ab)) 64 bytes from laptop-linux
> (192.XXX.XXX.ab): icmp_seq=1 ttl=64
> time=1.27 ms 64 bytes from laptop-linux
> (192.XXX.XXX.ab): icmp_seq=1 ttl=63
> time=1.27 ms (DUP!) 64 bytes from
> laptop-linux (192.XXX.XXX.ab): icmp_seq=1
> ttl=64 time=1.49 ms (DUP!) 64 bytes
> from laptop-linux (192.XXX.XXX.ab):
> icmp_seq=1 ttl=63 time=1.49 ms (DUP!)
> 1 packets transmitted, 1 received, +3
> duplicates, 0% packet loss

When, i start master_discovery and master_sync on both nodes they start without any issue and when ... (more)

edit retag flag offensive close merge delete