/
README
90 lines (54 loc) · 2.51 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
PS Move API
===========
A cross-platform C library for using the Sony Playstation Move Motion
Controller, with bindings for Python, Java, Qt and others.
The library is available for Mac OS X, Windows and Linux (USB and Bluetooth).
Basic features:
* Set the RGB LED color and rumble intensity (USB and Bluetooth)
* Read digital buttons, analog trigger and sensors (Bluetooth only)
Advanced features:
* Tracking: Controller tracking with a camera using OpenCV
* Calibration: Reading of normalized/calibrated values
* Orientation: Rotation tracking using gyro and accelerometer
Minimal build dependencies on Ubuntu:
build-essential
cmake
libudev-dev
libbluetooth-dev
Environment variables:
PSMOVE_TRACKER_CAMERA
If set, this is the camera that will be used when using
psmove_tracker_new() instead of using auto-detection
Example: export PSMOVE_TRACKER_CAMERA=2 # Will use the 3rd camera
PSMOVE_TRACKER_FILENAME
If set, this will use a video file to playback instead of
capturing from a camera. Any camera settings are ignored.
Example: export PSMOVE_TRACKER_FILENAME=demo.avi # Will play demo.avi
PSMOVE_TRACKER_ROI_SIZE
If set, this controls the size of the biggest (initial) ROI that will
be used to track the controller. Bigger means slower in general, but
recovery from tracking loss might be faster.
Example: export PSMOVE_TRACKER_ROI_SIZE=200
PSMOVE_TRACKER_WIDTH, PSMOVE_TRACKER_HEIGHT
If set, these variables control the desired size of the camera picture.
Example: export PSMOVE_TRACKER_WIDTH=1280
export PSMOVE_TRACKER_HEIGHT=720
The PS Move protocol information is based on information from the the linmctool
and Move On PC projects.
Bindings to the API using C# / Unity are available in "bindings/unity". They
can be used to create application in the Unity Framework. This project has been
contributed by the Copenhagen Game Collective (thanks to Douglas Wilson et al)
and has its own homepage at:
http://www.copenhagengamecollective.org/unimove/
Documentation links:
http://code.google.com/p/moveonpc/wiki/InputReport
Known issues:
* On Debian Wheezy, you might need to specify the path to "swig"
https://github.com/thp/psmoveapi/issues/5
Author / contact info: Thomas Perl <m@thp.io>
Project homepage: http://thp.io/2010/psmove/
Git repository: https://github.com/thp/psmoveapi
License: Simplified BSD-style license (see COPYING)
Initial release date 1.0.0: 2011-03-24
Release of PSMoveAPI 1.0.2: 2011-12-03
Updated: 2012-08-07