Hello reviewers,
Requesting the custom-device interface for the ai-vision-ros2 demo snap, to allow access to Qualcomm Hexagon NPU accelerator device nodes. This snap is used to run AI robotics application demos with our partner Qualcomm.
name: ai-vision-ros2
description: |
Robotic-arm vision perception node for ROS 2 Jazzy, Qualcomm
Hexagon NPU (QNN) variants. Subscribes to a camera image topic and
republishes detections/depth plus a protective-stop signal, running
inference on the Hexagon NPU (and optionally the Adreno GPU) of a
Qualcomm IQ-9075 EVK / QRB-Snapdragon board.
slots:
qcom-accel:
interface: custom-device
custom-device: qcom-accel
devices:
- /dev/fastrpc-cdsp
- /dev/fastrpc-cdsp1
plugs:
qcom-accel-plug:
interface: custom-device
custom-device: qcom-accel
Two models are published under this same snap name on different channels:
- latest/qualcomm/stable: Depth Anything V2 (Small) – monocular depth / proximity protective-stop
- latest/qualcomm/edge: OWL-ViT (open-vocabulary detection) – text-prompted object detection / protective-stop
Both variants use ONNX Runtime’s QNNExecutionProvider to dispatch inference. The snap requires the custom-device interface to access these device nodes:
- /dev/fastrpc-cdsp, /dev/fastrpc-cdsp1: fastrpc channels used by the QNN HTP backend to dispatch inference to the Hexagon DSP/NPU.
snapcraft: https://github.com/canonical/ai-vision-ros2-demo/blob/qualcomm/so101_depth_demo/snap/snapcraft.yaml upstream-relation: maintainer
This snap targets a board with no gadget snap . Thanks in advance for reviewing!