Run Sample Applications

The reference image includes multiple sample applications that allow you to experiment and see how various features run.

By default, the reference image is configured to start the ADAS example application automatically. If you want to interact with the application or run other sample applications that are included with reference image, connect to the image and slay the ADAS example application. For example:
# slay adas_example
To do this, you must connect to the reference image using an ssh connection and run the command. These are the sample applications that demonstrate what you can build with the QNX Platform for ADAS:
Note: The applications are for demonstrative/reference purposes and are meant as a starting point for you to learn how to build your applications. They aren't intended for production and the code is structured in a manner to make it easier to learn how to use the API calls.
Note: You can run multiple applications as long as they don't try use the same sensor/camera; however you will only be able to see the more recent application you've ran on the display. If you ran an application in the background, to stop it, you can connect to the target and run the slay command.
  1. ADAS example: This application is configured to run immediately after the board boots up. It reads sensor data and camera data to create visualizations using the ADAS library. For more information about running this application, see ADAS example in this chapter.
  2. Camera example: This application demonstrates how you can use the Camera library. You can use it to configure settings on the camera and understand how to use the Camera library with the cameras connected to your system. If a camera is configured correctly in the sensor configuration file, this application will indicate that the camera is available. For more information about using the application, see Camera example.”
  3. Camera MUX 2x2: This takes multiple camera streams to show them at the same time on the screen. You can show up to 4 camera streams. For more information, see Camera MUX 2x2 in this chapter.
  4. Publish Subscribe example: This application runs as either a publisher, subscriber, or both. This example uses Platform-independent Publish Subscribe (PiPs). For more information about using the application, see Publish and Subscribe example.”
  5. Robot OS example: This application can be used to publish data that's read from connected sensors. You can run a separate subscribe that listens for data that's published and visualize the data on a separate host system. For more information, about using this application, see see Robot OS example.”
  6. Sensor example: This application reads sensor data, queries a sensor for information, and queries that data. You can also use it to record sensor information. For more information about using the application, see Sensor example in this chapter.