Running ROS across multiple machine
I'm trying to run ROS on two machines which are connected to a local network. Both can ping each other.
I started roscore on first machine and set the ROS_MASTER_URI=http://192.168.0.22:11311
to the second machine.
When I run rosnode list
on the second machine it shows /rosout
node.
But when I start a node on the second machine it fails saying:
[ERROR] [1477518161.033462327]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
It keeps looking for ros master on the same machine. I don't know why. Both machines are running Ros Indigo.
Any help would be much appreciated.
How did you "set the
ROS_MASTER_URI=..
exactly?Can you add the output of
echo $ROS_MASTER_URI
(from both machines) to your question?Please also add the output of
echo $ROS_IP
andecho $ROS_HOSTNAME
for both machines to your question. Use the edit button/link to update it.Yea i think you have to use
export ROS_IP=192.168.0.22
and also theexport ROS_MASTER_URI=http://192.168.0.22:11311
in order to be able to communicate between both machines