38 int main(
int argc,
char *argv[])
43 res = pmdConnectFireWire(&hnd);
45 cout <<
"Error pmdConnectFireWire" << endl;
50 cout <<
"Error pmdUpdate" << endl;
54 res = pmdGetDistances(hnd, (
void**)&dat);
56 cout <<
"Error pmdGetDistances" << endl;
59 res = pmdGetWidth(hnd, &width);
61 cout <<
"Error pmdGetWidth" << endl;
64 cout <<
" First pixel depth is " << dat[0] << endl;
65 cout <<
" Sensor width is: " << width << endl;