Ask Your Question
0

roscore giving error on WSL machine

asked 2017-04-18 02:23:24 -0500

bhanu gravatar image

updated 2017-04-18 02:35:04 -0500

I have WSL (windows subsystem for linux) on my windows PC and I've been trying to follow the instructions given in the tutorial here - ROS wiki page - I'm using ROS indigo version. As per the instruction in the tutorial when I try typing

$ roscore

I get the following traceback error

... logging to /home/bchander/.ros/log/3ccbc5ec-2406-11e7-8358-562737a1c771/roslaunch-BHANUCHAND-632.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://localhost:53878/ ros_comm version 1.11.21

SUMMARY

PARAMETERS * /rosdistro: indigo * /rosversion: 1.11.21

NODES

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

What could be the possible solution for this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-04-22 13:38:12 -0500

gvdhoorn gravatar image

Please see #q238646.

You're likely not running a recent Win10 (Insider) build.

Btw: running ROS on WSL is really very experimental at the moment. Personally I would not use it for anything apart from some experimenting perhaps.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-18 02:23:24 -0500

Seen: 365 times

Last updated: Apr 22 '17