Open msadowski opened 1 year ago
I think you misread the logs.
started roslaunch server http://ca-na-p1:39837/
This reports a roslaunch server, not roscore. roscore does correctly take the ROS_MASTER_URI into account.
The roslaunch server is an implementation detail (roscore internally uses roslaunch to launch itself). The roslaunch endpoint you see in the log is probably only used for launching the /rosout
node, thus using any locally resolvable address is okay.
Hi!
I've been breaking my head over this for a good couple of hours now. Usually, when setting ROS I would assign variables:
But, interestingly, on this new machine I'm testing on (running Melodic) the ROS_MASTER_URI is ignored when running roscore:
The address of the roscore used seems to be
http://ca-na-p1:39837/
If I set ROS_HOSTNAME it seems to be taken into the account:
Am I missing anything? Setting ROS_MASTER_URI always seemed to work for me and I have no idea where roscore is taking the name of the machine from really. The value is the same as $HOSTNAME, but modifying the $HOSTNAME value did not change the value used by ROS.
Any tips would be appreciated!