Select the desired port.
how to set a specific port (Ethernet) for publishing topics. I have 2 Ethernet ports, I want only one port to publish topics.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
This is a networking question more than it is a ROS question. The answer is it depends on your computer's network configuration.
ROS publishes data to the whole of the network it's connected to, so if both of the ethernet ports on your computer connect to different parts of the same network then messages could be published over both ports. However if your computer is connected to two different networks then you control which one ROS connects to using the ROS_IP or ROS_HOSTNAME environment variables as described here.
Hope this helps.
As far as I know ROS is only designed to work across a single network. There may be a solution with a VPN.
Asked: 2018-12-27 05:31:58 -0500
Seen: 663 times
Last updated: Dec 27 '18
How can I test a ROS2 nodes ROS interface with tests implemented in Python?
Frozen map + 'Message filter dropping'... Issues with mapping and navigation
Is there a way to subscribe to a topic at a given rate in ROS2? [closed]
ROS2 How to check if a publisher is connected?
Using Kinect 360 in ROS 2 Foxy
[ROS2] using dynamic parameters in Python
Colcon test not running gtests
@D0l0RES: please clarify why #q311530 is not a duplicate of this post.