Skip to main content
sample_hrnet_pose_estimation 示例应用提供高精度的人体姿态估计。它处理输入图像,并发布以下 ROS2 话题:
  • /pose_estimation_results:带有可视化姿态关键点的输出图像。
  • /pose_estimation_points:以结构化消息格式表示的原始关键点坐标。
有关模型信息,请参阅 HRNetPose - Qualcomm AI Hub。
下图展示了一个姿态估计结果示例。
Pose estimation result with a blue skeleton and red keypoints overlaid on a standing person who raises one hand.

sample_hrnet_pose_estimation 管道流程

下图展示了 sample_hrnet_pose_estimation 的管道流程。
Pose estimation pipeline from image input through preprocessing, neural network inference, and postprocessing to keypoint and image outputs.

sample_hrnet_pose_estimation 管道。

sample_hrnet_pose_estimation 管道中使用的 ROS 节点

下表列出了 sample_hrnet_pose_estimation 管道中使用的 ROS 节点。

sample_hrnet_pose_estimation 管道中使用的 ROS 话题

下表列出了 sample_hrnet_pose_estimation 管道中使用的 ROS 话题。
/pose_estimation_points 包含原始图像上 17 个关键点的坐标。你可以订阅该话题进行二次开发。关键点包括:鼻子、左眼和右眼。下图列出了每个关键点 ID 与身体部位的具体对应关系。

前提条件

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

从源码构建 sample_hrnet_pose_estimation

当你需要修改示例代码时,可以从源码构建 sample_hrnet_pose_estimation。设备端步骤包括安装依赖、克隆源码仓库和构建包。

设备步骤

1

从 qcom 个人包存档 (PPA) 安装依赖 Debian 包

Add the PPAs
2

安装 QRB ROS 包

Install the packages
3

从 qrb-ros-sample 仓库下载源码

Download the source code
4

下载模型

Download the model
5

从源码构建示例

Build the sample application
6

在设备上运行示例

Run the sample application