76
78
% 3. After this procedure, the Kinect should be fully useable by Psychtoolbox.
84
% See the OS/X section at http://openkinect.org/wiki/Getting_Started
85
% You will need libfreenect version 0.1.2 or compatible for this to work.
87
% The easiest way to get these libraries on OSX is via Homebrew.
88
% Get it at: http://mxcl.github.com/homebrew
90
% Once Homebrew is installed, one first needs to "brew install automake",
91
% and "brew install autoconfig", and potentially cmake before one can
92
% "brew install libfreenect".
94
% PsychKinectCore links dynamically against those two libraries. We don't
95
% distribute them for now, as that would require us to distribute the
96
% corresponding source code of libusb-1.0.0 as well due to LGPLv2
81
103
% This is still early prototype software, expect bugs, bumps and hickups.
105
% The Kinect driver has been successfully tested with "Microsoft XBox
106
% Kinect". This version doesn't yet work with "Microsoft Kinect for
107
% Windows", due to lack of support in the libfreenect-0.1.2 library.
83
109
% Further installation instructions for other systems can be found at
84
110
% http://openkinect.org/wiki/Getting_Started
87
% See the OS/X section at http://openkinect.org/wiki/Getting_Started
88
% You will need libfreenect version 0.1.2 or compatible for this to work.
90
113
% Licenses: The driver consists of multiple components, which are licensed
91
114
% under different free software / open source licenses. The drivers are
98
121
% GPLv2 or Apache license.
100
123
% The source code of the Windows version of the Kinect driver and libusb
101
% can be found after checking out Psychtoolbox's C source code from the SVN
102
% repository (see "help UseTheSource" for instructions) as a zip file under:
124
% can be found after checking out Psychtoolbox's C source code from our GIT
125
% repository (see "help UseTheSource" for instructions) as a zip file
104
% trunk/PsychSourceGL/Cohorts/Kinect-v16-withsource.zip
128
% Psychtoolbox-3/PsychSourceGL/Cohorts/Kinect-v16-withsource.zip
106
130
% The source code for libfreenect (Unix aka Linux / MacOS/X) can be found
121
145
[rc, msg] = system(cmd);
123
fprintf('Success! Now disabling the Kinect video driver. If this does not complete within a second,\n');
124
fprintf('you may need to blindly type your password again + ENTER, but usually it just completes.\n');
126
[rc, msg] = system('sudo rmmod gspca_kinect');
128
fprintf('Success! Your Kinect should now be useable by Psychtoolbox PsychKinect driver.\n');
130
fprintf('Failed! Maybe retry? Other than that, unplug your Kinect and reboot your machine to make it work.\n');
147
fprintf('Success! Now disabling the Kinect video driver. If this does not complete within a second,\n');
148
fprintf('you may need to blindly type your password again + ENTER, but usually it just completes.\n');
150
[rc, msg] = system('sudo rmmod gspca_kinect');
152
fprintf('Success! Your Kinect should now be useable by Psychtoolbox PsychKinect driver.\n');
154
fprintf('Failed! Maybe retry? Other than that, unplug your Kinect and reboot your machine to make it work.\n');
155
fprintf('Reported error was: %s\n', msg);
158
fprintf('Failed! Maybe retry? Or ask a system administrator for help.\n');
131
159
fprintf('Reported error was: %s\n', msg);
134
fprintf('Failed! Maybe retry? Or ask a system administrator for help.\n');
135
fprintf('Reported error was: %s\n', msg);
138
162
fprintf('If you want to enable use of Kinect as a regular webcam again, type the\n');