Skip to content

Kinect device not detected in custom code, but works in Protonect #916

@anuppari

Description

@anuppari

Overview Description:
I'm trying to replicate a basic version of Protonect in Visual studio 2015. The protonect executable works fine, but my code shows no devices connected (specifically I get the "LIBUSB_ERROR_NOT_FOUND Entity not found error"). A weird symptom is that when protonect runs, it detects 6 usb devices, and 1 kinect device. but my code detects 8 usb devices and no kinect.

I've stripped my code to the basic form to replicate the error:

#include <iostream>

#define GLFW_DLL
#include <libfreenect2/libfreenect2.hpp>
#include <libfreenect2/frame_listener_impl.h>
#include <libfreenect2/packet_pipeline.h>

int main(int argc, char *argv[])
{
  // Initialize freenect device (kinect), pipeline and listener
  std::cout << "here1" << std::endl;
  libfreenect2::Freenect2 freenect2;

  if (freenect2.enumerateDevices() == 0)
  {
    std::cout << "no device connected!" << std::endl;
    return -1;
  }
return 0;
}

Version, Platform, and Hardware Bug Found:

  1. Latest version: 93769ab
  2. Platform: Windows 10 64bit
  3. Using UsbDk and "WDF KinectSensor Interface 0" shows in device manager

Steps to Reproduce:

  1. Build a basic example of enumerating devices

Actual Results:
No kinect detected.

Expected Results:
1 kinect detected.

Reproducibility:

Additional Information:
My code compiles and links fine

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions