ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
At laptop (ip 192.168.7.1):
export ROS_IP=192.168.7.1 export ROS_HOSTNAME=192.168.7.1 export ROS_MASTER_URI=http://192.168.7.1:11311
At beaglebone (ip 192.168.7.2):
export ROS_IP=192.168.7.2 export ROS_HOSTNAME=192.168.7.1 export ROS_MASTER_URI=http://192.168.7.1:11311
Is that an actual copy/paste? Because you have ROS_HOSTNAME
set to the same IP on both machines, which is not what you want I guess.
Also, you should not / don't need to set both ROS_IP
and ROS_HOSTNAME
at the same time. Just setting ROS_IP
should be enough (but make sure to set it to the correct IP). From the wiki/ROS/EnvironmentVariables - ROS_IP/ROS_HOSTNAME page:
[..] The options are mutually exclusive, if both are set
ROS_HOSTNAME
will take precedence. UseROS_IP
if you are specifying an IP address, andROS_HOSTNAME
if you are specifying a host name. [..]
2 | No.2 Revision |
At laptop (ip 192.168.7.1):
export ROS_IP=192.168.7.1 export ROS_HOSTNAME=192.168.7.1 export ROS_MASTER_URI=http://192.168.7.1:11311
At beaglebone (ip 192.168.7.2):
export ROS_IP=192.168.7.2 export ROS_HOSTNAME=192.168.7.1 export ROS_MASTER_URI=http://192.168.7.1:11311
Is that an actual copy/paste? Because you have ROS_HOSTNAME
set to the same IP on both machines, which is not what you want I guess.
Also, you should not / don't need to set both ROS_IP
and ROS_HOSTNAME
at the same time. Just setting ROS_IP
should be enough (but make sure to set it to the correct IP). From the wiki/ROS/EnvironmentVariables - ROS_IP/ROS_HOSTNAME page:
[..] The options are mutually exclusive, if both are set
ROS_HOSTNAME
will takeprecedence.precedence. UseROS_IP
if you are specifying an IP address, andROS_HOSTNAME
if you are specifying a host name. [..]
If you then have ROS_HOSTNAME
set to an incorrect IP, things will probably not work.