ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

When I run roscore, it has the following error.

asked 2011-10-18 13:41:36 -0500

HelenJiang gravatar image

updated 2011-10-18 20:16:20 -0500

Hi:

When I use roscore command, it has the following error. Please help me.

... logging to /home/turtlebot/.ros/log/b271445a-f9f2-11e0-ad43-485d607d0ff5/roslaunch-turtlebot8-4104.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.

Traceback (most recent call last):
  File "/opt/ros/diamondback/stacks/ros_comm/tools/roslaunch/src/roslaunch/__init__.py", line 247, in main
    p.start()
  File "/opt/ros/diamondback/stacks/ros_comm/tools/roslaunch/src/roslaunch/parent.py", line 254, in start
    self._start_infrastructure()
  File "/opt/ros/diamondback/stacks/ros_comm/tools/roslaunch/src/roslaunch/parent.py", line 212, in _start_infrastructure
    self._start_server()
  File "/opt/ros/diamondback/stacks/ros_comm/tools/roslaunch/src/roslaunch/parent.py", line 163, in _start_server
    self.server.start()
  File "/opt/ros/diamondback/stacks/ros_comm/tools/roslaunch/src/roslaunch/server.py", line 371, in start
    code, msg, val = xmlrpclib.ServerProxy(self.uri).get_pid()
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1228, in request
    h = self.make_connection(host)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1305, in make_connection
    return httplib.HTTP(host)
  File "/usr/lib/python2.6/httplib.py", line 1020, in __init__
    self._setup(self._connection_class(host, port, strict))
  File "/usr/lib/python2.6/httplib.py", line 657, in __init__
    self._set_hostport(host, port)
  File "/usr/lib/python2.6/httplib.py", line 682, in _set_hostport
    raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
InvalidURL: nonnumeric port: ''
edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
1

answered 2011-10-18 15:47:43 -0500

tfoote gravatar image

updated 2011-10-18 15:49:12 -0500

You can get this error by setting your ROS_HOSTNAME or ROS_IP with a value including a colon. The ROS_HOSTNAME or ROS_IP should not have a colon in it such as ROS_IP=192.168.1.1

For more information on environment variables see http://www.ros.org/wiki/ROS/EnvironmentVariables

edit flag offensive delete link more
0

answered 2011-10-19 06:10:17 -0500

HelenJiang gravatar image

Hi

Thank you very much for your reply The echo $ROS_MASTER_URI command get http://localhost:11311

Beside, I have uninstall the diamondback software. Does that matters?

When I use roswtf command, I got the following error. Please help me with it, thank you.

Loaded plugin tf.tfwtf

No package or stack in context

Static checks summary:

Found 1 warning(s). Warnings are things that may be just fine, but are sometimes at fault

WARNING ROS_HOSTNAME may be incorrect: ROS_HOSTNAME [http://localhost:11311] cannot be resolved to an IP address

Found 1 error(s).

ERROR PYTHONPATH [/opt/ros/electric/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/electric/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:] is invalid: Multiple roslib directories in PYTHONPATH (there should only be one)

ROS Master does not appear to be running. Online graph checks will not be run. ROS_MASTER_URI is [http://localhost:11311]

edit flag offensive delete link more
0

answered 2011-10-18 15:17:25 -0500

kwc gravatar image

updated 2011-10-19 06:56:48 -0500

Update: from your roswtf output, the error is:

"WARNING ROS_HOSTNAME may be incorrect: ROS_HOSTNAME [http://localhost:11311] cannot be resolved to an IP address"

You should probably unset the ROS_HOSTNAME -- http://localhost:11311 is definitely not a correct value.


It looks like your ROS_MASTER_URI environment variable possibly has a bad value. A good value looks like 'http://localhost:11311' (localhost may be something different on your system). What's the value of your ROS_MASTER_URI?

You can test by running in a terminal:

echo $ROS_MASTER_URI
edit flag offensive delete link more
0

answered 2011-11-15 10:28:35 -0500

HelenJiang gravatar image

Thank you for all your help. I have already fixed the problem. The problem is because I massed up the electric version and diamondback version. I fix it by simply remove electric version.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-10-18 13:41:36 -0500

Seen: 4,394 times

Last updated: Nov 15 '11