Why does ROS_HOSTNAME overwrite (parts of) ROS_MASTER_URI?
See this example:
$ export ROS_MASTER_URI=http://my_pc_name:11311
$ export ROS_HOSTNAME=192.168.10.125
$ roscore
... logging to /home/marcus/.ros/log/666dd760-de3b-11e2-a641-f46d04929542/roslaunch-pirate-nest-2653.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://192.168.10.125:40223/
ros_comm version 1.9.46
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
auto-starting new master
process[master]: started with pid [2679]
ROS_MASTER_URI=http://192.168.10.125:11311/
setting /run_id to 666dd760-de3b-11e2-a641-f46d04929542
process[rosout-1]: started with pid [2718]
started core service [/rosout]
^C[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
$ export ROS_MASTER_URI=http://192.168.10.125:11311
$ export ROS_HOSTNAME=my_pc_name
$ roscore
... logging to /home/marcus/.ros/log/75dd2e8a-de3b-11e2-a4fa-f46d04929542/roslaunch-pirate-nest-2820.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://my_pc_name:52467/
ros_comm version 1.9.46
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
NODES
auto-starting new master
process[master]: started with pid [2834]
ROS_MASTER_URI=http://my_pc_name:11311/
setting /run_id to 75dd2e8a-de3b-11e2-a4fa-f46d04929542
process[rosout-1]: started with pid [2852]
started core service [/rosout]
^C[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
Is this supposed to happen?
It's not a huge problem, but took me a while to figure it out ...