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

Roscore on virtual machine

asked 2016-03-01 14:34:52 -0500

mielto gravatar image

Hi, I'm trying to run roscore on virtual machine in cloud and connect robots to it. I have installed ros on vm. I have a openvpn server running as well, so robots could communicate with cloud and vice versa. On my robot I have openvpn client running.

Lets say my IP on vm is: and virtual network ip is

On robot ip: and virtual network ip

On vm: openvpn server running, roscore running, I used export ROS_HOSTNAME=

On robot: openvpn client running, I used export ROS_MASTER_URI= and export ROS_HOSTNAME=

And I get the error "Unable to communicate with master" on my robot.

Can anyone help me with this issue.Thank you very much

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-01 19:59:33 -0500

Arowana gravatar image

It looks like your ROS_MASTER_URI is using a domain name, which might be linked to the public IP. You might want to try ROS_MASTER_URI= The VM and your robot should use the same IP and ports. Otherwise you are not trying to connect to the same rosmaster.

You want to run your master in the cloud so all IPs should be you should have then on your VM ROS_HOSTNAME=

edit flag offensive delete link more

Question Tools


Asked: 2016-03-01 14:34:52 -0500

Seen: 1,953 times

Last updated: Mar 01 '16