roscore will not load linux on windows

asked 2016-08-09 22:30:02 -0500

barrowwight gravatar image

updated 2016-08-10 01:13:00 -0500

gvdhoorn gravatar image

When I try to launch roscore on the new windows linux subsystem (anniversary update feature). I get this series of errors:

Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main
    p.start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 279, in start
    self.runner.launch()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 654, in launch
    self._setup()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 630, in _setup
    self._launch_master()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 394, in _launch_master
    validate_master_launch(m, self.is_core, self.is_rostest)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 83, in validate_master_launch
    if not rosgraph.network.is_local_address(m.get_host()):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/network.py", line 176, in is_local_address
    local_addresses = ['localhost'] + get_local_addresses()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/network.py", line 219, in get_local_addresses
    for iface in netifaces.interfaces():
OSError: [Errno 22] Invalid argument

I have never used ros before, and still being in high-school, I am not too sure what needs fixing. If anyone has an idea, that would be helpful.

edit retag flag offensive close merge delete

Comments

There have been a few questions about this before. Short answer is that it doesn't work very well: http://answers.ros.org/question/23864...

ahendrix gravatar image ahendrix  ( 2016-08-09 23:26:45 -0500 )edit

@ahendrix is correct: right now, I wouldn't bother with ROS on WSL. Things might improve in the (near) future though (see Microsoft/BashOnWindows#468 fi).

gvdhoorn gravatar image gvdhoorn  ( 2016-08-10 01:14:29 -0500 )edit