我下载了 OpenNI SDK2 源 x64,编译并尝试运行示例,但没有成功。
100 INFO New log started on 2013-10-27 00:03:47
130 INFO --- Filter Info --- Minimum Severity: VERBOSE
166 VERBOSE No override device in configuration file
182 VERBOSE Configuration has been read from './OpenNI.ini'
190 VERBOSE OpenNI 2.2.0 (Build 32)-Linux-x86 (Oct 26 2013 21:13:04)
197 VERBOSE Using './OpenNI2/Drivers' as driver path
208 VERBOSE Looking for drivers in drivers repository './OpenNI2/Drivers'
933 INFO New log started on 2013-10-27 00:03:47
950 INFO --- Filter Info --- Minimum Severity: VERBOSE
966 VERBOSE Initializing USB...
1074 INFO USB is initialized.
4274 INFO New log started on 2013-10-27 00:03:47
4292 INFO --- Filter Info --- Minimum Severity: VERBOSE
4304 VERBOSE Initializing USB...
4366 INFO USB is initialized.
15321 VERBOSE Trying to open device by URI '(NULL)'
15367 ERROR Can't open default device - none found
Couldn't open device
DeviceOpen using default: no devices found
lsusb 得到这个
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 058f:b002 Alcor Micro Corp.
Bus 001 Device 004: ID 045e:00f0 Microsoft Corp.
Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 002 Device 007: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 004: ID 1c7a:0603 LighTuning Technology Inc.
Bus 002 Device 009: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 002 Device 008: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
Bus 002 Device 010: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
我还尝试了一些带有 kinect 的libfreenect示例,它可以正常工作。
我在 SimpleRead main.cpp 文件中添加了一些行
Array<DeviceInfo> dev_info;
OpenNI::enumerateDevices(&dev_info);
printf("Number of devices %d \n",dev_info.getSize());
写出0。
的输出
lsmod | grep gspca_kinect
是无效的
什么可能是错的?
我在 Ubuntu 64bit v13.04 上,Kinect 是“Kinect for Xbox”,使用 USB2