[ros-users] [Discourse.ros.org] [Next Generation ROS] How to run example talker/listener on 2 machines with different ipaddr?

bgmoon ros.discourse at gmail.com
Mon Oct 8 17:56:52 UTC 2018



All the machines that will be talking to each other must satisfy two constraints.  First, they must all be within the same multicast domain on your network.  This is a network setup issue and not strictly a ROS thing.  If you don't know how to do that, an alternative is to define the unicast addresses of all the computers that need to communicate with each other in an XML file placed in the directory from which you run the "ros2" command.

Secondly, then they must have the same ROS_DOMAIN_ID.  The ROS_DOMAIN_ID is used to segment the network multicast domain into smaller communities that are allowed to talk to each other.





---
[Visit Topic](https://discourse.ros.org/t/how-to-run-example-talker-listener-on-2-machines-with-different-ipaddr/2106/8) or reply to this email to respond.




More information about the ros-users mailing list