ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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. Use ROS_IP if you are specifying an IP address, and ROS_HOSTNAME if you are specifying a host name. [..]

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. precedence. Use ROS_IP if you are specifying an IP address, and ROS_HOSTNAME if you are specifying a host name. [..]

If you then have ROS_HOSTNAME set to an incorrect IP, things will probably not work.