Skip to main content
qrb_ros_simulation 包提供仿真环境。它允许您通过向 /qrb_robot_base/cmd_vel topic 发布 ROS 消息来控制 QRB 自主移动机器人 (AMR) 的运动。
有关更多信息,请参见 GitHub 上的 Simulation Sample AMR Simple Motion 仓库。
下图展示了运动控制终端与 QRB AMR 仿真器视图并排显示的情况:
Terminal accepting AMR motion control commands beside a simulator view of the robot base moving across the floor.

simulation_sample_amr_simple_motion 的管线流程

下图展示了 simulation_sample_amr_simple_motion 的管线:
Device-side AMR simple motion node publishing ROS messages on the cmd_vel topic to the QRB ROS simulation running on the host.

simulation_sample_amr_simple_motion 管线。

simulation_sample_amr_simple_motion 管线中使用的 ROS 节点

下表描述了 AMR simple motion 管线中使用的 ROS 节点。

simulation_sample_amr_simple_motion 管线中使用的 ROS topic

下表描述了 simulation_sample_amr_simple_motion 管线中使用的 ROS topic。

前提条件

您已根据 安装 QIR SDK 在设备上完成设备设置、安装 ROS2 Jazzy 和 Qualcomm Intelligent Robotics (QIR) SDK。

运行 simulation_sample_amr_simple_motion

1

在主机上构建 Qualcomm 机器人仿真环境

在您的主机上,根据 QRB ROS Simulation 的 README 完成以下操作,构建 Qualcomm 机器人仿真环境。
  1. 在 Ubuntu24.04 主机或 Docker 上设置开发环境。
  2. 从源代码构建。
2

在主机上运行 QRB Robot Base AMR

3

在开发套件上运行 AMR simple motion

在开发套件上,运行以下命令以运行 AMR simple motion。

结果

如果 ROS 节点成功启动,日志中会出现以 === AMR Simple Motion Control Usage: === 开头的内容。 然后,您可以输入运动控制命令,并在主机上通过仿真器查看 QRB AMR 的移动状态。