Skip to main content
This information describes how to use the QIR SDK toolchain to compile a simple ROS 2 sample application. The demos and code for both Python and C++ development are available as examples.

Install the prebuilt QIR SDK on the host computer

Before you begin, download and extract the QIR SDK package as described in Download the prebuilt packages. Use the QIR SDK package under qirpsdk_artifacts; do not use the robotics eSDK under sdk/, which is for rebuilding the robotics image. On the host computer, go to the QIR SDK artifacts directory and decompress the QIR SDK archive:
This command generates the qirp-sdk directory. QIR SDK is the product name; qirp-sdk_<qirp_version>.tar.gz, qirpsdk_artifacts, and qirp-sdk are the package and directory names used by the delivered artifacts.
Note
  • The qirp-sdk_<qirp_version>.tar.gz is located in the deployed path of QIR artifacts. The <qirp_version> changes with each release, such as 2.0.0, 2.0.1. For example, the complete package name can be qirp-sdk_2.7.0.tar.gz.
  • For all released versions, see Qualcomm® Intelligent Robotics SDK (QIR SDK) 2.0 Release Notes.
  • The QIR SDK supports these development kits for Qualcomm Linux:

Develop applications using the QIR SDK

  1. Set up the QIR SDK cross-compile environment from the extracted qirp-sdk directory.
  2. Fetch the project as the code baseline.
  3. Develop your own application either in C++ or Python.
    1. Develop your own C++ application. The following is an example.
      Change the demo_nodes_cpp/src/topics/talker.cpp msg data in line 46:
      talker.cpp
    2. Set the necessary environment variables and use the colcon tool to build the ROS2 package demo_nodes_cpp and its dependencies.
    3. Push the demo to the device.
    4. Run the demo application on the device. i. On the first terminal, run these commands:
      ii. On the second terminal, run these commands:
    5. Check the output. Terminal 1 output:
      Terminal 2 output: