Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be used for communication between 2 pc? #6

Closed
Abdul-Mukit opened this issue May 8, 2020 · 3 comments
Closed

Can this be used for communication between 2 pc? #6

Abdul-Mukit opened this issue May 8, 2020 · 3 comments

Comments

@Abdul-Mukit
Copy link

Abdul-Mukit commented May 8, 2020

Hi,
Thank you for this great repo.
I am a beginner so my question might seem very trivial.

My project requires me to run a Unity project on one computer and run a python script in another computer. The two computers will be on the same network. We need to send data from the python script (pc-2) to Unity (pc-1). Can this be done using your repo?

The python script will output a matrix of 6 numbers. So we are thinking of using UDP. It is a PyTorch inferencing script. As the Unity pc's GPU will already be under stress we decided to run the deep learning inferencing on another pc.

@offchan42
Copy link
Owner

offchan42 commented May 9, 2020

Yes. You can use this repo. But ZeroMQ is not UDP. It is a reliable message transfer.
For your use case, gRPC and SocketIO are also acceptable.
gRPC has an official Unity package and SocketIO also has Unity package (BestHTTP).
Use any of them according to your needs. If you just want something quick, go with ZeroMQ in this repo. But there is no official ZeroMQ package, you will encounter issues I mentioned in the Known issues section. You can use ZeroMQ but avoid using multiple clients.

I think you will not need to use multiple clients because you only have one job of outputting a matrix.

@Abdul-Mukit
Copy link
Author

Thank you. It works well, I just tried it.
One question, when you said there is no official ZeroMQ package did you mean for C#?
On their webpage, I found codes for C# and python.

@offchan42
Copy link
Owner

I mean no official package for Unity. The NetMQ dll file inside this project is a hack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants