|
|
|
@ -76,15 +76,6 @@ int main(int argc, char* argv[]) {
|
|
|
|
|
break;
|
|
|
|
|
case FRAGMENT_MESSAGE:
|
|
|
|
|
switch(fragment.message.header.cmd) {
|
|
|
|
|
case VISION_DETECT_INFO_CMD:
|
|
|
|
|
if(fragment.message.push.vision.errcode) {
|
|
|
|
|
printf("Vision error %d\n", fragment.message.push.vision.errcode);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
printf("Received %d rectangles\n", fragment.message.push.vision.count);
|
|
|
|
|
printf("\tVision type %d\n", fragment.message.push.vision.type);
|
|
|
|
|
printf("\tVision status %d\n", fragment.message.push.vision.status);
|
|
|
|
|
break;
|
|
|
|
|
case STREAM_CTRL_CMD:
|
|
|
|
|
if(fragment.message.resp.stream.retcode) {
|
|
|
|
|
printf("ERROR: Stream not enabled\n");
|
|
|
|
|