socrob / autonomous_systems

Material used for learning ROS and robotics, as part of the Autonomous Systems course at Instituto Superior Tecnico
34 stars 9 forks source link

ROS network problem #24

Open oscar-lima opened 6 years ago

oscar-lima commented 6 years ago

We are having some troubles teleoperating the pioneer using a command pc with virtualbox, but if we use 2 pcs with dual boot ubuntu-windows it works fine (the problem is that we only have one).
So we are wondering if you could help us solving this issue by telling us what we should change in networks configurations (if this is the root of the problem). We are sending this email because another group said that had the same problem and you were able to help them

oscar-lima commented 6 years ago

Please refer to this tutorial for network setup:

http://wiki.ros.org/ROS/NetworkSetup I advice you to do all with IP's:

example: ip of pc1: 10.0.1.14 ip of pc2: 10.0.1.18

master is pc1

on PC1:

export ROS_MASTER_URI=http://10.0.1.14:11311 export ROS_IP=10.0.1.14

on PC2:

export ROS_MASTER_URI=http://10.0.1.14:11311 export ROS_IP=10.0.1.18

This needs to be done for all terminals.