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

Does ROS support communication in two different LANs?

asked 2021-10-08 02:01:24 -0500

lifly gravatar image

Does ROS support communication in two different LANs? One device is in LAN A and the other is in LAN B. How to realize the communication between the two? Please help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-08 03:39:39 -0500

gvdhoorn gravatar image

updated 2021-10-08 03:40:02 -0500

This doesn't sound like something "ROS" (which is a bit ambiguous, as there are only ROS packages, and those might or might not support something) needs to support necessarily I believe.

Routing IP traffic between different subnets is a task of the OS. As long as bi-directional UDP/IP and TCP/IP traffic can flow between hosts participating in a ROS node graph, the rest should just work. ROS does not change anything here. It's "just" a network application.

Allowing hosts on different subnets to communicate would require either:

  • a router, capable of routing between the two subnets (possibly with the help of other routers), or
  • a "virtual network" (such as a VPN), which would provide a means for hosts to bypass local routing by participating in an overlay network in which they are directly connected

(there are more options, but these would be the two most common solutions I believe)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-10-08 02:01:24 -0500

Seen: 70 times

Last updated: Oct 08 '21