ROS_MASTER_URI address keep changing every time roscore is run
Once in a while, when I run roscore from terminal, it can not connect to its server:
RLException: Unable to contact my own server at [http://192.168.1.123:34759/]. This usually means that the network is not configured properly.
This last part of ROSMASTERURI which is 34759 keeps changing when I run roscore multiple times. My bashrc file includes the following at the end:
source /opt/ros/melodic/setup.bash export ROSMASTERURI=http://192.168.1.123:11311 export ROS_IP=192.168.1.123
I am a beginner in ROS. I would appreciate your response. Thanks
Asked by vocdex on 2022-08-24 01:27:15 UTC
Answers
I don't know if it will help, but on my laptop where I run roscore, I set this
export ROS_HOSTNAME=myIp
export ROS_MASTER_URI=http://myIp:11311
Maybe try ROS_HOSTNAME instead of ROS_IP.
Maybe you will find your answer on this page http://wiki.ros.org/ROS/NetworkSetup
Asked by Edyger on 2022-08-26 15:45:49 UTC
Comments