For review, initial version of Java wrapper using JNA#131
Conversation
|
Nice! I may be able to help with OSX testing - I've written a basic Processing/JNI wrapper for libfreenect/OSX so have some experience. Let me know if you need anything
|
|
You should be able to merge this pull request into a new branch on your side. It's all in wrappers/java and using maven you should be able to simply "mvn package" to produce a JAR. There's no unit tests yet, I'm working on that now... they will require a Kinect be attached for most of the tests but a fake stub could be used such as brandyn's fakenect. I'm mostly interested in knowing if the .dynlib is correctly located and loaded by the JNA stuff from the standard install location of libfreenect on OSX (whatever the Mac equivalent of /usr/lib is?). If so, we're in great shape. |
|
Ok. I fixed my bug in setLogHandler, and I've now included some tests that verify basic operation. |
…tion Signed-off-by: Kai Ritterbusch <kai.ritterbusch@gmx.de>
Fix: changed to std::map::operator[] (I think according to C++ standard:) Signed-off-by: Kai Ritterbusch <kai.ritterbusch@gmx.de>
Signed-off-by: Mark Renouf <mark.renouf@gmail.com>
Signed-off-by: Mark Renouf <mark.renouf@gmail.com>
Signed-off-by: Mark Renouf <mark.renouf@gmail.com>
Run with 'mvn test' Signed-off-by: Mark Renouf <mark.renouf@gmail.com>
Signed-off-by: Mark Renouf <mark.renouf@gmail.com>
…his branch. Signed-off-by: Mark Renouf <mark.renouf@gmail.com>
|
In unstable |
|
I've added some documentation for the JNA wrapper here: |
|
In master |
|
Is there someone who is still updating this? freenect_set_video_mode: freenect_frame_mode provided is invalid I am wondering if the VideoFormat and DepthFormat is outdated already? any thoughts on how to make this work? |
|
I wrote the JNA wrapper, but I really don't have time to maintain this On Sat, Dec 10, 2011 at 11:49 PM, ghbright
|
|
I modified the Java wrapper code to make it work with the current version of the libfreenect API as of today, 20 Dec 2011. I'm a complete noob to github, so I have no idea as yet how to upload my changes to this thing. I'm gonna read up on this site and try to find out how it's done. Meanwhile, anybody who wants the modified code can email me a request to github@wbrameld4.name |
|
I found that someone did fix the Java wrapper about one month ago. But he didn't merge it to master branch. Please see this thread: #256 Currently it's still unmerged. |
I could use some help testing this on OSX, it is supposed to automatically locate and use the proper library from the system (like python CTypes). There are a few bugs to resolve but led,motor and video work. I've tested RGB and Depth raw reading at full speed (30fps).
Please send comments, suggestions, etc