- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 160
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
How to install and setup? #412
Comments
There are a couple of Python examples in the directory examples/python/
within this repository. Even a small "Whack a Cube" game (ep_whack.py)
that Thomas put together for demonstrating the camera and orientation
tracking, input processing etc. These examples are not part of the
psmoveapi release archive though. Simply copy that directory from GitHub
if you do have not already have it on your computer.
Regarding the "installation":
Make sure the psmoveapi Python module is found by pointing the
environment variable PYTHONPATH to the sub-directory bindings/python/
that is part of the psmoveapi release.
Then make sure the actual psmoveapi library (used by the Python module)
is found by pointing the environment variable PSMOVEAPI_LIBRARY_PATH to
the sub-directory lib/ that is part of the psmoveapi release. Again, use
an absolute path.
Finally, connect your move controller via USB cable, open a Windows
console and run
python <path to examples>/example_new_api.py
This should light up the controller's sphere and print a bunch of sensor
values that change when you move the controller. No camera yet. Try to
get that working first, then try the other examples.
There is a catch, though: There are currently 2 Python APIs (see
#338), and most of the examples
are for the old one. The old Python bindings are, however, not included
in the psmoveapi release, so you would need to build them yourself as
part of the library. Maybe somebody has already built and uploaded them
somewhere, I'd have to check.
@thp Any particular reason for not including the old SWIG-based Python
bindings in the release?
|
@nitsch Thanks, that help me out. However, the sensor values I get all remain at 0: <Vec3 (0.00, 0.00, 0.00)> -> <RGB (0.00, 0.50, 1.00)> usb: True bt: False The connected PS Move controller at least turns blue. The sensor values also remain at zero even when I run example_new_api.exe from Visual Studio. Can someone please help me with this issue? |
@a-eye-tech Please open a new issue instead of hijacking this one here.
|
@nitsch Ok, sorry about that. |
Hi guys, I have a similar issue (not being able to use the old python api) when using the latest release version 4.0.12 and Python 3.9.
I need to use the tracking feature to implement a 3D sculpting app and it seems that is available only with the old |
Please open a new ticket for your issue.
Which version of the psmoveapi release are you using, the x86 or the x64
build? Does your Python installation match that architecture?
|
Created a new issue here #436. |
I'm new to python programming and I'd like to use but I can't figure out how to install it. I've already downloaded de lastest release for windows x64. Also I can't install the PS3 Eye Camera, I'm using https://archive.org/details/CLEyeDriver5.3.0.0341Emuline but it only shows on the CL Eye Test and not in cv2. I know this is not related with the API but if someone can help me I'd really appreciate it. Thanks
The text was updated successfully, but these errors were encountered: