Win10/WSL: actionlib/SimpleServerAction tutorial not working

asked 2018-08-18 23:44:03 -0600

updated 2018-08-19 02:25:55 -0600

gvdhoorn gravatar image

1) Fresh install of Win10 + WSL + Ubuntu 18.04 + ROS Melodic; all installed OK with no errors

2) Pulled code from git: https://github.com/ros/common_tutorials

3) Created a new catkin workspace, linked to folder above actionlib_tutorials

4) Initialized catkin workspace with

$ catkin_init_workspace src

5) Ran catkin_make and built all needed files (msg ,etc) with no error

5) Launched the server with

$ rosrun actionlib_tutorials fibonacci_server.py

6) Launched the client in a new window with

$ rosrun actionlib_tutorials fibonacci_client.py

7) Nothing happens... After a minute, I start to get timeout errors, for example:

[WARN] [1534653172.738360]: Inbound TCP/IP connection failed: timed out

So.... Not sure what is going wrong; I can see the topics using rostopic list, everything looks OK.

But for some reason, the client does not appear to be communicating with the server...

Any thoughts?

Thanks Scott

edit retag flag offensive close merge delete

Comments

First: WSL is not a supported platform for ROS, so anything you do is experimental at best.

Whether things work is highly dependent on which build of Win10 you're running, and which changes have been merged into WSL since it was last known to work.

Also: try to disable the Windows firewall.

gvdhoorn gravatar imagegvdhoorn ( 2018-08-19 02:19:26 -0600 )edit

Something to test: see if the following results in msgs being received and printed:

terminal a: rostopic pub -r1 /chatter std_msgs/String "hello"

terminal b: rostopic echo /chatter

If that doesn't work either, it's not the actionlib tutorials, but something more fundamental.

gvdhoorn gravatar imagegvdhoorn ( 2018-08-19 02:25:31 -0600 )edit

I've also changed the title of your question to more accurately reflect the context.

gvdhoorn gravatar imagegvdhoorn ( 2018-08-19 02:33:06 -0600 )edit

Thank you for your quick reply! I tried your suggestion, and publish/subsctibe does work. I the echo window I see

data: "hello"

However, I disabled windows firewall and my anti-virus and I still receive the timeouts.

scott.nortman@gmail.com gravatar imagescott.nortman@gmail.com ( 2018-08-19 06:39:56 -0600 )edit