树莓派qtcreator安装

本文详细介绍了如何在树莓派上安装QtCreator及其多媒体模块,包括QML全屏显示设置。同时,文章提到了树莓派的视频推流方法,利用ffmpeg进行rtsp到rtp的转换,并通过阿里云管道端口转发。此外,还讲解了配置wpa_supplicant.conf文件以连接WiFi,以及在树莓派上安装ROS的相关步骤和参考资料。

这里写自定义目录标题


树莓派ubuntu 清华源

# /etc/apt/sources.list默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ focal-security main restricted universe multiverse

树莓派qtcreator安装

sudo apt-get install build-essential libssl-dev nmap g++ cmake automake
sudo apt-get install qt5-default qtcreator qtmultimedia5-dev libqt5serialport5-dev qtdeclarative5-dev qt5* qml-module-* pyqt5* python-nose python-empy

sudo apt-get install build-essential libssl-dev nmap g++ cmake automake qt5-default qtcreator qtmultimedia5-dev libqt5serialport5-dev qtdeclarative5-dev qt5* qml-module-* pyqt5* python-nose python-empy

QML全屏显示
ApplicationWindow {
width: Screen.desktopAvailableWidth
height: Screen.desktopAvailableHeight
flags:Qt.FramelessWindowHint 去除标题栏
visibility:Window.FullScreen

树莓派视频推流

raspivid -fl -t 0 -w 960 -h 720 -b 1200000 -fps 15 -pf high -o - |ffmpeg -f h264 -i - -c copy -an -f flv -y rtmp://localhost/live/t1

ffmpeg 拉rtsp 推rtp

ffmpeg -re -i  "rtsp://admin:shhk@123@192.168.8.100:554"   -fflags nobuffer  -vcodec copy -f rtp_mpegts rtp://127.0.0.1:1234 

阿里云管道端口转发:
rm -rf /tmp/fifo; mkfifo /tmp/fifo;nc -ll -p 9900 < /tmp/fifo | nc -ll -p 9901 > /tmp/fifo
raspivid -fl -t 0 -w 960 -h 720 -b 1200000 -fps 15 -pf high -o - |nc s2.icode.ml 9900
mplayer -fps 200 -demuxer h264es ffmpeg://tcp://s2.icode.ml:9901

wpa_supplicant.conf 配置文件连接 WiFi 设备。

ctrl_interface=DIR=/var/run/wpa_supplicant
GROUP=netdev
update_config=1
network=
{
ssid=“WiFi的SSID”
psk=“WiFi密码”
}

ros树莓派安装
/etc/hosts
151.101.84.133 raw.githubusercontent.com
apt install pyqt5* python-nose python-empy

http://wiki.ros.org/ROSberryPi
https://blog.youkuaiyun.com/hua_lun_tong_xue/article/details/106930273
https://www.ncnynl.com/archives/201608/499.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值