WARNING: ROS_MASTER_URI [http://10.139.0.116:3000] host is not set to this machine

asked 2022-08-05 13:29:49 -0500

soroushk93 gravatar image

updated 2022-08-05 13:52:33 -0500

gvdhoorn gravatar image

Hi,

We are using a Sawyer robot. I used this link to set up my ROS env:

https://support.rethinkrobotics.com/s...

Based on this link's instructions, I run the following commands:

student@PATY162-1:~$ cd rethink_ws/
student@PATY162-1:~/rethink_ws$ ./intera.sh 
[intera - http://10.139.0.116:3000] student@PATY162-1:~/rethink_ws$ echo $ROS_MASTER_URI
http://10.139.0.116:3000
[intera - http://10.139.0.116:3000] student@PATY162-1:~/rethink_ws$ 
[intera - http://10.139.0.116:3000] student@PATY162-1:~/rethink_ws$ echo $ROS_PACKAGE_PATH
/home/student/rethink_ws/src:/opt/ros/noetic/share
[intera - http://10.139.0.116:3000] student@PATY162-1:~/rethink_ws$ env | grep ROS
ROS_VERSION=1
ROS_PYTHON_VERSION=3
ROS_PACKAGE_PATH=/home/student/rethink_ws/src:/opt/ros/noetic/share
ROSLISP_PACKAGE_DIRECTORIES=/home/student/rethink_ws/devel/share/common-lisp
__ROS_PROMPT=1
ROS_IP=10.139.0.224
ROS_ETC_DIR=/opt/ros/noetic/etc/ros
ROS_MASTER_URI=http://10.139.0.116:3000
ROS_ROOT=/opt/ros/noetic/share/ros
ROS_DISTRO=noetic

But, when I use roscore command, I get this error:

[intera - http://10.139.0.116:3000] student@PATY162-1:~/rethink_ws$ roscore
... logging to /home/student/.ros/log/9eedb1e2-14ea-11ed-b88b-a1903e911010/roslaunch-PATY162-1-45701.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://10.139.0.224:39981/
ros_comm version 1.15.14


SUMMARY
========

PARAMETERS
 * /rosdistro: noetic
 * /rosversion: 1.15.14

NODES

**WARNING: ROS_MASTER_URI [http://10.139.0.116:3000] host is not set to this machine**
auto-starting new master
process[master]: started with pid [45720]
ROS_MASTER_URI=http://10.139.0.224:11311/

setting /run_id to 9eedb1e2-14ea-11ed-b88b-a1903e911010
process[rosout-1]: started with pid [45741]
started core service [/rosout]

When I command rosnode list, I get this error:

ntera - http://10.139.0.116:3000] student@PATY162-1:~/rethink_ws$ rosnode list
Traceback (most recent call last):
  File "/opt/ros/noetic/bin/rosnode", line 35, in <module>
    rosnode.rosnodemain()
  File "/opt/ros/noetic/lib/python3/dist-packages/rosnode/__init__.py", line 810, in rosnodemain
    sys.exit(_rosnode_cmd_list(argv) or 0)
  File "/opt/ros/noetic/lib/python3/dist-packages/rosnode/__init__.py", line 623, in _rosnode_cmd_list
    rosnode_listnodes(namespace=namespace, list_uri=options.list_uri, list_all=options.list_all)
  File "/opt/ros/noetic/lib/python3/dist-packages/rosnode/__init__.py", line 295, in rosnode_listnodes
    print(_sub_rosnode_listnodes(namespace=namespace, list_uri=list_uri, list_all=list_all))
  File "/opt/ros/noetic/lib/python3/dist-packages/rosnode/__init__.py", line 275, in _sub_rosnode_listnodes
    nodes = get_node_names(namespace)
  File "/opt/ros/noetic/lib/python3/dist-packages/rosnode/__init__.py", line 130, in get_node_names
    state = master.getSystemState()
  File "/opt/ros/noetic/lib/python3/dist-packages/rosgraph/masterapi.py", line 481, in getSystemState
    return self._succeed(self.handle.getSystemState(self.caller_id))
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
    response = self.__transport.request(
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1183, in single_request
    raise ProtocolError(
**xmlrpc ...
(more)
edit retag flag offensive close merge delete

Comments

maybe the tutorial used the ip of their machine but you have to change it to match your IP on your machine. run ifconfig and look for your IP then right that value in the ROS_MASTER_URI and ROS_IP variables

Ammar Albakri gravatar image Ammar Albakri  ( 2022-08-06 06:17:07 -0500 )edit

Thanks for your comment. No, I have set a static IP for the robot, which is on the same subnet with my PC as you see the IPs in the question.

soroushk93 gravatar image soroushk93  ( 2022-08-06 09:32:13 -0500 )edit