thp / psmoveapi

Cross-platform library for 6DoF tracking of the PS Move Motion Controller. Sensor fusion, computer vision, ambient display (LED orb).
https://thp.io/2010/psmove/
Other
467 stars 160 forks source link

test_tracker only works intermittently on OS X 10.9.5 #141

Closed jceipek closed 7 years ago

jceipek commented 10 years ago

Most of the time, running test_tracker with the PS3 Eye doesn't work; the Move controller doesn't glow and the tracking reticule decides to focus on random elements in the background.

However, sometimes (perhaps <20% of the time), running test_tracker causes the controller globe to glow purple, pulse several times, and then start positional tracking perfectly.

Why does it work so intermittently?

### Found 1 controllers.
Trying to init PSMoveTracker...Warning: No lens calibration files found.
color mappings restored.
[PSMOVE WARNING] Unimplemented: Setting of PS3EYEDriver parameters
OK
Opening controller 0
Calibrating controller 0...OK, auto_update_leds is enabled
thp commented 10 years ago

Are you using the PS3 Eye camera or the built-in iSight? How have you configured the PS Move API?

jceipek commented 10 years ago

I was using the PS3 Eye camera (the image showed up fine). I don't know how to get the API to use the iSight camera, so I can't say if that would work better.

ccmake Config:

 APPKIT                           /System/Library/Frameworks/AppKit.framework
 AVFOUNDATION                     /System/Library/Frameworks/AVFoundation.frame
 CMAKE_BUILD_TYPE
 CMAKE_INSTALL_PREFIX             /usr/local
 CMAKE_OSX_ARCHITECTURES
 CMAKE_OSX_DEPLOYMENT_TARGET
 CMAKE_OSX_SYSROOT
 COREFOUNDATION                   /System/Library/Frameworks/CoreFoundation.fra
 FOUNDATION                       /System/Library/Frameworks/Foundation.framewo
 IOBLUETOOTH                      /System/Library/Frameworks/IOBluetooth.framew
 IOKIT                            /System/Library/Frameworks/IOKit.framework
 OpenCV_DIR                       /usr/local/share/OpenCV
 PSMOVE_BLUEZ5_SUPPORT            ON
 PSMOVE_BUILD_CSHARP_BINDINGS     ON
 PSMOVE_BUILD_EXAMPLES            ON
 PSMOVE_BUILD_JAVA_BINDINGS       OFF
 PSMOVE_BUILD_OPENGL_EXAMPLES     OFF
 PSMOVE_BUILD_PROCESSING_BINDIN   OFF
 PSMOVE_BUILD_PYTHON_BINDINGS     ON
 PSMOVE_BUILD_QT_BINDINGS         OFF
 PSMOVE_BUILD_TESTS               ON
 PSMOVE_BUILD_TRACKER             ON
 PSMOVE_BUILD_TUIO_SERVER         OFF
 PSMOVE_USE_CL_EYE_SDK            OFF
 PSMOVE_USE_DEBUG                 OFF
 PSMOVE_USE_DEBUG_CAPTURE         OFF
 PSMOVE_USE_LOCAL_LIBUSB          OFF
 PSMOVE_USE_LOCAL_OPENCV          ON
 PSMOVE_USE_MADGWICK_AHRS         ON
 PSMOVE_USE_PS3EYE_DRIVER         ON
 PSMOVE_USE_PSEYE                 ON
 PSMOVE_USE_TRACKER_TRACE         ON
 QTKIT                            /System/Library/Frameworks/QTKit.framework
 QUARTZCORE                       /System/Library/Frameworks/QuartzCore.framewo
 SWIG_EXECUTABLE                  /usr/local/bin/swig
thp commented 7 years ago

This was recently fixed with macOS and the 4.0.0 build. At least with the built-in iSight, it works now.