如何安裝Kinect驅動器?

如何安裝Kinect驅動器?

我有 Kinect v2,我正在嘗試使用它將其連接到我的筆記型電腦自由連結2

這是我到目前為止所做的:

  1. 拿到libfreenect2專案了

    git clone https://github.com/OpenKinect/libfreenect2.git
    
  2. 安裝所需的依賴項

    sudo apt-get install build-essential libturbojpeg libjpeg-turbo8-dev libtool autoconf libudev-dev cmake mesa-common-dev freeglut3-dev libxrandr-dev doxygen libxi-dev automake
    
    cd libfreenect2/depends
    sh install_ubuntu.sh
    sudo apt-get install libglfw3-dev
    
  3. beignet-dev我有一個為 OpenCL安裝的 Intel GPU

    sudo apt-get install beignet-dev
    
  4. 建構可執行檔

    mkdir build && cd build
    cmake ..
    make
    sudo make install     
    

一切都成功安裝,建置也成功。

  1. 啟動程式

    sudo ./bin/Protonect              
    

輸出不顯示任何錯誤,但Viewer視窗保持黑色:

[Info] [Freenect2Impl] enumerating devices...
[Info] [Freenect2Impl] 8 usb devices connected
[Info] [Freenect2Impl] found valid Kinect v2 @2:5 with serial 501696141942
[Info] [Freenect2Impl] found 1 devices
[Info] [Freenect2DeviceImpl] opening...
[Info] [Freenect2DeviceImpl] opened
[Info] [Freenect2DeviceImpl] starting...
[Debug] [Freenect2DeviceImpl] ReadData0x14 response
[Debug] [Freenect2DeviceImpl] 92 bytes of raw data
0x0000:  00 00 12 00 00 00 00 00 01 00 00 00 43 c1 1f 41    2e2e2e2e2e2e2e2e2e2e2e2e432e2e41
0x0010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e2e
0x0020:  0a 21 33 55 c2 00 17 20 00 08 00 00 10 00 00 00    2e2133552e2e2e202e2e2e2e2e2e2e2e
0x0030:  00 01 00 00 00 10 00 00 00 00 80 00 01 00 00 00    2e2e2e2e2e2e2e2e2e2e802e2e2e2e2e
0x0040:  31 33 00 00 00 04 0f 0d 47 4d 48 38 34 36 2e 31    31332e2e2e2e2e2e474d483834362e31
0x0050:  58 00 00 00 00 00 00 00 00 00 00 00                582e2e2e2e2e2e2e2e2e2e2e

[Debug] [Freenect2DeviceImpl] ReadStatus0x090000 response
[Debug] [Freenect2DeviceImpl] 4 bytes of raw data
0x0000:  00 22 00 00                                        2e222e2e

[Debug] [Freenect2DeviceImpl] ReadStatus0x090000 response
[Debug] [Freenect2DeviceImpl] 4 bytes of raw data
0x0000:  00 22 00 00                                        2e222e2e

[Info] [Freenect2DeviceImpl] enabling usb transfer submission...
[Info] [Freenect2DeviceImpl] submitting usb transfers...
[Info] [Freenect2DeviceImpl] started
device serial: 50**************
device firmware: 4.3.3912.0.7
[Info] [TurboJpegRgbPacketProcessor] avg. time: 18.4934ms -> ~54.0734Hz
[Info] [TurboJpegRgbPacketProcessor] avg. time: 19.4946ms -> ~51.2961Hz
...

Viewer:

kinect檢視器


附加資訊:

kinect 連接到 USB 3.0(必需)端口,我使用的是 Ubuntu 15.04。

我在這裡缺少什麼?

答案1

最好在 GitHub 上報告此問題,我們可以追蹤您的進度。

Protonect 預設使用 OpenGL。你的OpenGL版本是什麼glxinfo | grep OpenGL?深度處理器是否真的在運作?要查看深度處理器是否真正運行,請尋找[XXXDepthRgbPacketProcessor] avg. time日誌訊息。

由於您已經安裝了 OpenCL 驅動程序,因此您也可以運行./Protonect cl.

如果可以的話,請在 GitHub 上跟進該問題。

相關內容