Skip to content

MultipleMachines

AutoModelCar edited this page Oct 25, 2016 · 3 revisions

Running ROS in Multiple Machines

First Connect to the host Wifi (WLAN) at first. (Username:ROS, Password: elfmeter)

If you want to run the codes on your local machine and publish and subscribe the topics on the local machine, you need to set "ROS_MASTER_URI" to the IP of the model car, and "ROS_IP" and "ROS_HOSTNAME" to the IP of your local machine. For example the IP of the model car is 192.168.43.112 , and your local IP is 192.168.43.189. Then export the lines below in the terminal:

export ROS_MASTER_URI=http://192.168.43.112:11311

export ROS_IP=192.168.43.189
export ROS_HOSTNAME=192.168.43.189

Then you can launch your codes in your computer while using roscore in the modelcar.

$ roslaunch test_model_car publish_light.launch

Clone this wiki locally