what the ROS_IP for?
Hi,
Can anybody explain what the ROS_IP environment variable is for? I've read the "ROS/NetworkSetup" wiki, but didn't get the clear answer.
Here is my environment:
- Hostname, IP address
- robot, 192.168.25.80
- pc, 192.168.25.112
- android_phone, 192.168.25.113
my pc & android_phone can't resolve the hostname "robot". So, I specify the ROS_MASTER_URI=http://192.168.25.80
I want to run rviz to show the map in the robot. Also, I want to run "android_core" API to access the map in the app in android phone.
I know that I HAVE TO have the envirnment variable ROS_IP
= 192.168.25.80
But, can anybody tell me why??
The strange thing is, if I didn't setup the ROS_IP
environment variable, slaves still can send messages to /cmd_vel.
But the slaves won't be able to retrieve the /map
If the robot has multiple network interfaces, things will be more difficulty. for example:
robot has two interfaces:
- wlan0 192.168.25.80/24
- usb0 192.168.10.10/24
Due to network reachability issue, some of the slaves have to access to 192.168.25.80, and others have to access to 192.168.10.10 In this case, what IP should be filled in ROS_IP in the robot??