pyros-dev / pyros

Python interfacing for multiprocess software - A Python blanket for ROS to hide inside
BSD 3-Clause "New" or "Revised" License
24 stars 4 forks source link

Running on Windows - possible? #138

Open gavanderhoorn opened 6 years ago

gavanderhoorn commented 6 years ago

This is really more of a "hm, would that even be possible" rather than a serious "I need this to do X" type of question, but I was wondering whether it would be feasible to use pyros (and the rosinterface pkg) from Windows to communicate with a ROS nodegraph running somewhere else.

I fully appreciate the complexities of any cross-platform development, and I don't expect things to work just because it's Python, but before I even started to try this I wanted to get some input on whether I should go look elsewhere.

asmodehn commented 6 years ago

Interesting :-)

Well, I never tried it, but it should be possible.

I keep everything pure python as much as possible and being cross platform is one of the goal ( targeting pure python workflow, I dont want to care about the platform).

That being said I m only working on ubuntu, and getting python and ROS to be happy together is already some kind of crusade...

The first hurdle I see is catkin_pip that has shell scripts that might not work on windows (not sure what is the ROS environment like when building and running on windows - cygwin ? - minsys ? Basic win32 ?)

The second one has to do with imports. I had to really understand, and mess around a bit with the python import system and PYTHONPATH to get things to work as expected, and I m not sure how that would translate to windows...

Since pyros need to mix catkin built packages and pip packages I dont think we can avoid checking how catkin pip behaves on win32, so I would start with that ( and pyros-test, -utils, -common, -rosinterface, pyzmp )

Then there is the python side : pyros setup especially, and pyros config since we create files on the fly...

If we do that it would be good also to find a way to integrate with travis CI where it is appropriate ( where travis config actually mess with dockers ). This way we can make sure we dont break it when working on ubuntu.

If you send some PR over I can check them ;-)

In any case, keep me posted I ll help where I can.

On Aug 25, 2017 4:50 PM, "G.A. vd. Hoorn" notifications@github.com wrote:

This is really more of a "hm, would that even be possible" rather than a serious "I need this to do X" type of question, but I was wondering whether it would be feasible to use pyros (and the rosinterface pkg) from Windows to communicate with a ROS nodegraph running somewhere else.

I fully appreciate the complexities of any cross-platform development, and I don't expect things to work just because it's Python, but before I even started to try this I wanted to get some input on whether I should go look elsewhere.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/asmodehn/pyros/issues/138, or mute the thread https://github.com/notifications/unsubscribe-auth/AANgSJdQvqEorCXhLUOB1TcVz1B1WzD0ks5sbnzSgaJpZM4PCVWC .