Skip to main content
The sample_hrnet_pose_estimation sample application provides high-precision human pose estimation using ROS 2 nodes. It uses QualcommÂź AI Engine Direct SDK (QNN) for model inference. It processes input images and publishes the following ROS 2 topics:
  • /pose_estimation_results: Output images with visualized pose keypoints.
  • /pose_estimation_points: Raw keypoint coordinates in a structured message format.
Note

Figure: Sample effects of sample_hrnet_pose_estimation

Pipeline flow for sample_hrnet_pose_estimation

Figure: Pipeline flow for sample_hrnet_pose_estimation

ROS nodes used in sample_hrnet_pose_estimation

ROS topics used in sample_hrnet_pose_estimation

Note/pose_estimation_points contains the coordinates of 17 key points on the original image. Developers can subscribe to this topic for secondary development. The key points include: nose, left eye, and right eye. The specific correspondence is as follows:

Prerequisites

You have completed the settings in Set up the environment for running sample applications.

Run out-of-the-box sample_hrnet_pose_estimation

1

Run the sample on the development kit

Select the input source of the pipeline, and then complete the steps in the corresponding tab.
  1. Set up the runtime environment.
    SSH Session
  2. Launch the sample with image_publisher. You can replace image_path with the path to your desired image.
    SSH Session
2

View the results on the host computer

  1. Start the rqt.
    SSH Session
  2. Select the following buttons in sequence: Plugins —> Visualization —> Image View
  3. Select pose_estimation_results to see the results.
  4. Open a new terminal and run the following command to view the /pose_estimation_points topic.
    SSH Session

Build and run sample_hrnet_pose_estimation

The following steps build the sample_hrnet_pose_estimation package using Dragonwing IQ-9075 Evaluation Kit as an example.
1

Build and package on the host computer

  1. Build the sample application project.
  2. Package and push the sample application to the device.
2

Install and run on the development kit

  1. Install the sample application.
    SSH Session
  2. Run the sample application with the steps in Run out-of-the-box sample_hrnet_pose_estimation.