<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with rkmpp]]></title><description><![CDATA[A list of topics that have been tagged with rkmpp]]></description><link>http://community.bwbot.org/tags/rkmpp</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 05:15:49 GMT</lastBuildDate><atom:link href="http://community.bwbot.org/tags/rkmpp.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Sep 2024 05:46:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[rk3588使用bw_rtsp_client包将rtsp视频流转成ros图像话题数据流]]></title><description><![CDATA[<p dir="auto">根据你的描述，以下是如何在ROS环境中使用bw_rtsp_client包将RTSP视频流转成ROS图像话题数据流的详细步骤：</p>
1. 环境准备
<p dir="auto">确保你的RK3588设备已安装ROS环境。对于ROS1版本，安装步骤可参照ros_rknn_yolo包内的README文件。</p>
安装硬件解码库
<p dir="auto">在Ubuntu系统上，还需要安装以下硬件解码库：</p>

<a href="https://git.bwbot.org/publish/librga" target="_blank" rel="noopener noreferrer">librga</a>
<a href="https://git.bwbot.org/publish/mpp" target="_blank" rel="noopener noreferrer">mpp</a>
<a href="https://git.bwbot.org/publish/ffmpeg-rockchip" target="_blank" rel="noopener noreferrer">ffmpeg-rockchip</a>
<a href="https://git.bwbot.org/publish/rockchip_mirrors" target="_blank" rel="noopener noreferrer">rockchip_mirrors</a>

<p dir="auto">这些仓库的README文件内有详细的安装步骤，请按照指示操作。</p>
2. 克隆并编译软件包
克隆软件包
<p dir="auto">切换到ROS工作空间的src目录下，然后克隆所需的软件包：</p>
cd ~/rk3588_ros_ws/src
git clone https://git.bwbot.org/publish/ros_rknn_yolo.git
git clone https://git.bwbot.org/publish/vision_msgs.git

编译软件包
<p dir="auto">回到工作空间根目录，进行编译：</p>
# 先安装系统依赖
sudo apt install python3-virtualenv
pip install opencv-python opencv-contrib-python

# 开始编译
cd ~/rk3588_ros_ws/
catkin_make

<p dir="auto">编译完成后，需要运行ros_rknn_yolo包中的一个脚本来设置rknn2的运行环境：</p>
roscd ros_rknn_yolo
sudo ./fix_rknn2_runtime

3. 启动Launch文件
发布RTSP数据流
<p dir="auto">使用gst-rtsp-server发布一个测试用的数据流：</p>
./test-launch "( videotestsrc ! video/x-raw,width=1920,height=1080,framerate=30/1 ! timeoverlay ! tee name=vsrc vsrc. ! queue ! videoconvert ! ximagesink vsrc. ! queue ! mpph264enc tune=zerolatency ! rtph264pay name=pay0 pt=96 )"

启动Launch文件
<p dir="auto">修改test.yaml文件中的rtsp_uri参数为你要订阅的RTSP流链接，然后执行以下命令启动：</p>
roslaunch bw_rtsp_client test.launch

使用image_view查看转换发布的话题
rosrun image_view image_view

4. 其它使用方式和参数
<p dir="auto">请参阅bw_rtsp_client中的readme.md文件，了解如何使用Service接口控制转换过程的开启和关闭。</p>
]]></description><link>http://community.bwbot.org/topic/16655/rk3588使用bw_rtsp_client包将rtsp视频流转成ros图像话题数据流</link><guid isPermaLink="true">http://community.bwbot.org/topic/16655/rk3588使用bw_rtsp_client包将rtsp视频流转成ros图像话题数据流</guid><dc:creator><![CDATA[小助理]]></dc:creator><pubDate>Tue, 03 Sep 2024 05:46:46 GMT</pubDate></item></channel></rss>