thp/psmoveapi

Cross-platform library for 6DoF tracking of the PS Move Motion Controller. Sensor fusion, computer vision, ambient display (LED orb).

What it solves

它提供了一种在 PC(Linux、macOS 和 Windows)上连接并使用 Sony Move 动作控制器的方法,无需 PlayStation 3 主机。它特别解决了获取控制器数据并在 3D 空间中跟踪其位置,以供自定义应用使用的问题。

How it works

该库通过 Bluetooth 和 USB 与控制器连接。它使用 PS Eye 相机或其他兼容的相机源,配合 OpenCV 在 3D 空间中跟踪最多五个控制器。为了确定控制器的方向,它采用开源的 AHRS(姿态与航向参考系统)算法,并使用传感器融合来结合惯性传感器的数据。

Who it’s for

为开发增强现实(AR)和虚拟现实(VR)应用的开发者提供,他们希望使用价格低廉且已有的动作追踪硬件。

Highlights

  • Cross-platform support: Works on Linux, macOS, and Windows.
  • 3D Tracking: Supports tracking up to 5 controllers simultaneously using OpenCV.
  • Sensor Fusion: Uses AHRS algorithms for precise orientation tracking.
  • Hardware Compatibility: Supports extension devices like the Racing Wheel and Sharp Shooter.
  • Language Bindings: Core C library with C++ headers and Python 3 bindings.