From time to time there are issues users have with connecting remote ROS or ROS 2 powered robots that do not share the same network.
This is why I created an article showing you how to connect ROS 2 nodes running on different hosts in different networks.
Together with this blog post I created an open-source, simple example project, where we run the same ROS 2 nodes, but in different scenarios:
- Single host | nodes running on the host system | No VPN
- Single host | nodes running in a single Docker container | No VPN
- Single host | nodes running in two Docker containers (Docker-Compose) | No VPN
- Two remote hosts | nodes running across two hosts in Docker | VPN Client installed inside the container
- Two remote hosts | nodes running across two hosts in Docker | VPN Client as a separate Docker container
- Two remote hosts | multiple Docker containers - each running a single node | VPN Client as a separate Docker container
The article is a step-by-step journey where I present the advantages and disadvantages of the following setups.
I hope you guys will find it helpful!
All the best,