hornetseye-kinect 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-kinect'
10
- PKG_VERSION = '1.0.2'
10
+ PKG_VERSION = '1.1.0'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
data/ext/kinectcontext.cc CHANGED
@@ -26,7 +26,7 @@ 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), m_instances(0), m_threadInitialised(false)
29
+ m_usb(NULL), m_context(NULL), m_threadInitialised(false), m_instances(0)
30
30
  {
31
31
  pthread_mutex_init( &m_mutex, NULL );
32
32
  pthread_cond_init( &m_cond, NULL );
data/ext/kinectcontext.hh CHANGED
@@ -21,6 +21,7 @@
21
21
  #endif
22
22
 
23
23
  #include <boost/smart_ptr.hpp>
24
+ #include <libusb-1.0/libusb.h>
24
25
  #ifdef HAVE_LIBFREENECT_INCDIR
25
26
  #include <libfreenect/libfreenect.h>
26
27
  #else
data/ext/kinectinput.cc CHANGED
@@ -53,10 +53,10 @@ KinectInput::KinectInput( KinectContextPtr context, int node ) throw (Error):
53
53
  m_depth[i] = (char *)malloc( FREENECT_DEPTH_11BIT_SIZE );
54
54
  };
55
55
  instances[ m_device ] = this;
56
- freenect_set_depth_format( m_device, FREENECT_DEPTH_11BIT );
57
- freenect_set_video_format( m_device, FREENECT_VIDEO_RGB );
58
- // freenect_set_video_mode(m_device, freenect_find_video_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_VIDEO_RGB));
59
- // freenect_set_depth_mode(m_device, freenect_find_depth_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_DEPTH_11BIT));
56
+ // freenect_set_depth_format( m_device, FREENECT_DEPTH_11BIT );
57
+ // freenect_set_video_format( m_device, FREENECT_VIDEO_RGB );
58
+ freenect_set_video_mode(m_device, freenect_find_video_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_VIDEO_RGB));
59
+ freenect_set_depth_mode(m_device, freenect_find_depth_mode(FREENECT_RESOLUTION_MEDIUM, FREENECT_DEPTH_11BIT));
60
60
  freenect_set_depth_buffer( m_device, m_rgb[0] );
61
61
  freenect_set_video_buffer( m_device, m_rgb[0] );
62
62
  freenect_set_depth_callback( m_device, staticDepthCallBack );
@@ -252,6 +252,7 @@ VALUE KinectInput::registerRubyClass( VALUE module )
252
252
  rb_define_method( cRubyClass, "get_state", RUBY_METHOD_FUNC( wrapGetState ), 0 );
253
253
  rb_define_method( cRubyClass, "acc", RUBY_METHOD_FUNC( wrapGetAcc ), 0 );
254
254
  rb_define_method( cRubyClass, "tilt_status", RUBY_METHOD_FUNC( wrapGetTiltStatus ), 0 );
255
+ return cRubyClass;
255
256
  }
256
257
 
257
258
  void KinectInput::deleteRubyObject( void *ptr )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hornetseye-kinect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-30 00:00:00.000000000 Z
12
+ date: 2013-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: malloc
@@ -86,18 +86,18 @@ files:
86
86
  - README.md
87
87
  - COPYING
88
88
  - .document
89
- - lib/hornetseye_kinect_ext.rb
90
89
  - lib/hornetseye-kinect/kinectinput.rb
91
- - ext/kinectinput.cc
92
- - ext/kinectcontext.cc
93
- - ext/init.cc
90
+ - lib/hornetseye_kinect_ext.rb
94
91
  - ext/frame.cc
92
+ - ext/init.cc
93
+ - ext/kinectcontext.cc
94
+ - ext/kinectinput.cc
95
+ - ext/error.hh
95
96
  - ext/frame.hh
96
97
  - ext/kinectcontext.hh
97
98
  - ext/kinectinput.hh
98
- - ext/rubytools.hh
99
- - ext/error.hh
100
99
  - ext/rubyinc.hh
100
+ - ext/rubytools.hh
101
101
  - ext/rubytools.tcc
102
102
  homepage: http://wedesoft.github.com/hornetseye-kinect/
103
103
  licenses: