ubuntu14 解决openni2 驱动kinect找不到设备i

前端之家收集整理的这篇文章主要介绍了ubuntu14 解决openni2 驱动kinect找不到设备i前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
 
NiViewer 
openDevice Failed:
    DeviceOpen using default: no devices found

Press any key to continue . . .










In addition,make sure to update the OpenNI.ini file,e.g. to run the OpenNI sample apps in OpenNI2/Samples/Bin or the NiTE sample apps in /path/to/NiTE*/Samples/Bin.

For example,I was using the 32-bit OpenNI version 2.2:

  1. I copied the libFreenectDriver.so* to /path/to/OpenNI2/Tools (there is no bin/x64-release folder in this OpenNI version).
  2. In OpenNI2/Samples/Bin,edit the file OpenNI.ini
  3. Under the [Drivers] section,at the end of the file,add the line: Repository=/path/to/OpenNI2/Tools (where you put the libFreenectDriver.so file). Below is my edited OpenNI.ini file. I used a relative path,but an absolute path will also work.

    #/path/to/OpenNI2/Samples/Bin/OpenNI.ini
    [Log]
    ; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
    Verbosity=3
    LogToConsole=0
    LogToFile=0
    
    [Device]
    ;Override=""
    
    [Drivers]
    ; Location of the drivers specified by a relative path based on  OpenNI's shared library or an absolute path.
    ; Path separator "/" can be used to be portable for any platforms.
    ; Default - OpenNI2/Drivers
    Repository=../../Tools

You'll have to do the same thing for the NiTE samples. The samples should run now.

Without updating the OpenNI.ini I always get the error DeviceOpen using default: no devices found

*ps. libfreenect installation will put the libFreenectDriver.so in /usr/local/lib/OpenNI2-FreenectDriver/

原文链接:https://www.f2er.com/ubuntu/350202.html

猜你在找的Ubuntu相关文章