ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It is not overriding the ROS_MASTER_URI, it is telling you what it thinks your ROS_MASTER_URI should be, as that is where the master is listening. The master respects ROS_HOSTNAME when launching and does not follow the ROS_MASTER_URI.
It does try to sanity check ROS_MASTER_URI such as verifying the port number and that it can reach itself at the known address.
$ roscore -p 11111
... logging to /home/tfoote/.ros/log/f523818c-0396-11e3-9904-902b34db2f33/roslaunch-BigFoote-29198.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://BigFoote:40065/
ros_comm version 1.9.47
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
WARNING: ROS_MASTER_URI port [11311] does not match this roscore [11111]
auto-starting new master
process[master]: started with pid [29212]
ROS_MASTER_URI=http://BigFoote:11111/
...
With an invalid hostname
$ ROS_HOSTNAME=invalid roscore -p 11111
... logging to /home/tfoote/.ros/log/63b53302-0397-11e3-9aa5-902b34db2f33/roslaunch-BigFoote-29441.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Unable to contact my own server at [http://invalid:59015/].
This usually means that the network is not configured properly.
A common cause is that the machine cannot ping itself. Please check
for errors by running:
ping invalid
For more tips, please see
http://www.ros.org/wiki/ROS/NetworkSetup
And differently set ROS_MASTER_URI hostname:
$ ROS_MASTER_URI=http://invalid:11111 roscore -p 11111
... logging to /home/tfoote/.ros/log/966bed7c-0397-11e3-90cd-902b34db2f33/roslaunch-BigFoote-29549.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://BigFoote:36475/
ros_comm version 1.9.47
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
WARNING: ROS_MASTER_URI [http://invalid:11111] host is not set to this machine
auto-starting new master
process[master]: started with pid [29564]
ROS_MASTER_URI=http://BigFoote:11111/
...
If there's a difference between what's in your bashrc and what it prints it is a warning sign that you should double check that they resolve to the same machine on all systems.