The sensor control samples aims to provide the entry point and a tutorial for using the more advanced API that the RealSense SDK provides.
In addition to the
r2::pipeline API, which simplifies streaming flow, the SDK provides the
rs2::sensor APIs that provide an abstraction for RealSense devices.
In this sample we show how to use this API for querying all connected devices, their sensors, and their streams.
rs2::sensor one can control a camera's options, stream from it, and get the frames directly without having them processed or synchronized (as the
Running this example with a connected Intel RealSense device, will output the connected device names, and requests the user to select a camera (or connect one).
After selecting a camera, the user will be prompt to select one of the device's sensor, and select which action to perform using that sensor.
This flow will repeat itself as long as the user desires.
Please follow the
api_how_to.h for detailed documentation and explanations
This file contains detailed explanations and code on how to do the following:
Updated about a year ago