This page deals with running ROS across multiple machines . This involves choosing one machine to be the master.
Also see ROS network setup
In this scenario, we want to control a mobile robot with a joystick plugged in a a fixed machine. How to do it ? Suppose the master is up and running. How to set up the remote machine :
wifibotlapap
/etc/hosts
:
192.168.1.106 wifibot-lab
sudo apt-get update
sudo apt-get install ros-hydro-joy
export ROS_MASTER_URI=http://wifibot-lab:11311
export ROS_IP=192.168.1.100
rosrun joy joy_node
rviz
on the slave, to visualize the robot state
rosrun rviz rviz
In case of trouble, see ROS network setup