QueryGestureData and QueryNodeData always return PXC_STATUS_ITEM_UNAVAILABLE

QueryGestureData and QueryNodeData always return PXC_STATUS_ITEM_UNAVAILABLE

I'm running a simple example from the documentation for Gesture recognition:

 

PXCSmartPtr<PXCCapture> capture;
PXCGesture *gesture=0;

adaptor->_session->CreateImpl<PXCGesture>(&gesture);
PXCGesture::ProfileInfo gestureProfileInfo;
gesture->QueryProfile(0,&gestureProfileInfo);

UtilCapture gesCapture(adaptor->_session);
gesCapture.LocateStreams(&gestureProfileInfo.inputs);
gesture->SetProfile(&gestureProfileInfo);
stream->ReadStreamAsync(&_image, &_syncPoint);
_syncPoint->Synchronize(10000);
_image->AcquireAccess(PXCImage::ACCESS_READ, &_imageData);
gesture->ProcessImageAsync(&_image, _syncPoint.ReleaseRef());

// Up to this point, all statuses are PXC_STATUS_NO_ERROR

    // Geometric Node Processing

    PXCGesture::GeoNode thumb_data;
    status = gesture->QueryNodeData(0,PXCGesture::GeoNode::LABEL_ANY, &thumb_data); 
// status = PXC_STATUS_ITEM_UNAVAILABLE


    PXCGesture::Gesture hand_data;
    status = gesture->QueryGestureData(0,PXCGesture::GeoNode::LABEL_ANY,0, &hand_data); // status = PXC_STATUS_ITEM_UNAVAILABLE

Any thoughts on this? Has anyone else run into this issue?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.