跳到正文
Open Robotics Blog· @johncooper·AI 评分10

ROS 机器人跨网络远程访问该用什么 VPN / 组网方案?

What VPN / networking solution do you use for ROS robots?

AI 导读

针对跨多机或跨 LAN 运行 ROS 的远程访问与 ROS 1/ROS 2 跨站点通信,讨论集中在 OpenVPN、Tailscale、ZeroTier、自建 WireGuard 等方案的选择。

正文

2026 年8 月 20 日 12:17 1

For anyone running ROS across more than a single machine or LAN, how are you handling networking today?

I’m particularly curious about setups where you need remote access to robots, ROS 1/ROS 2 communication across sites or subnets, or connectivity between robots and backend/fleet systems.

What do you use?

  • OpenVPN / traditional VPN
  • Tailscale
  • ZeroTier
  • Self-managed WireGuard
  • Other
  • No VPN

0 voters

Would be great to hear in the comments what your setup looks like, especially for ROS 2/DDS discovery and multi-machine communication, and whether networking constraints influenced your choice.

As you scale your fleet from 2 to 20 robots and beyond you should update your network architecture such that you don’t need a VPN. As I always say: robot should be clients :trade_mark:. Meaning nothing in your logic should require inbound connections to robots. It should always be the robots connecting out. In the Transitive framework I chose MQTT as the base communication layer: all robots connect to a broker that lives in the cloud (or on-prem server for offline deployments), and keep that connection alive – reconnecting if necessary.

Sometimes you do need shell/SSH access to your robots, yes, but even for that you don’t need a VPN. With the above topology in place you can use a web terminal, either directly over MQTT or over a webrtc connection. Web terminals are nice because you can combine SSH + SCP in one interface, e.g., drag and drop files into the terminal for upload, click files listed by ls to download, like we did in the Terminal capability you can try.

4 个赞

Two different problems hide in this question, and they usually want different answers:

  1. ROS 2 traffic between sites (DDS discovery across subnets). DDS multicast doesn’t cross routers, and over a VPN it gets chatty fast. What tends to work best is not stretching DDS at all: run zenoh-bridge-ros2dds (or the rmw_zenoh middleware on Jazzy and later) on each robot and on the backend, and route only the topics you need. If you do need a VPN for it, WireGuard plus a Fast DDS Discovery Server beats multicast over the tunnel.

  2. Getting to the robot to operate it: a shell, logs, a dashboard port, knowing it went offline. Here I agree with chfritz: make the robot the client. Outbound-only connections survive customer firewalls, 4G and CGNAT, and you don’t open anything at the customer’s site.

    I’ve build Fieldhand (fieldhand.dev), which covers the second part without changing the robot’s software: one agent next to your stack, then a browser shell or your own ssh/VS Code (fh ssh robot-07), port forwarding (fh forward robot-07 9090 for rosbridge), health and offline alerts. It doesn’t carry DDS; I’d still use Zenoh for that.

来源:Open Robotics Blog · discourse.openrobotics.org