Skip to main content
Qualcommโ€™s smart devices, such as the Qualcommยฎ Dragonwingโ„ข IQ-9075 development kits, use NV12 as the default image color space conversion format. However, the more common color space format is RGB888. The qrb_ros_colorspace_convert sample application implements the following functionalities:
  • Provides ROS nodes
    • API to convert NV12 to RGB888
    • API to convert RGB888 to NV12
  • Supports dmabuf fd as input and output
  • Input and output image receive and send with QRB ROS transport
  • Hardware acceleration with GPU by OpenGL ES

Pipeline flow for qrb_ros_colorspace_convert

The following figure shows the pipeline flow of qrb_ros_colorspace_convert.
Color space conversion pipeline where a custom ROS node exchanges dmabuf fd image buffers with the colorspace_convert node over ROS topics.

qrb_ros_color_space_convert pipeline.

The following table describes the ROS nodes used in the qrb_ros_colorspace_convert software architecture. The following table describes the ROS topics used in the qrb_ros_colorspace_convert software architecture.

Prerequisites

  • You have set up the device, installed ROS2 Jazzy and Qualcomm Intelligent Robotics (QIR) SDK on the device according to Install the QIR SDK.
  • The custom_ros_node is ready.
  • You have connected the device to the display monitor.

Run out-of-the-box qrb_ros_colorspace_convert

1

Install the color space conversion package according to whether you have installed the desktop or server QIR SDK image

See Install the QIR SDK.
  • qirp-sdk is the QIR SDK server image package.
  • qirp-sdk-desktop is the QIR SDK desktop image package.
  • For Ventuno Q, use the package listed under Desktop image.
Server image
Desktop image
2

Launch the qrb_ros_color_space_convert node

Launch the node
Confirm the color space conversion result with the following commands:

Build from source

1

Install dependencies according to whether you have installed the desktop or server QIR SDK image

See Install the QIR SDK.
  • qirp-sdk is the QIR SDK server image package.
  • qirp-sdk-desktop is the QIR SDK desktop image package.
  • For Ventuno Q, use the package listed under Desktop image.
Server image
Desktop image
2

Download the source code and build with colcon

Download and build
3

Run and debug

Run the node
Confirm the color space conversion result with the following commands: