Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

c++ Refernce device.getcapture() not listed

Open Ayala65 opened this issue 4 years ago • 6 comments

while (!stop && !visualization.wasStopped()) { switch(device.get_capture()) { case K4A_WAIT_RESULT_SUCCEEDED: break; case K4A_WAIT_RESULT_TIMEOUT: printf("Timed out waiting for a capture\n"); continue; break; case K4A_WAIT_RESULT_FAILED: printf("Failed to read a capture\n"); device.close(); return 1; }

}

E0304 no instance of overloaded function "k4a::device::get_capture" matches the argument list te

Ayala65 avatar May 11 '20 16:05 Ayala65

Sorry, I don't understand your issue. Please clearly tell us what the issue is, what you expect to happen, and steps to reproduce the problem

wes-b avatar May 11 '20 22:05 wes-b

I try to use the method get_capture from device to obtain frame per frame of the depth camera but when i write this "device.get_capture()" the error is launched even when i try in a new program the same error is launched.

Ayala65 avatar May 12 '20 17:05 Ayala65

Can you share your code?

wes-b avatar May 12 '20 18:05 wes-b

test.zip

Ayala65 avatar May 12 '20 20:05 Ayala65

I see you are using our kinfu sample. I suggest confirming you can get that sample to work as published, have you tried that.

wes-b avatar May 13 '20 15:05 wes-b

Yes, i have compiled that example and im using it to make another program but when i tried the c++ reference i have this problem so i remake that sample to c++, i have the same problem with getcapture

Ayala65 avatar May 13 '20 17:05 Ayala65