roscore is showing error of keyboard interruptions and errors in file os.py .i have reinstalled it twice but not getting the results .

asked 2015-08-31 07:18:30 -0600

arushi gravatar image

updated 2015-08-31 08:34:06 -0600

gvdhoorn gravatar image
 youbot@youbot-HP-450-Notebook-PC:~$ roscore
... logging to /home/youbot/.ros/log/003be028-4fda-11e5-bd82-74e543a474c0/roslaunch-youbot-HP-450-Notebook-PC-18427.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://youbot-HP-450-Notebook-PC:34366/
ros_comm version 1.8.11


SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion

NODES

auto-starting new master
process[master]: started with pid [18447]
ERROR: could not contact master [http://youbot-HP-450-Notebook-PC:11311/]
[master] killing on exit
Traceback (most recent call last):
  File "/opt/ros/fuerte/bin/rosmaster", line 35, in <module>
    rosmaster.rosmaster_main()
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosmaster/main.py", line 73, in rosmaster_main
    configure_logging()   
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosmaster/main.py", line 57, in configure_logging
    _log_filename = rosgraph.roslogging.configure_logging('rosmaster', logging.DEBUG, filename=filename)
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosgraph/roslogging.py", line 86, in configure_logging
    rosgraph_d = rospkg.RosPack().get_path('rosgraph')
  File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 197, in get_path
    self._update_location_cache()
  File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 180, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 61, in list_by_path
    for d, dirs, files in os.walk(path, topdown=True, followlinks=True):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7/os.py", line 294, in walk
    for x in walk(new_path, topdown, onerror, followlinks):
  File "/usr/lib/python2.7 ...
(more)
edit retag flag offensive close merge delete

Comments

Try the following in the terminal:

ifconfig

Find your IP address of your IP4v and

export ROS_IP=YOUR.IP.ADDRESS.NUMBER

and try roscore again. If it works, add export ROS_IP=IP to your .bashrc

Oded gravatar image Oded  ( 2015-08-31 08:47:27 -0600 )edit

it is giving this : eth0 Link encap:Ethernet HWaddr 78:e3:b5:7e:1d:f0
UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000

arushi gravatar image arushi  ( 2015-08-31 22:16:42 -0600 )edit

You should find inet addr:XXX.XXX.XXX.XXX this is your IP Another way is just to write in google what is my IP. You will get the same result

Oded gravatar image Oded  ( 2015-08-31 22:38:54 -0600 )edit

youbot@youbot-HP-450-Notebook-PC:~$ export ROS_IP=117.55.241.55 youbot@youbot-HP-450-Notebook-PC:~$ roscore ... logging to /home/youbot/.ros/log/f9b8e4cc-505f-11e5-a917-74e543a474c0/roslaunch-youbot-HP-450-Notebook-PC-3216.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C

arushi gravatar image arushi  ( 2015-08-31 23:30:52 -0600 )edit

to interrupt Done checking log file disk usage. Usage is <1GB.

Unable to contact my own server at [ http://117.55.241.55:46950/ ]. This usually means that the network is not configured properly.

A common cause is that the machine cannot ping itself. Please check for errors by running: ping 117.55.2

arushi gravatar image arushi  ( 2015-08-31 23:31:26 -0600 )edit

when i run roscore it takes a lot of time to execute do you know how can i increase the timeout_ros

arushi gravatar image arushi  ( 2015-08-31 23:32:38 -0600 )edit

Try changing the master to the localhost, i.e.

export ROS_MASTER_URI=http://127.0.0.1:11311

Important note - These exports are valid to the terminal they were operated.

Oded gravatar image Oded  ( 2015-08-31 23:36:02 -0600 )edit

It is showing the same error again.. moreover it takes a lot of time for the execution of the command roscore... how can i increase the ros_timeout

arushi gravatar image arushi  ( 2015-08-31 23:46:45 -0600 )edit