sample_apriltag is a ROS package that provides AprilTag pipeline samples for Qualcomm robotics platforms.
NoteFor more information, see sample_apriltag on GitHub.
Figure: Sample results of sample_apriltag
Pipeline flow for sample_apriltag
Figure: Pipeline flow for sample_apriltag
- The pipeline accepts an NV12 image from
qrb_ros_cameraand converts the color space to RGB8 format. - Then, it uses
image_procto rectify the image, and outputs/apriltag/image_rect. - The
Apriltagnode detects tags and calculates their poses, which are published via/tf.
ROS nodes used in the sample_apriltag pipeline
ROS topics used in the sample_apriltag pipeline
| ROS Topic | Type | Published by |
|---|---|---|
/apriltag/image_nv12 | sensor_msgs/msg/Image | qrb_ros::camera::CameraNode |
/apriltag/camera_info | sensor_msgs/msg/CameraInfo | qrb_ros::camera::CameraNode |
/apriltag/image_rgb8 | sensor_msgs/msg/Image | qrb_ros::colorspace_convert::ColorspaceConvertNode |
/apriltag/image_rect | sensor_msgs/msg/Image | image_proc::RectifyNode |
/apriltag/detections | apriltag_msgs/msg/AprilTagDetectionArray | apriltag_ros::AprilTagNode |
/tf | tf2_msgs/msg/TFMessage | apriltag_ros::AprilTagNode |
Prerequisites
You have completed the settings in Set up the environment for running sample applications.Run out-of-the-box sample_apriltag
Try me
Try me
1
Run the sample on the development kit
SSH Session
2
Place AprilTag images in front of the camera
![]() | ![]() | ![]() |
|---|---|---|
| tagStandard41h12: 1 | tagStandard41h12: 2 | tagStandard41h12: 3 |
3
Check the detection result
- Start a terminal and run the following commands to check the apriltag detection result.
The pipeline outputs the detection results withSSH Session
/apriltag/detectionsand detects the tag pose with/tf. - To check the topic output, run the following command:
Result:SSH Session
-
Detected tag:
tagStandard41h12 -
Tag ID:
1
Build and run sample_apriltag
Try me
Try me
1
Build and package on the host computer
- Build the sample application project.
- Package and push the sample application to the device.
2
Install and run on the development kit
- Install the sample application.
SSH Session
- Run the sample application with the steps in Run out-of-the-box sample_apriltag.




