Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple running example #22

Open
tthil opened this issue Aug 15, 2017 · 1 comment
Open

Simple running example #22

tthil opened this issue Aug 15, 2017 · 1 comment

Comments

@tthil
Copy link

tthil commented Aug 15, 2017

I have managed to compile the source code and like to try it in javascript. I found some sample code in the quickstart folder. What kind of javascript project would this run in?

Would it be possible to just add it to any JS file and run it with the node command, like node mySimpleTestApp.js?

//Thomas

@bengfarrell
Copy link
Owner

Hey Thomas,
First of all, I'm surprised you got it to compile! The reason is that I don't think it will work past somewhere around Node 0.8-0.10 (due to the change in C++ interfaces). Also, to make it work, you would have also had to have found versions of OpenNI and NITE (which NITE has unfortunately been wiped from the web due to Apple purchasing Primsense).

If you indeed have everything working, then yes, the code in my quickstart example is designed to run on node. The "basic quickstart" should have everything needed to run it. You could tweak the code and route the data wherever you want (maybe just console log it first to see the stream working).

The websocket quickstart couples the data with some outbound messaging (assuming you've npm installed websocket). If you then run "nuimotion-sockets" in your browser, the outbound messaging with skeletal data would then be picked up by your browser.

So I tried to be pretty thorough here as far as just getting things running, but again - I think this project is fairly dead because it's not updated for recent the recent Node.js versions, and because of the libraries it requires that have now been pulled by Apple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants