hornetseye-kinect 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -3
- data/Rakefile +1 -1
- data/ext/kinectcontext.cc +3 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -14,9 +14,14 @@ This Ruby extension provides the class {Hornetseye::KinectInput} for capturing v
|
|
14
14
|
Installation
|
15
15
|
------------
|
16
16
|
|
17
|
-
*hornetseye-kinect* requires
|
18
|
-
|
19
|
-
$
|
17
|
+
*hornetseye-kinect* requires libfreenect
|
18
|
+
|
19
|
+
$ git clone https://github.com/OpenKinect/libfreenect.git
|
20
|
+
$ cd libfreenect
|
21
|
+
$ cmake .
|
22
|
+
$ make
|
23
|
+
$ sudo make install
|
24
|
+
$ cd ..
|
20
25
|
|
21
26
|
To install this Ruby extension, use the following command:
|
22
27
|
|
data/Rakefile
CHANGED
data/ext/kinectcontext.cc
CHANGED
@@ -26,9 +26,10 @@ using namespace std;
|
|
26
26
|
VALUE KinectContext::cRubyClass = Qnil;
|
27
27
|
|
28
28
|
KinectContext::KinectContext(void) throw (Error):
|
29
|
-
m_usb(NULL), m_context(NULL),
|
30
|
-
m_cond(PTHREAD_COND_INITIALIZER), m_instances(0)
|
29
|
+
m_usb(NULL), m_context(NULL), m_instances(0)
|
31
30
|
{
|
31
|
+
pthread_mutex_init( &m_mutex, NULL );
|
32
|
+
pthread_cond_init( &m_cond, NULL );
|
32
33
|
ERRORMACRO( libusb_init( &m_usb ) == 0, Error, , "Error creating libusb session" );
|
33
34
|
freenect_init( &m_context, m_usb );
|
34
35
|
ERRORMACRO( m_context != NULL, Error, , "Initialisation of libfreenect failed" );
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 3
|
9
|
+
version: 0.2.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jan Wedekind
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-03-
|
17
|
+
date: 2011-03-15 00:00:00 +00:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|