edge_Equipment/yzq(手柄闭环算法验证)/必看:无人机手柄环境3588端搭建说明.txt

31 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

******搭建目标检测算法环境*******
1.在3588开发板上安装miniconda参考链接如下https://blog.csdn.net/weixin_43328157/article/details/133673938#:~:text=Miniconda%E6%98%AF
具体步骤如下Miniconda3-latest-Linux-aarch64.sh脚本在文件夹中使用bash Miniconda3-latest-Linux-aarch64.sh命令安装添加系统路径根据具体配置文件夹来操作
2.创建conda 环境。python版本在该次实验中使用3.9。conda create --name rknn python=3.9conda activate rknn。出现意外情况可参考以上链接。
3.安装opencv环境pip install opencv-python 即可
4.安装rknn服务端环境。pip install rknn_toolkit_lite2-1.4.0-cp39-cp39-linux_aarch64.whl脚本在文件夹中注意以下路径为当前自定义文件夹请根据实际情况修改
sudo cp /home/forlinx/yzq自定义/rknpu2-1.5.2/runtime/RK3588/Linux/rknn_server/aarch64/usr/bin/rknn_server /usr/bin/rknn_server
sudo cp /home/forlinx/yzq自定义/rknpu2-1.5.2/runtime/RK3588/Linux/librknn_api/aarch64/librknnrt.so /usr/lib/librknnrt.so
sudo cp /home/forlinx/yzq自定义/rknpu2-1.5.2/runtime/RK3588/Linux/librknn_api/aarch64/librknn_api.so /usr/lib/librknn_api.so
chmod +x /usr/bin/rknn_server
/usr/bin/rknn_server
******测试目标检测算法地址******
https://github.com/leafqycc/rknn-multi-threaded/tree/nosigmoid
******搭建蓝牙通信环境******
wget http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bluez/libbluetooth3_5.48-0ubuntu3_arm64.deb如果找不到安装文件夹中的安装包下载即可
sudo dpkg -i libbluetooth3_5.48-0ubuntu3_arm64.deb
wget http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bluez/libbluetooth-dev_5.48-0ubuntu3_arm64.deb如果找不到安装文件夹中的安装包下载即可
sudo dpkg -i libbluetooth-dev_5.48-0ubuntu3_arm64.deb
cd到pybluez-master文件夹中使用python setup.py install安装。
*******测试算法******
进入到main.c里面跑即可出现报错主要原因是蓝牙没有连接上。
注意全流程算法文件夹在yzq下面。