Run sample applications

Updated: October 26, 2022

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 Camera MUX application automatically. If you want to interact with the application or run other sample applications that are included with the reference image, connect to the target and slay the Camera MUX application. For example:
# slay camera_mux
To do this, you can connect to the reference image using the console, or an ssh or telnet connection. These are the sample applications that demonstrate what you can build with the Sensor Framework:
  • 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.
  • You can run multiple applications as long as they don't try to use the same sensor/camera; however, you can only see the most recent application on the display. If you ran an application in the background, to stop it, connect to the target and run the slay command.
  1. ADAS example: This application is used for the finger-counting demo that can be run on the R-Car V3H board. The ADAS example provides visualization of camera data with overlays from an algorithm, using the ADAS library. For information about running this application, see ADAS example in this chapter.
  2. Camera example: This application lets you configure camera settings and demonstrates how to use the Camera library with any connected cameras. If a camera is configured correctly in the sensor configuration file, this application will indicate that the camera is available. For more details about using the application, see Camera example.
  3. Camera MUX: This application can show a 2x2 grid from four cameras. With the default SLM configuration, this application runs immediately after the board boots up. For more information, see Camera MUX.
  4. Sensor example: This application reads data by querying a sensor and then displays that data. You can also use it to record sensor information. For more information, see Sensor example.