Hi.
I've compiled the libpsmoveapi_tracker.dll from psmoveapi. The PS Move is already working fine, but now I wanted to use the tracker.
I am working in Unity 5.0.1. The problem is, when I call to either psmove_tracker_new or psmove_tracker_new_with_camera (with parameter 0 or 1 as I have both PS Eye and default laptop camera attached), the Unity project freezes along with the Unity itself (infinite loop, another thread or something?).
I guess that the psmove_tracker_new should either success or fail, not freeze the application.
The situation is exactly the same for both connected and disconnected PS Eye.
I've installed the PS Move (I already have an working orientation/buttons/bulb color in Unity) & PS Eye property.
I work with x64 code / DLLs, on Windows 8.1 x64.
I use libusbK and not the CL Eye Driver. The "frozen" application consumes much of CPU.
While compiling the psmoveapi, I've used:
cmake .. -G "MinGW Makefiles" -DPSMOVE_USE_LOCAL_OPENCV=1.
As cboulay explained in another issue, I've used the option(PSMOVE_USE_MADGWICK_AHRS "Use AHRS algorithm (GPL license)" ON) while compiling the source code.
I was following the great tutorial by cboulay: https://github.com/cboulay/psmove-ue4/wiki/Windows-PSEye-Setup
When I've added some printf to the code, I see that those lines of psmove_tracker.c are responsible for infinite loop:
IplImage* frame = NULL; while (!frame) { frame = camera_control_query_frame(tracker->cc, NULL, NULL); }
Hi.
I've compiled the
libpsmoveapi_tracker.dllfrom psmoveapi. The PS Move is already working fine, but now I wanted to use the tracker.I am working in Unity 5.0.1. The problem is, when I call to either
psmove_tracker_neworpsmove_tracker_new_with_camera(with parameter0or1as I have both PS Eye and default laptop camera attached), the Unity project freezes along with the Unity itself (infinite loop, another thread or something?).I guess that the
psmove_tracker_newshould either success or fail, not freeze the application.The situation is exactly the same for both connected and disconnected PS Eye.
I've installed the PS Move (I already have an working orientation/buttons/bulb color in Unity) & PS Eye property.
I work with x64 code / DLLs, on Windows 8.1 x64.
I use libusbK and not the CL Eye Driver. The "frozen" application consumes much of CPU.
While compiling the psmoveapi, I've used:
cmake .. -G "MinGW Makefiles" -DPSMOVE_USE_LOCAL_OPENCV=1.As cboulay explained in another issue, I've used the
option(PSMOVE_USE_MADGWICK_AHRS "Use AHRS algorithm (GPL license)" ON)while compiling the source code.I was following the great tutorial by cboulay: https://github.com/cboulay/psmove-ue4/wiki/Windows-PSEye-Setup
When I've added some
printfto the code, I see that those lines ofpsmove_tracker.care responsible for infinite loop:IplImage* frame = NULL; while (!frame) { frame = camera_control_query_frame(tracker->cc, NULL, NULL); }