Win10/WSL: actionlib/SimpleServerAction tutorial not working
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
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.
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.
I've also changed the title of your question to more accurately reflect the context.
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.