Open ziteh opened 2 years ago
using Intel.RealSense;
var pipe = new Pipeline();
pipe.Start();
while (true)
{
using (var frames = pipe.WaitForFrames())
{
using (var depth = frames.DepthFrame.DisposeWith(frames))
{
Console.WriteLine("The camera is pointing at an object " +
depth.GetDistance(depth.Width / 2, depth.Height / 2) + " meters away\t");
Console.SetCursorPosition(0, 0);
}
}
}
System.Exception: 'Frame didn't arrive within 5000'
ExternalException: rs2_pipeline_wait_for_frames(pipe:00000242BA59C8C0)
at: using (var frames = pipe.WaitForFrames())
librealsense/wrappers/csharp at development · IntelRealSense/librealsense