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

NetworkTables in Unity on Linux #85

Open
kinahawi opened this issue Nov 20, 2020 · 4 comments
Open

NetworkTables in Unity on Linux #85

kinahawi opened this issue Nov 20, 2020 · 4 comments

Comments

@kinahawi
Copy link

More of a question than an issue (sorry). Have you integrated your c# NetworkTables into Unity3D? I'm a mentor for a team in CT and am trying to build a simulation environment in Unity given that we can't meet in person due to the pandemic. I'm using WPIs robot simulation that relies on Network tables underneath the HAL and want to read/write the network tables from C# code in Unity. I'm using a Linux (Ubuntu) platform ATM and have been able to build your code in VSCode and have brought enough of the DLLs into Unity as plugins so that it doesn't complain when building. When I run in Unity, I can create an instance and ask it for tables/entries, but no Joy on actually getting data. Thanks in advance for any suggestions you have. I really appreciate all you've done here!

@ThadHouse
Copy link
Member

I've never tested it, and all of this code in this repo is a few years old, and I'm not planning on updating it. The cost to maintain a completely managed implementation is just too high for me currently.

If you want to test, you'd have to step through with a debugger to see if any data is getting received.

The newest copy of the wrappers around the native code are located here.
https://github.com/robotdotnet/WPILib/tree/d53fdc27fdd887169d56d83cf436fb82ebe6c157

You need to use that specific commit, as newer commits 100% will never work in unity.

@kinahawi
Copy link
Author

Thanks for the quick reply. I'll dig in a little deeper and see what I can do.

@ThadHouse
Copy link
Member

I'll work this weekend on making a binary of just NT that should work across platforms.

@kinahawi
Copy link
Author

kinahawi commented Nov 21, 2020 via email

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