Hello,
I have installed OpenNI and OpenCV (v2.4.0). Then, I compiled the kinect_maps example program using
g++ `pkg-config opencv --cflags` kinect_maps.cpp -o kinect_maps `pkg-config opencv --libs`
and built it with no problems. When I run it though, I get the error:
Kinect opening ...
CvCapture_OpenNI::CvCapture_OpenNI : Failed to create production tree: Internal buffer is too small!
done.
Can not open a capture object.
This message is generated by cap_openni.cpp by the following:
status = context.CreateProductionTree( deviceNode, productionNode );
if( status != XN_STATUS_OK )
{
std::cerr << "CvCapture_OpenNI::CvCapture_OpenNI : Failed to create production tree: "
<< std::string(xnGetStatusString(status)) << std::endl;
return;
}
I don't understand what causes the error. The openni_grabber example that comes with PCL works, so it's not the connection with the Kinect.
Thanks!