ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

As a simple recap in order to communicate between two machines using ROS2 DDS:

  • Disable firewalls (or update the configuration to allow the communication) -Look at the different networking interfaces
  • Make sure to have the two machines under the same subnetwork
  • Make sure that the DDS libraries are using the correct interface
  • Make sure that the DDS libraries are not using shared memory communication (versus multicast)
  • Enable your network switch to use multicast
  • Try pinging the two machines between each others
  • Export the same ROS_DOMAIN_ID

As a simple recap in from all the comments (@Karsten, @gvdhoorn). In order to communicate between two machines using ROS2 DDS:

  • Disable firewalls (or update the configuration to allow the communication)
  • -Look
  • Look at the different networking interfacesinterfaces (ifconfig on ubuntu, Ipconfig /all on windows)
  • Make sure to have the two machines under the same subnetworksubnetwork (same network mask,.. )
  • Make sure that the DDS libraries are using the correct interface interface
  • Make sure that the DDS libraries are not using shared memory communication (versus multicast)
  • Enable your network switch to use multicast
  • Try pinging the two machines between each others
  • Export the same ROS_DOMAIN_IDROS_DOMAIN_ID (https://discourse.ros.org/t/how-to-run-example-talker-listener-on-2-machines-with-different-ipaddr/2106)

As a simple recap from all the comments (@Karsten, @gvdhoorn). In order to communicate between two machines using ROS2 DDS:

  • Disable firewalls (or update Update the configuration to allow the communication) communication in your Firewall (or disable it)
  • Look at the different networking interfaces (ifconfig on ubuntu, Ipconfig /all on windows)
  • Make sure to have the two machines under the same subnetwork (same network mask,.. )
  • Make sure that the DDS libraries are using the correct interface
  • Make sure that the DDS libraries are not using shared memory communication (versus multicast)
  • Enable your network switch to use multicast
  • Try pinging the two machines between each others
  • Export the same ROS_DOMAIN_ID (https://discourse.ros.org/t/how-to-run-example-talker-listener-on-2-machines-with-different-ipaddr/2106)