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 to organize data transfer between nodes on multiple PCs on ROS2
ROS2 Foxy composable node: Failed to load component due to undefined symbol
simulation with bag play data get different results
Is there any actual difference between a topic and a service?
ROS vs ROS 2.0 vs ROS industrial
Why image not recieved using ROS2 functions in the node?
map_server: Original error: parameter 'yaml_filename' is not initialized
@D0l0RES: please clarify why #q311530 is not a duplicate of this post.