How to export ros master to remote virtual machine?

asked 2021-08-15 04:35:16 -0500

Tejas Rao gravatar image

I have a remote Bitnami virtual machine, which I can access using a .pem file. The machine has ROS Noetic installed on it. I want to run a single ROS core on that virtual machine and connect multiple remote computers to the same ROS master by exporting it, to enable remote communication. I have looked at the http://wiki.ros.org/ROS/Tutorials/Mul..., and http://wiki.ros.org/ROS/NetworkSetup tutorials, but was unable to find a way to implement them on the remote virtual machine. Can someone please help me out with this, or at least provide a better alternative?

edit retag flag offensive close merge delete

Comments

Treat the VM as a stand-alone system / host, don't use NAT networking for your VM, try to give it a static IP or use hostnames everywhere and make sure your VM can resolve hostnames of those "multiple remote computers" and those "multiple remote computers" can resolve the hostname of the VM (and have a route to it).

The VM is not special. Treat it like the virtual PC it is.

Or if this is still the same context as in #q384130: use a VPN (or other form of overlay network infrastructure) and make the VM simply a participant. You'd still follow the multi-machine networking tutorial, but it might make things slightly easier (no NAT, etc).

gvdhoorn gravatar image gvdhoorn  ( 2021-08-15 06:20:37 -0500 )edit