ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
You need to connect your virtual machine and the other computer as ROS master/slave.
Here is ROS wiki about master/slave and networking. And here is a tutorial that is a bit more straight forward to follow.
Basically what you need to do is (change the ip's to the ip's of your setup):
export ROS_MASTER_URI=http://192.168.0.4:11311
)export ROS_IP=192.168.0.5
)To verify that you have ROS connected on the two computers:
roscore
printenv | grep ROS
to verify the before-mentioned variables are set correctlyrostopic list
)If everything works as expected you should see the /rosout and /rosout_agg topics listed on the slave terminal. You could now run your launch files in these terminals and it should work. With this setup you have to set the variables for each terminal you want to communicate with the master. If this is not to your liking read the links posted above.