ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
From your question and comments it's not clear what you set each computers ROS_MASTER_URI and ROS_IP to.
Before trying the ROS slave/master connection try to ping the computers from each other.
In any case, to communicate with the master you shouldn't change anything from the default setup on the computer used as master
. So on the master ROS_MASTER_URI=http://localhost:11311
and don't specify any ROS_IP.
Lets say the master's ip is 129.64.123.222 and slave ip is 129.64.123.111
Then on the slave machine you would have to run $ export ROS_MASTER_URI=http://129.64.123.222:11311 && export ROS_IP=129.64.123.111
Easiest way to check if everything works is to run roscore on the master and try run $ rostopic list
or something similar on the slave pc in the terminal with the correct exports. With just roscore running on the master you should see the /rosout and /rosout_agg topics.
2 | No.2 Revision |
From your question and comments it's not clear what you set each computers ROS_MASTER_URI and ROS_IP to.
Before trying the ROS slave/master connection try to ping the computers from each other.
In any case, to communicate with the master you shouldn't have to change anything from the default setup on the computer used as master
. So on the master ROS_MASTER_URI=http://localhost:11311
and don't specify any ROS_IP.
Lets say the master's ip is 129.64.123.222 and slave ip is 129.64.123.111
Then on the slave machine you would have to run $ export ROS_MASTER_URI=http://129.64.123.222:11311 && export ROS_IP=129.64.123.111
Easiest way to check if everything works is to run roscore on the master and try run $ rostopic list
or something similar on the slave pc in the terminal with the correct exports. With just roscore running on the master you should see the /rosout and /rosout_agg topics.
3 | No.3 Revision |
Edit
As @jayess pointed out you don't actually say that you are setting the environment variables in order to use ros as a master/slave setup. If you are not doing it for that can you please explain why are you changing the default values.
Does pinging the IPs you are trying to use work? If ping doesn't work then ROS is also not going to work with those settings.
From your question and comments it's not clear what you set each computers ROS_MASTER_URI and ROS_IP to.
Before trying the ROS slave/master connection try to ping the computers from each other.
In any case, to communicate with the master you shouldn't have to change anything from the default setup on the computer used as master
. So on the master ROS_MASTER_URI=http://localhost:11311
and don't specify any ROS_IP.
Lets say the master's ip is 129.64.123.222 and slave ip is 129.64.123.111
Then on the slave machine you would have to run $ export ROS_MASTER_URI=http://129.64.123.222:11311 && export ROS_IP=129.64.123.111
Easiest way to check if everything works is to run roscore on the master and try run $ rostopic list
or something similar on the slave pc in the terminal with the correct exports. With just roscore running on the master you should see the /rosout and /rosout_agg topics.