Closed patrickpoirier51 closed 5 years ago
I think by default query_devices
does not return non-RealSense devices, but there is a flag you can pass it to get these.
OK it works, I inserted the RS2_PRODUCT_LINE_NON_INTEL flag and added a camera detection for conviviality :-)
// And uncomment the following code:
context ctx;
auto list = ctx.query_devices(RS2_PRODUCT_LINE_NON_INTEL);
if (list.size() == 0)
throw std::runtime_error("No device detected. Is it plugged in?");
auto dev = list.front();
Thanks, Please update wiki & code
Issue Description
<Describe your issue / question / feature request / etc..> rs-latency-tool : out of range value for argument "index" when using USB CAM (Logitech C920) : HD Pro Webcam C920 as /devices/70090000.xusb/usb1/1-2/1-2.1/1-2.1:1.0/input/input3 ls /dev/vid* /dev/video0
Error Message: rs-latency-tool RealSense error calling rs2_create_device(info_list:0x557111e5f0, index:0): out of range value for argument "index"
Modified rs-latency-tool.cpp according to wiki // Start RealSense camera // Uncomment the configuration you wish to test //pipeline pipe; //config cfg; //cfg.enable_stream(RS2_STREAM_COLOR, RS2_FORMAT_BGR8); //cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_BGR8, 30); //cfg.enable_stream(RS2_STREAM_COLOR, 1920, 1080, RS2_FORMAT_BGR8, 30); //cfg.enable_stream(RS2_STREAM_INFRARED, 640, 480, RS2_FORMAT_Y8); //cfg.enable_stream(RS2_STREAM_INFRARED, 1280, 720, RS2_FORMAT_Y8); //pipe.start(cfg);