Giter VIP home page Giter VIP logo

node-openni's Introduction

Not maintained

node-openni

OpenNI bindings in Node.js.

Supports multiple users.


Looking for maintainer(s)!!

Ping the author if you're interested!


Install

Install libusb and OpenNI following the platform-specific instructions at https://github.com/OpenNI/OpenNI.

(If you're having trouble with this installation, some users have reported that the simple-openni package installs these dependencies successfully: https://code.google.com/p/simple-openni/wiki/Installation )

Then you will have to fork this repo:

$ cd node-openni
$ node-gyp configure build

Test

Plug in your kinect.

Run:

$ node test/base

Stay in the surrender position in front of the camera, a couple of meters away. After you're synced you should see

Use

Create Context

var OpenNI = require('openni');

var context = OpenNI();

Register for user events:

[
  'newuser',
  'userexit',
  'lostuser',
  'posedetected',
  'calibrationstart',
  'calibrationsucceed',
  'calibrationfail'
].forEach(function(eventType) {
  context.on(eventType, function(userId) {
    console.log('User %d emitted event: %s', userId, eventType);
  });
});

Register for joint events

[
  "head",
  "neck",
  "torso",
  "waist",
  "left_collar",
  "left_shoulder",
  "left_elbow",
  "left_wrist",
  "left_hand",
  "left_fingertip",
  "right_collar",
  "right_shoulder",
  "right_elbow",
  "right_wrist",
  "right_hand",
  "right_fingertip",
  "left_hip",
  "left_knee",
  "left_ankle",
  "left_foot",
  "right_hip",
  "right_knee",
  "right_ankle",
  "right_foot"
].forEach(function(jointName) {

  context.on(jointName, function(user, x, y, z) {
    console.log(jointName + ' of user %d moved to (%d, %d, %d)', user, x, y, z);
  });

});

Close Context

// Close the context to exit

process.on('SIGINT', function() {
  context.close();
  process.exit();
});

Specify Joints

You can specify exactly which joints you want to be tracked:

context.setJoints(['head', 'left_hand', 'right_hand']);

#Gestures Two gestures added: Wave and Click. ##Gesture Callbacks

context.on('Wave', function(gesture) {
  console.log('wave');
});

context.on('Click', function(gesture) {
  console.log('click');
}

Licence

MIT

node-openni's People

Contributors

eldog avatar kevingrandon avatar max-mapper avatar milafrerichs avatar pgte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-openni's Issues

Request: Tracking, pre-pose/calibration

HI Pedro,

Not sure if this is the right area, or if it's possible, but I'd like to request that we be able to track the position of users, or even a rough guess at center of mass pre-calibration.

Thanks for all the hard work on this library, it's awesome!

Error while installation of node-openni.

incubator node-openni # node-gyp configure build --nodedir
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/gaurav/Installs/node-openni/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/gaurav/Installs/node-openni/true/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=true',
gyp info spawn args '-Dmodule_root_dir=/home/gaurav/Installs/node-openni',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp: /home/gaurav/Installs/node-openni/true/common.gypi not found (cwd: /home/gaurav/Installs/node-openni) while reading includes of binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:101:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:827:12)
gyp ERR! System Linux 3.8.0-19-generic
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "build" "--nodedir"
gyp ERR! cwd /home/gaurav/Installs/node-openni
gyp ERR! node -v v0.11.9-pre
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok

Get Depth and RGB Images from Kinect

Are there any plans to fetch the depth or RGB images from the cameras into node?

I'd like to do some depth processing, without gestures or joints, just manipulating the depth map alone.

Paul

Strange Build Errors

When building on a macbook air, I'm getting some strange build errors:


  CXX(target) Release/obj.target/openni/src/Callbacks.o
../src/Callbacks.cc:1:1: warning: "BUILDING_NODE_EXTENSION" redefined
<command-line>: warning: this is the location of the previous definition
In file included from ../src/Callbacks.cc:6:
../src/Context.h:7:26: warning: XnCppWrapper.h: No such file or directory
In file included from ../src/Context.h:9,
                 from ../src/Callbacks.cc:6:
../src/Joints.h:12: error: ‘XnSkeletonJoint’ does not name a type
In file included from ../src/Callbacks.cc:6:
../src/Context.h:24: error: ‘XnVector3D’ does not name a type
../src/Context.h:46: error: ‘xn’ has not been declared
../src/Context.h:46: error: ISO C++ forbids declaration of ‘UserGenerator’ with no type
../src/Context.h:46: error: expected ‘;’ before ‘userGenerator_’
../src/Context.h:61: error: ‘xn’ has not been declared
../src/Context.h:61: error: ISO C++ forbids declaration of ‘Context’ with no type
../src/Context.h:61: error: expected ‘;’ before ‘context_’
../src/Context.h:62: error: ‘XnCallbackHandle’ does not name a type
../src/Context.h:63: error: ‘XnCallbackHandle’ does not name a type
../src/Context.h:64: error: ‘XnCallbackHandle’ does not name a type
../src/Context.h:65: error: ‘XnCallbackHandle’ does not name a type
../src/Context.h:66: error: ‘XnCallbackHandle’ does not name a type
../src/Context.h:91: error: ‘XnStatus’ has not been declared
../src/Callbacks.cc:13: error: expected initializer before ‘User_NewUser’
../src/Callbacks.cc:24: error: expected initializer before ‘User_LostUser’
../src/Callbacks.cc:35: error: expected initializer before ‘User_UserExit’
../src/Callbacks.cc:44: error: expected initializer before ‘Pose_Detected’
../src/Callbacks.cc:56: error: expected initializer before ‘Calibration_Start’
../src/Callbacks.cc:66: error: expected initializer before ‘Calibration_End’
../src/Callbacks.cc:87: error: expected `}' at end of input
../src/Joints.h:39: warning: ‘nodeopenni::jointNames’ defined but not used
make: *** [Release/obj.target/openni/src/Callbacks.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:255:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Darwin 11.4.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "build"
gyp ERR! cwd /Users/danfinlay/Projects/NodeKinect2DSkeleton/node_modules/openni
gyp ERR! node -v v0.8.8
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok 
npm ERR! [email protected] preinstall: `node-gyp configure build`
npm ERR! `sh "-c" "node-gyp configure build"` failed with 1
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the openni package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:

Any tips?

build error on mac

> node-gyp configure build

  CXX(target) Release/obj.target/openni/src/Callbacks.o
../src/Callbacks.cc:1:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined
#define BUILDING_NODE_EXTENSION
        ^
<command line>:4:9: note: previous definition is here
#define BUILDING_NODE_EXTENSION 1
        ^
In file included from ../src/Callbacks.cc:6:
../src/Context.h:7:10: fatal error: 'XnCppWrapper.h' file not found
#include <XnCppWrapper.h>
         ^
1 warning and 1 error generated.
make: *** [Release/obj.target/openni/src/Callbacks.o] Error 1

I'm new on kinect platform, I'm getting error message above. Do anyone know what's going on? thanks in advance.

Rotation data

I notice node-openni broadcasts XYZ position data for joints, but not rotation data. Could support for this be added? I believe all required data for this is supplied by OpenNI/NiTE, so it's definitely possible.

looking for a new home

I'm no longer working on this project. Are you interested in hosting and maintaining it?

Build errors on OSX

I'm on OSX lion, various methods to install OpenNI didn't work, I think I have it installed now (version 1.4.0.2). but when I try to build this repo I get a bunch of warnings, but I get these two build errors:

    ../src/Context.cc:375:64: error: no member named 'boundingBox_' in 'nodeopenni::Context'
        status = this->gesture_generator_.AddGesture("Click",this->boundingBox_);
                                                             ~~~~  ^
    ../src/Context.cc:376:63: error: no member named 'boundingBox_' in 'nodeopenni::Context'
        status = this->gesture_generator_.AddGesture("Wave",this->boundingBox_);

Any ideas? Thanks

After compiling, test/base.js won't run

I compiled node-openni successfully after following the instructions in #14 (commenting out the 3 lines suggested there - done in my fork, in this commit), but when I run node test/base.js, I get this:

$ node test/base.js 
Initialized.
Using XML conf: <OpenNI><Licenses>
  <License vendor="PrimeSense" key="0KOIk2JeIBYClPWVnMoRKn5cdY4=" />
</Licenses>
<Log writeToConsole="true" writeToFile="false">
  <LogLevel value="1"/>
  <Masks>
    <Mask name="ALL" on="true"/>
  </Masks>
  <Dumps>
  </Dumps>
</Log>
<ProductionNodes>
  <Node type="Depth" name="Depth1">
    <Configuration>
      <MapOutputMode xRes="640" yRes="480" FPS="30"/>
      <Mirror on="true"/>
    </Configuration>
  </Node>
  <Node type="Gesture" />
</ProductionNodes>
</OpenNI>
Error in context running XML script: Can't create any node of the requested type!

/home/eric/konklone/node-openni/openni.js:5
  var kContext = new kinect.Context();
                 ^
Error: Can't create any node of the requested type!
    at module.exports (/home/eric/konklone/node-openni/openni.js:5:18)
    at Object.<anonymous> (/home/eric/konklone/node-openni/test/base.js:3:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

This same error also happens if I npm install node-openni-browser (which installs successfully) and then require node-openni.

Out of bounds error

This line will reach out of bounds due to the equals operator and the joints_ definition here. Either the <= needs to be changed to < or the definition needs to be NODE_OPENNI_JOINT_COUNT + 1.

Issue(s) found via cppcheck.

Wrist events not being emitted?

I was having a blast with your awesome library until I realized the left and right wrist events weren't getting called. Any idea why?

hi i have a question

well im new in this whit nodejs and npm, my question is that where i have to clone this repo ,
inside my directory named node_modules

or

inside my directory wich i will create my new proyect

please .

JavaScript callbacks not being executed on user and joint events

When I run the test/base program (as well as a super-simple program based on the examples in the README), it looks like things are working, but none of the registered callbacks seem to be getting executed.

The output when running the test program looks like this:

$ node node_modules/openni/test/base.js 
Initialized.
Using XML conf: <OpenNI><Licenses>
  <License vendor="PrimeSense" key="0KOIk2JeIBYClPWVnMoRKn5cdY4=" />
</Licenses>
<Log writeToConsole="true" writeToFile="false">
  <LogLevel value="1"/>
  <Masks>
    <Mask name="ALL" on="true"/>
  </Masks>
  <Dumps>
  </Dumps>
</Log>
<ProductionNodes>
  <Node type="Depth" name="Depth1">
    <Configuration>
      <MapOutputMode xRes="640" yRes="480" FPS="30"/>
      <Mirror on="true"/>
    </Configuration>
  </Node>
</ProductionNodes>
</OpenNI>
Ran XML script from file.
Created user generator.
Registered OpenNI callbacks.
Set skeleton profile.
initiated poll thread.
Started generating all.
New User: 1
Pose Psi for user 1
Starting calibration for user 1
User calibrated

I'm thinking this is probably unrelated, but I get a number of warnings when building the node package:

$ npm install openni
npm http GET https://registry.npmjs.org/openni
npm http 304 https://registry.npmjs.org/openni

> [email protected] preinstall /home/ghing/workspace/kinect_hack/node_modules/openni
> node-gyp configure build

make: Entering directory `/home/ghing/workspace/kinect_hack/node_modules/openni/build'
  CXX(target) Release/obj.target/openni/src/Callbacks.o
../src/Callbacks.cc:1:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from ../src/Context.h:7:0,
                 from ../src/Callbacks.cc:6:
/usr/include/ni/XnCppWrapper.h:7056:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7057:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7059:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7074:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7075:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7077:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7466:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7467:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7469:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7484:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7485:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7487:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9511:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9512:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9514:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9520:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9521:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9523:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9531:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9532:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9534:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9546:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9547:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9549:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9556:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9557:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9559:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
In file included from ../src/Context.h:7:0,
                 from ../src/Callbacks.cc:6:
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::OutputMetaData::OutputMetaData(const XnUInt8**)’:
/usr/include/ni/XnCppWrapper.h:376:12: warning: ‘xn::OutputMetaData::m_nAllocatedSize’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:370:12: warning:   ‘XnUInt8* xn::OutputMetaData::m_pAllocatedData’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:206:10: warning:   when initialized here [-Wreorder]
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::Query::Query(XnNodeQuery*)’:
/usr/include/ni/XnCppWrapper.h:2133:10: warning: ‘xn::Query::m_bAllocated’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:2132:16: warning:   ‘XnNodeQuery* xn::Query::m_pQuery’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:1984:10: warning:   when initialized here [-Wreorder]
In file included from ../src/Context.h:7:0,
                 from ../src/Callbacks.cc:6:
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::EnumerationErrors::EnumerationErrors()’:
/usr/include/ni/XnCppWrapper.h:8551:10: warning: ‘xn::EnumerationErrors::m_bAllocated’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8550:24: warning:   ‘XnEnumerationErrors* xn::EnumerationErrors::m_pErrors’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8412:10: warning:   when initialized here [-Wreorder]
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::EnumerationErrors::EnumerationErrors(XnEnumerationErrors*, XnBool)’:
/usr/include/ni/XnCppWrapper.h:8551:10: warning: ‘xn::EnumerationErrors::m_bAllocated’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8550:24: warning:   ‘XnEnumerationErrors* xn::EnumerationErrors::m_pErrors’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8421:10: warning:   when initialized here [-Wreorder]
In file included from ../src/Context.h:9:0,
                 from ../src/Callbacks.cc:6:
../src/Joints.h: At global scope:
../src/Joints.h:39:25: warning: ‘nodeopenni::jointNames’ defined but not used [-Wunused-variable]
  CXX(target) Release/obj.target/openni/src/Context.o
../src/Context.cc:1:0: warning: "BUILDING_NODE_EXTENSION" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
In file included from ../src/Context.cc:14:0:
/usr/include/ni/XnCppWrapper.h:7056:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7057:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7059:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7074:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7075:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7077:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7466:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7467:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7469:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7484:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7485:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:7487:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9511:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9512:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9514:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9520:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9521:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9523:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9531:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9532:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9534:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9546:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9547:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9549:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9556:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9557:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
/usr/include/ni/XnCppWrapper.h:9559:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
In file included from ../src/Context.cc:14:0:
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::OutputMetaData::OutputMetaData(const XnUInt8**)’:
/usr/include/ni/XnCppWrapper.h:376:12: warning: ‘xn::OutputMetaData::m_nAllocatedSize’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:370:12: warning:   ‘XnUInt8* xn::OutputMetaData::m_pAllocatedData’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:206:10: warning:   when initialized here [-Wreorder]
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::Query::Query(XnNodeQuery*)’:
/usr/include/ni/XnCppWrapper.h:2133:10: warning: ‘xn::Query::m_bAllocated’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:2132:16: warning:   ‘XnNodeQuery* xn::Query::m_pQuery’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:1984:10: warning:   when initialized here [-Wreorder]
In file included from ../src/Context.cc:14:0:
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::EnumerationErrors::EnumerationErrors()’:
/usr/include/ni/XnCppWrapper.h:8551:10: warning: ‘xn::EnumerationErrors::m_bAllocated’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8550:24: warning:   ‘XnEnumerationErrors* xn::EnumerationErrors::m_pErrors’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8412:10: warning:   when initialized here [-Wreorder]
/usr/include/ni/XnCppWrapper.h: In constructor ‘xn::EnumerationErrors::EnumerationErrors(XnEnumerationErrors*, XnBool)’:
/usr/include/ni/XnCppWrapper.h:8551:10: warning: ‘xn::EnumerationErrors::m_bAllocated’ will be initialized after [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8550:24: warning:   ‘XnEnumerationErrors* xn::EnumerationErrors::m_pErrors’ [-Wreorder]
/usr/include/ni/XnCppWrapper.h:8421:10: warning:   when initialized here [-Wreorder]
../src/Context.cc: At global scope:
../src/Context.cc:25:19: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc: In member function ‘void nodeopenni::Context::Poll()’:
../src/Context.cc:167:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:176:51: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc: In member function ‘v8::Handle<v8::Value> nodeopenni::Context::Init()’:
../src/Context.cc:253:62: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:259:68: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:264:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:271:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:275:81: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:279:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:283:83: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:288:74: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../src/Context.cc:321:74: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from ../src/Context.cc:14:0:
/usr/include/ni/XnCppWrapper.h:9513:105: warning: call to ‘xnContextRunXmlScript’ declared with attribute warning: This function is deprecated: Please use xnContextRunXmlScriptEx() instead [enabled by default]
In member function ‘XnStatus xn::PoseDetectionCapability::RegisterToPoseCallbacks(xn::PoseDetectionCapability::PoseDetection, xn::PoseDetectionCapability::PoseDetection, void*, void*&)’,
    inlined from ‘v8::Handle<v8::Value> nodeopenni::Context::Init()’ at ../src/Context.cc:278:60:
/usr/include/ni/XnCppWrapper.h:7468:161: warning: call to ‘xnRegisterToPoseCallbacks’ declared with attribute warning: This function is deprecated: Please use PoseDetected and/or OutOfPose callbacks [enabled by default]
In member function ‘XnStatus xn::SkeletonCapability::RegisterCalibrationCallbacks(xn::SkeletonCapability::CalibrationStart, xn::SkeletonCapability::CalibrationEnd, void*, void*&)’,
    inlined from ‘v8::Handle<v8::Value> nodeopenni::Context::Init()’ at ../src/Context.cc:282:82:
/usr/include/ni/XnCppWrapper.h:7058:165: warning: call to ‘xnRegisterCalibrationCallbacks’ declared with attribute warning: This function is deprecated: Please use RegisterToCalibrationStart/Complete [enabled by default]
/usr/include/ni/XnCppWrapper.h: In member function ‘v8::Handle<v8::Value> nodeopenni::Context::Close()’:
/usr/include/ni/XnCppWrapper.h:9558:27: warning: call to ‘xnShutdown’ declared with attribute warning: This function is deprecated: Use xnContextRelease() instead [enabled by default]
  SOLINK_MODULE(target) Release/obj.target/openni.node
  SOLINK_MODULE(target) Release/obj.target/openni.node: Finished
  COPY Release/openni.node
make: Leaving directory `/home/ghing/workspace/kinect_hack/node_modules/openni/build'
[email protected] node_modules/openni

I built the module using OpenNI 1.5.4 from the SimpleOpenNI project on Ubuntu 12.10 and Node.js. Is there a particular version of OpenNI that others have had success with?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.