Git Product home page Git Product logo

libfreenect's Introduction

libfreenect's People

Contributors

amiller avatar arnebe avatar imekinox avatar jkerdels avatar joshblake avatar kelvie avatar kenjo avatar marcan avatar mmwise avatar mrenouf avatar netpro2k avatar oftheo avatar prisonerjohn avatar qdot avatar richmattes avatar shiffman avatar stephanemagnenat avatar stevenlovegrove avatar tfoote avatar thomasroefer avatar timn avatar yoda-jm avatar zarvox 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libfreenect's Issues

Crashes on close

and has this error "RGBDepthTest quit unexpectedly while using the libKinect.jnilib plugin" -- probably not disposing the device properly?

Isochronous transfer error / lock-ups

I've been having some trouble with lock-ups in the processing library. When a sketch is run, it works fine for perhaps 30 seconds, then one or both camera images freeze and the console returns 'Isochronous Transfer Error: 1'

If you toggle the camera state by pressing the 'd' or 'r' key in RGBDepthTest you can get it working again for perhaps another 30 seconds or so until it locks up and returns the error again.

There are a few other mentions of this type of thing with kinect libs, it may be something with libusb, any ideas would be great:
https://groups.google.com/group/openkinect/browse_thread/thread/df3f3ee312145dff

Mac OS 10.6.5
Macbook Pro 2,2 2.16Ghz 3GB RAM
Processing 1.2.1

NullPointerExeption issue - Kinect model 1473?

Hi,

I have a nullpointerexeption with any of the examples, e.g. AveragePointTracking.

The line which gives me the error is:

kinect.enableDepth(true);

This is the exception:

Exception in thread "Animation Thread" java.lang.NullPointerException
at org.openkinect.processing.Kinect.enableDepth(Kinect.java:84)
at AveragePointTracking$KinectTracker.(AveragePointTracking.java:108)
at AveragePointTracking.setup(AveragePointTracking.java:37)
at processing.core.PApplet.handleDraw(PApplet.java:2241)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2140)
at java.lang.Thread.run(Thread.java:680)

I have this error both with Processing 2.08b and 1.5.1. on OSX Snow Leopard 10.6.8.
My Kinect sensor is Xbox360 1473 model.

I wonder if anybody has this problem with this sensor, assuming everything is working with 1414 model.

Any fix/hint for this?

NullPointerException in enable series methods and tilt, etc..

Hi, I tried to openKinect and SimpleOpenNi.

SimpleOpenNi had not problem at launching. But, openKinect returned "NullPointerException" in methods such as enableDepth, enableRGB, tilt, enableIR.

Also, example is not working.
I don't know how to solve. How can fix it?

I'm using OS X 10.8, and Kinect for XBOX(Model 1473). and Processing 2.0.1
Is there problem in my environment?

Please, help me.

Problems with getDepthImage() method.

Hi Daniel and guys.
I'm playing with the examples files, but I can't update the Depth gray map : it's loaded once at the runtime, but can't update each draw() cycle. This kind of problem comes with both the AveragePointTracking.pde and RGBDepthTest.pde files (in the latter, when I press twice the 'd' key the grey map updates suddenly, showing that one as a static frame).
The PointCloud file works fine, so I think the problem is not about the hardware or Kinect...

I'm working on my MacBook Pro, OSX 10.5.8.

Thaks for your help!

Blank feeds and FPS

I've got a Kinect attached to a unbuntu 11.04 laptop running your libraries and processing 1.5.1

Whenever I run any of the examples I only get blank depth/video/ir feeds and the FPS for each shows up as 0. Tilt interactions works fine though, making me think I've got the libraries installed ok. Any ideas where to start?

Exemple crash

Hi Daniel,

thanks for your reactivity :)
In fact one exemple on tree works on my computer (the Point Cloud).
The two others (Pointtracking + RGBDepth) crash few minutes after
having launched the applet. There is no error displayed in the terminal.
The applet still open but the image freeze...

my configuration:
MAC OSX 10.5.8
2 Ghz intel core 2 duo
2 go DDR3

thanks a lot for your help.
K

Unsatisfied Link Error with Processing 2b06

Like many other external libraries, openkinect P5 seems to be broken with the 6th beta of Processing 2. Here is the error I am getting with the example sketches:

Exception in thread "Animation Thread" java.lang. UnsatisfiedLinkError: /Users/username/Documents/Processing/libraries/openkinect/library/libKinect.jnilib: no suitable image found. Did find: /Users/username/Documents/Processing/libraries/openkinect/library/libKinect.jnilib: mach-o, but wrong architecture
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1742)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at org.openkinect.Context.(Context.java:43)
at org.openkinect.processing.Kinect.start(Kinect.java:43)
at org.openkinect.processing.Kinect.start(Kinect.java:39)
at AveragePointTracking$KinectTracker.(AveragePointTracking.java:111)
at AveragePointTracking.setup(AveragePointTracking.java:41)
at processing.core.PApplet.handleDraw(PApplet.java:2103)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190)
at processing.core.PApplet.run(PApplet.java:2006)
at java.lang.Thread.run(Thread.java:680)

Any ideas?

Thanks!

kinect.getRawDepth() memory leak?

i've been trying to figure out why my processing app using openkinect was crashing out consistently at 4hours 40min, and now my best guess is that there's a memory leak in kinect.getRawDepth() . not sure if this happens on everyone's computer, but i'm working on a brand new mac mini (Model: Macmini5,2, Intel Core i5, 2.5 GHz, 4 GB) with lion and the latest installation of java.

in any case, when i run the openkinect point cloud demo, i'm also getting the crash at about the same time interval (4h45m / 5 hrs), and i'm suspecting getRawDepth because i'm still seeing a memory leak when i comment out everything in the pointcloud demo except kinect.getRawDepth() . in the 10 minutes it took me to log in and make a couple comments here my real memory useage has gone from 60.2MB to 142.1MB. figure this may be an issue with libfreenect?

clean up xcode project

Need to clean up xcode project to remove unnecessary stuff and properly compile JAR file (currently am compiling it from eclipse)

reset kinect connection?

i'm trying to run a sketch at 8 hours+ and am consistently getting crashes at around 4 hours. looked around quite a bit and the crashed seem to be a fairly common problem on some macs due to isochronous transfer frame scheduling problems?

would a hard reset of the kinect connection solve this? i've tried kinect.quit() and then variations on kinect.start(), but can't seem to enableDepth(true) because i get a null pointer error. any ideas--is this a possible work around? thanks in advance

Kinect example will freeze after certain time

Hi:

I'm experiencing while running the Kinect point cloud example it will freeze after a certain time, meaning the point cloud will not move anymore. The only way to fix it is to start the Processing app, which is not ideal for an installation. With my modified processing app it will freeze anywhere from 1-20 minutes into running.

This issue I'm reporting is similar to this post: #18

Can someone please provide a solution to avoid Kinect from freezing/crashing, or even an update to the library which is more than a year old.

thanks,

Fader

Accelerometer access

Hello Daniel,

Thanks for sharing the source.
I've noticed that there is an interface to the accelerometer already, but no access to it, so I've tried to change the Kinect class to fix that.

I've created a PVector instance to store x,y,z values into, implemented the Acceleration interface, and made a getter for the PVector instance. Couldn't use the .jar in eclipse:

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: /Users/george/Documents/eclipse/KinectTest/lib/user/openkinect/libKinect.jnilib:  no suitable image found.  Did find:  /Users/george/Documents/eclipse/KinectTest/lib/user/openkinect/libKinect.jnilib: mach-o, but wrong architecture
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1742)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1045)
    at org.openkinect.Context.<clinit>(Context.java:43)
    at org.openkinect.processing.Kinect.start(Kinect.java:43)
    at kinecttest.KinectTest.setup(KinectTest.java:26)
    at processing.core.PApplet.handleDraw(PApplet.java:1866)
    at processing.core.PApplet.run(PApplet.java:1788)
    at java.lang.Thread.run(Thread.java:680)
quitting
java.lang.NullPointerException
    at org.openkinect.processing.Kinect.quit(Kinect.java:152)
    at kinecttest.KinectTest.stop(KinectTest.java:81)
    at sun.applet.AppletPanel.run(AppletPanel.java:525)
    at java.lang.Thread.run(Thread.java:680)

but it did run in Processing though. I've was printing the PVector values via the getAcceleration() method I added, but it was always [0.0,0.0,0.0]. I've added a trace in the direction() method itself(from Acceleration interface) to check, and it wasn't called. I thought I did the implementation wrong and did this basic test:

device.acceleration(new Acceleration()
        {
            public void direction(float x, float y, float z)
            {
                System.out.printf("Acceleration: %f %f %f\n", x ,y ,z);
            }
        });

Still no joy. The think that puzzles me is why doesn't the onAcceleration() method get called, because I've added print statements there too:

void onAcceleration(float x, float y, float z)
    {
        System.out.printf("Device onAcceleration: %f %f %f\n", x ,y ,z);
        if (acceleration != null)
        {
            acceleration.direction(x, y, z);
        }
    }

Any tips/clues would be very helpful. Thank you for your time !

Have a brilliant day,
George

Proper disposal

Properly close / dispose of kinect device when application quits

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.