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

Adapting the library for Python (Windows) #2

Open
JabberwockPL opened this issue Dec 14, 2017 · 3 comments
Open

Adapting the library for Python (Windows) #2

JabberwockPL opened this issue Dec 14, 2017 · 3 comments

Comments

@JabberwockPL
Copy link

I know this has not been visited for a long time, but I could use the library right now...

I am trying to use Gametrak as a (very) inexpensive position tracking device for VR and this library would fit perfectly, as I would need actual absolute position of the string ends. However, I know little of C and I am doing most of the coding in Python (for freepie). I wonder if the library could be easily adapted for Python (on Windows)?

@casiez
Copy link
Owner

casiez commented Dec 15, 2017

This library does exactly what you need but to use it in Python you need to write a Python binding. It's not that complicated considering that at a basic level you just need an init() function and functions like "double getLeftX()" to get data. I already wrote such bindings using Swig and it was not that complicated.

I don't have time now to do that but if you write the binding, I would appreciate a pull request to share the code.

@JabberwockPL
Copy link
Author

I might try to do that... The problem is, it is possible that I have just lost the motivation to do that, as I have obtained today a Kinect at a bargain price - if it works, the wired (or should I say 'stringed'?) solutions will lose their appeal.

@JabberwockPL
Copy link
Author

I have just realized I got it wrong.

I wanted to use Python to transfer the values to FreePIE (software for controller data exchange). However, it might be simpler to actually write a pluging for FreePIE:
https://github.com/AndersMalmgren/FreePIE/wiki/Plugin-development

then fiddle with the python side of FreePIE. I need to do more research on how to go about it....

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

No branches or pull requests

2 participants