Function description: This example mainly demonstrates the use of SDK to get depth data and draw display, and exit the program through the ESC_KEY key
This example is based on the C++ High Level API for demonstration
ob::Pipeline pipe;
// By creating config to configure which streams to enable or disable for the pipeline, here the depth stream will be enabled
std::shared_ptr<ob::Config> config = std::make_shared<ob::Config>();
config->enableVideoStream(OB_STREAM_DEPTH);
pipe.start(config);
Wait for a frame of data in a blocking manner which is a composite frame containing frame data for all streams enabled in the configuration, and set the waiting timeout time for the frame
auto frameSet = pipe.waitForFrames(100); //Set the waiting time to 100ms
pipe.stop();