Permalink
Switch branches/tags
Nothing to show
Commits on Nov 10, 2011
  1. Add a non-blocking freenect_process_events_timeout().

    zarvox committed Nov 10, 2011
    This should make it easier to integrate libfreenect into some other event loop.
    
    Fixes #43.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Commits on Nov 9, 2011
  1. wrappers/python: Support asynchronous usage without the full runloop

    marcan committed Nov 9, 2011
    Signed-off-by: Hector Martin <hector@marcansoft.com>
Commits on Nov 6, 2011
  1. Add support for examining camera serial numbers and opening devices b…

    zarvox committed Nov 6, 2011
    …y camera serial number.
    
    Since the index used in freenect_open_device() is nondeterministic, this makes
    it possible to make one particular piece of hardware the "left Kinect" or the
    "right Kinect" in a multi-Kinect setup.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  2. src/loader.c: Be quiet, compiler.

    zarvox committed Nov 6, 2011
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  3. Attempt to rework audio/firmware upload.

    zarvox committed Nov 6, 2011
    It turns out being way uglier and longer, but should behave slightly
    more correctly in the presence of multiple Kinects.
    
    That said, since there's no reliable way to tell for sure which motor,
    camera, and audio device belong to the same physical package, it's still
    a little bit of a guessing game.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  4. Drop the consts from function return types; they don't do anything in…

    zarvox committed Nov 3, 2011
    … C anyway.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Commits on Nov 3, 2011
  1. Add string descriptor retrieval to libusbemu.

    zarvox committed Nov 3, 2011
    This is a prerequisite for adding open-by-serial-number functionality.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Commits on Oct 31, 2011
  1. libusbemu: implement libusb_set_debug and libusb_set_configuration

    zarvox committed Oct 31, 2011
    This also fixes the build in VS2010, which would apparently stop compiling when
    it saw the stub function #warning.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Commits on Oct 29, 2011
  1. Actually, the camera_to_world scale factor should just be 2.

    zarvox committed Oct 29, 2011
    The 640x480 image is actually the result of cropping the 1280x1024 image
    down to 1280x960 and then scaling by .5, so aspect ratio is preserved,
    and we should scale x and y by exactly 2.
    
    Thanks to Kyle McDonald for paying attention to detail and pointing this out.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  2. Adjust freenect_camera_to_world for 1280x1024 -> 640x480 conversion.

    zarvox committed Oct 29, 2011
    Otherwise all the values are off by a factor of 2 in the x direction and
    2.1333333 in the y direction.
    
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Commits on Oct 28, 2011
  1. libusbemu: implement libusb_bulk_transfer()

    ao2 authored and zarvox committed Oct 22, 2011
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  2. libusbemu: implement libusb_open_device_with_vid_pid()

    ao2 authored and zarvox committed Oct 24, 2011
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  3. libusbemu: add a stub implementation for libusb_set_configuration()

    ao2 authored and zarvox committed Oct 22, 2011
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  4. libusbemu: add a stub implementation for libusb_set_debug()

    ao2 authored and zarvox committed Oct 22, 2011
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  5. libusbemu: make libusb functions callable with a NULL context

    ao2 authored and zarvox committed Oct 22, 2011
    Implement a default_context mechanism similar to the one in libusb-1.0
    itself, so that we can still pass a NULL context to libusb functions.
    
    NOTE: we still assume libusb_init() needs to be called before any other
    libusb_* function, otherwise the code will crash happily.
    
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  6. libusbemu: fix "expected unqualified-id before numeric constant" error

    ao2 authored and zarvox committed Oct 22, 2011
    Undefine the error numeric constants before redefining them, some
    systems define those in errno.h which can be brought in by some other
    header.
    
    platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp: In function ‘int ReapTransfer(transfer_wrapper*, unsigned int, libusbemu::QuickList<transfer_wrapper>*)’:
    platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp:698: error: expected unqualified-id before numeric constant
    platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp:704: error: ‘ETIMEOUT’ was not declared in this scope
    platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp: At global scope:
    platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp:745: error: expected unqualified-id before ‘return’
    platform/windows/libusb10emu/libusb-1.0/libusbemu.cpp:746: error: expected declaration before ‘}’ token
    
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  7. libusbemu: fix missing int types when compiling under mingw

    ao2 authored and zarvox committed Oct 22, 2011
    Fix errors like:
    
    platform/windows/libusb10emu/libusb-1.0/libusb.h:69: error: ‘uint8_t’ has not been declared
    platform/windows/libusb10emu/libusb-1.0/libusb.h:69: error: ‘uint8_t’ has not been declared
    platform/windows/libusb10emu/libusb-1.0/libusb.h:69: error: ‘uint16_t’ has not been declared
    platform/windows/libusb10emu/libusb-1.0/libusb.h:69: error: ‘uint16_t’ has not been declared
    ...
    
    Unfortunately it looks like not all Visual Studio versions provide
    stdint.h, so hack around them.
    
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Commits on Oct 24, 2011
  1. Fixed up ConsoleTest project for new API changes. Also made small twe…

    lostinspacebar authored and zarvox committed Jun 3, 2011
    …aks in different places for new API and for Windows buildage. KinectDemo now runs on windows. Still get very poor FPS, but it does run. Maybe win32 driver is to blame? Not sure. Will investigate.
    
    Signed-off-by: Aditya Gaddam <adityagaddam@gmail.com> (LostInCake)
Commits on Oct 23, 2011
  1. wrappers/ruby: Update examples

    algrs authored and zarvox committed Jul 25, 2011
    Updated examples & got the last few tests passing
    
    Signed-off-by: Alex Weiss <algrs@cacography.net>
  2. wappers/ruby: Updated to use new frame mode code.

    algrs authored and zarvox committed Jul 25, 2011
    Signed-off-by: Alex Weiss <algrs@cacography.net>
  3. Updated tests

    algrs authored and zarvox committed Jul 23, 2011
    Signed-off-by: Alex Weiss <algrs@cacography.net>
  4. Minor code cleanup, removing commented out code.

    algrs authored and zarvox committed Jul 23, 2011
    Signed-off-by: Alex Weiss <algrs@cacography.net>
  5. Updated Freenect singleton to query the new FrameMode system.

    algrs authored and zarvox committed Jul 23, 2011
    Signed-off-by: Alex Weiss <algrs@cacography.net>
  6. Updated FFI interface to match new interface. All tests run, some tests

    algrs authored and zarvox committed Jul 23, 2011
    fail.
    
    Signed-off-by: Alex Weiss <algrs@cacography.net>
  7. Updated to use rspec 2

    algrs authored and zarvox committed Jul 23, 2011
    Signed-off-by: Alex Weiss <algrs@cacography.net>
Commits on Oct 16, 2011
  1. wrappers/python: Use structures and enums from headers

    marcan committed Oct 16, 2011
    Use the correct structures from libfreenect.h and friends, and all
    the right types, instead of defining clones in cython. Also use the
    correct stdint types. This makes the code much more robust to changes
    in libfreenect.
    
    Signed-off-by: Hector Martin <hector@marcansoft.com>
  2. wrappers/python: Support init outside the runloop

    marcan committed Oct 16, 2011
    This lets the user initialize the Kinect context manually, and also
    disables depth or video streaming when the respective callback is
    not provided.
    
    Signed-off-by: Hector Martin <hector@marcansoft.com>
  3. wrappers/python: Release the GIL in the async interface

    marcan committed Oct 16, 2011
    Signed-off-by: Hector Martin <hector@marcansoft.com>
  4. wrappers/python: Use explicit include path

    marcan committed Oct 16, 2011
    Ask numpy for the correct include path for its headers, instead of just
    assuming they are available in the default include path.
    
    Signed-off-by: Hector Martin <hector@marcansoft.com>
Commits on Oct 15, 2011
  1. add helper function to convert camera coords -> metric world coords

    floe authored and zarvox committed Oct 13, 2011
    Signed-off-by: Florian Echtler <floe@butterbrot.org>
  2. no need to wipe the buffer as every pixel will be written exactly once

    floe authored and zarvox committed Oct 13, 2011
    Signed-off-by: Florian Echtler <floe@butterbrot.org>
  3. not necessary to init reg tables for 11-bit unpacked depth

    floe authored and zarvox committed Oct 13, 2011
    Signed-off-by: Florian Echtler <floe@butterbrot.org>
  4. HACKING: document how to make debug builds

    zarvox committed Oct 15, 2011
    Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
  5. HACKING: fix indentation; add a missing '=' to one of the titles

    ao2 authored and zarvox committed Oct 13, 2011
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
  6. c_sync: Add an example program for registered depth based on c_sync

    ao2 authored and zarvox committed Oct 13, 2011
    Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>