ubuntu 下的kinect1的驅動我知道的有兩種方式:
1openni+sensor+nite(可選)
2openni2+libfreenect
我使用的是方法2。
libfreenect
openni2
1.安裝openni2
解壓檔案
cd /opt/openni/openni-linux-x64-2.2/
sudo ./install.sh 會生成乙個opennidevenvironment
cat opennidevenironment >> ~/.bashrc
cd ~&&source .bashrc
2.安裝libfreenect
git clone
cd libfreenect
mkdir build&&cd build
cmake .. -dbuild_openni2_driver=on
make
sudo make install
sudo cp -l ~/down/libfreenect/build/lib/openni2-freenectdriver/libfreenectdriver.so /opt/openni/openni-linux-x64-2.2/redist/openni2/drivers/libfreenectdriver.so
3.新增usb的rules
sudo cp libfreenect/platform/linux/udev/51-kinect.rules /etc/udev/rules.d
sudo reboot
最後在建立的工程中的cmakelists.txt中加入openni2的配置
`#openni2
find_path(openni2_include_dirs openni.h hints en
vope
nni2
incl
ude64
env path_suffixes openni2)
find_library(openni2_library names openni2 hints en
vope
nni2
lib64
env $env)
if (openni2_include_dirs and openni2_library)
set(openni2_found true)
endif (openni2_include_dirs and openni2_library)
if (openni2_found)
# show which openni2 was found only if not quiet
set(openni2_libraries op
enni
2lib
rary
)mes
sage
(sta
tus「
foun
dope
nni2
: 」)
else (openni2_found)
# fatal error if openni2 is required but not found
if (openni2_find_required)
message(fatal_error 「could not find openni2. environment variables openni2_include (directory containing openni.h) and openni2_lib (directory containing openni2 library) could bet set.」)
endif (openni2_find_required)
endif (openni2_found)`
ubuntu14 04安裝紀事
vmware是個好東西,但是今天在新裝ubuntu做實驗時卻一直提示disconnect you are now offline。試了n種方法,也反覆安裝多次,最後才確定是vmware出了問題。嘗試將編輯 虛擬網路編輯器還原預設後才算排除問題,只是網路設定又要重新做了 新裝的ubuntu一些基本設定...
Ubuntu 14 04 系統安裝
1.選擇系統語言 2.安裝環境,足夠的磁碟空間,電腦接入電源,已經連線網際網路 ps a.網際網路可以不連線,連線網際網路會自動更新,影響安裝速度 b.想要加快安裝速度,可以不選兩個選項 c.更新和第三方軟體都是需要的,所以建議保持網路連線,勾選選項。3.安裝型別,有資料最好自己分割槽,選擇 其他選...
Ubuntu14 04怎麼安裝vim?
ubuntu14.04重灌後安裝vim時出現以下的情況怎麼辦?wu wu inspiron 5437 sudo apt get install vim 正在讀取軟體包列表 完成 正在分析軟體包的依賴關係樹 正在讀取狀態資訊 完成 現在沒有可用的軟體包 vim,但是它被其它的軟體包引用了。這可能意味著...