最近不知道怎麼搞的, ctrl+m竟然無法建立新的分頁
後來想到前陣子在測試新功能, 有開啟 開發人員 的功能
把 開發人員 關閉 & PPT程式重開, 就好了 XD
最近不知道怎麼搞的, ctrl+m竟然無法建立新的分頁
後來想到前陣子在測試新功能, 有開啟 開發人員 的功能
把 開發人員 關閉 & PPT程式重開, 就好了 XD
如果gpio readall遇到錯誤訊息:
Oops - unable to determine board type... model: 17
解決方法:
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
錯誤訊息:
[ 4%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile_1.dir/ src/cuda/cuda_compile_1_generated_gpu_mat.cu.o
In file included from /usr/include/cuda_runtime.h:83, from <command-line>:
/usr/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!
138 | #error -- unsupported GNU version! gcc versions later than 8 are not sup ported! | ^~~~~
[ 4%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/goog le/protobuf/generated_message_table_driven_lite.cc.o
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.RELEASE.cmake:222 (message) : Error generating /home/xd/opencv/build/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cu da_compile_1_generated_gpu_mat.cu.o
簡單說: unsupported GNU version! gcc versions later than 8 are not supported!
因為電腦用cuda 10.1, 最高只支援gcc-8, 下面連結有對照表
https://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version
ubuntu20已經有包含gcc-8與gcc-9, 預設是gcc-9, 改一下就好
步驟如下
sudo rm /usr/bin/gcc
sudo rm /usr/bin/g++
sudo ln -s /usr/bin/gcc-8 /usr/bin/gcc
sudo ln -s /usr/bin/g++-8 /usr/bin/g++
參考資料
https://askubuntu.com/questions/1112127/how-to-set-vinos-password-through-terminal
https://hollyqood.wordpress.com/2019/04/25/nvidia-agx-xavier%E9%81%A0%E7%AB%AF%E7%99%BB%E5%85%A5remote-by-vnc%E6%8C%89%E5%9C%96%E6%96%BD%E5%B7%A5%E4%BF%9D%E8%AD%89%E6%88%90%E5%8A%9F%E7%89%88%E6%9C%AC/
安裝dconf-editor
sudo apt-get install dconf-editor
開啟 dconf-editor, 然後選 /org/gnome/desktop/remote-access
把requre-encryption
接著設定密碼 (以下範例的密碼是 mypasswd
gsettings set org.gnome.Vino vnc-password $(echo -n 'mypasswd'|base64)
然後就可以用vnc遠端進來了 XD
Jetson 開發版的前置步驟就略過了 (抓image燒到SD卡裡面)
基本上都是參考這篇文章:
https://blog.cavedu.com/2020/02/11/jetson-nano-realsensed435-setup/
現在的swap設定都有自動化的腳本了, 真方便 0.0
git clone https://github.com/jetsonhacksnano/installSwapfile
cd installSwapfile
./installSwapfile.sh
sudo reboot
然後抓realsense的資料下來
git clone https://github.com/jetsonhacksnano/installLibrealsense
cd installLibrealsense
./installLibrealsense.sh
./buildLibrealsense.sh
只是這份自動安裝腳本可能會遇到錯誤訊息, 需要自行解決
在buildLibrealsense.sh裡面, 有設定 NVCC_PATH=/usr/local/cuda-10.0/bin/nvcc
不過我的 NVCC_PATH 應該是 /usr/local/cuda-10.2/bin/nvcc 才對
修正後就安裝成功了
接著可以用 realsense-viewer 來看攝影機的資料, 這個GUI介面有提供錄製功能, 只是錄完的檔案是 .bag 檔
在安裝realsense時, 其實有內建一包tools資料夾, 裡面有個 rs-convert 可以用
(預設)路徑在: ~/librealsense/build/tools/convert 裡面, 有個執行檔 rs-convert
用這個 rs-convert 去讀取 .bag 檔, 參數可以參考官網說明
https://github.com/IntelRealSense/librealsense/tree/master/tools/convert
以下是我的讀取指令(範例):
./rs-convert -i 20200829_120022.bag -p png_folder/ -v csv_depth_folder/
.bag檔是錄製完的檔案; 當時有開兩個資料夾, 分別儲存png與csv景深資料
當終端機跑到100%時, 會回報處理了多少資料, 如下:
CSV converter
570 Depth frame(s) processed
PNG converter
562 Color frame(s) processed
570 Depth frame(s) processed
dot.centraleu.pi-dns.com
dot.northeu.pi-dns.com
dot.westus.pi-dns.com
dot.eastus.pi-dns.com
dns.aaflalo.me:853