Skip to main content
qrb_ros_benchmark 基于 ros2_benchmark 构建,并使用专用组件对其进行扩展,以对 QRB ROS 传输类型进行基准测试,包括:
  • QRB 传输类型(Image、IMU、PointCloud2)
  • DMABuf 传输类型(Image、PointCloud2)
  • 标准 ROS 消息类型

软件结构

下图展示了 qrb_ros_benchmark 的软件结构。
Layered stack with the QRB ROS benchmark monitor and playback nodes above the ROS2 benchmark nodes, QRB transport components, and ROS2.

qrb_ros_benchmark 的软件结构。

基本用法与 ros2_benchmark 类似,以下是 qrb_ros_benchmark 独有支持的消息类型: QRB 传输类型:
  • qrb_ros/transport/type/Image
  • qrb_ros/transport/type/Imu
  • qrb_ros/transport/type/PointCloud2
  • qrb_ros_tensor_list_msgs::msg::TensorList
DMABuf 传输类型:
  • dmabuf_transport/type/Image
  • dmabuf_transport/type/PointCloud2

前提条件

你已根据安装 QIR SDK完成设备设置,并在设备上安装了 ROS2 Jazzy 和 Qualcomm Intelligent Robotics (QIR) SDK。

开箱即用运行 qrb_ros_benchmark

1

安装 qrb_ros_benchmark 包

Install the packages
2

创建用于评估 qrb_ros/transport/type/Image 的最小模板

Create the launch file
qrb-ros-transport-image-type_launch.py
3

启动 qrb-ros-transport-image-type 基准测试

Start the benchmark

从源码构建

1

安装依赖

Install the dependencies
2

下载源码并使用 colcon 构建

Clone the repositories and build
3

运行和调试

Source the workspace
4

运行 qrb-ros-benchmark

根据开箱即用运行 qrb_ros_benchmark 的步骤 2 运行 qrb-ros-benchmark。