"No Devices connected" with PCL1.6 and Primesense Camera (Carmine 1.09)

471 views Asked by At

I am using primesense camera for a project which has device driver indicating Carmine 1.09 (installed from OpenNI folder). When I am running OpenNI2's viewer, you can see the depth data coming through so the camera is definitely connected.

However, when I am running a project using PCL, it just kept throwing an error exception saying "no devices connected". I tried many different version of primesense (i.e. https://github.com/jspricke/openni-sensor-primesense), but still not helping.

Here is where the problem occurs. Wherever there is a pcl:: command, it will try to throw this exception.

    try {
        if (!pcl::OpenNIGrabber().getDevice())
        {
            std::cout << "No device is found!" << std::endl;
            return;
        }
        else
        {
            std::cout << "Device is found!" << std::endl;
            pcl::Grabber* grabber = new pcl::OpenNIGrabber();
        }
    }
    catch (const pcl::PCLIOException& ex)
    {
        std::cout << ex.what() << std::endl;
        return;
    }
    catch(const char* msg)
    {
        std::cout << msg << std::endl;
        return;
    }

FYI. I'm currently using Windows8.1 64 bit, but the projects are all running 32 bits, with PCL 1.6 and OpenNI 1.5.4 (I tried the patched version as well).

Does anybody know a solution to this?

0

There are 0 answers