realsense

rs2::context ctx;
auto devicelist = ctx.query_devices();
if (devicelist.size() > 0)
{
rs2::log_to_console(RS2_LOG_SEVERITY_DEBUG);
rs2::device dev = devicelist.front();
fprintf(stdout, "\nRealsense Device info---\n"
" Name : %s\n"
" Serial Number : %s\n"
" Firmware Version : %s\n"
" USB Type : %s\n"
" Stream Color : %d, %d, %d\n",
dev.get_info(RS2_CAMERA_INFO_NAME),
dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER),
dev.get_info(RS2_CAMERA_INFO_FIRMWARE_VERSION),
dev.get_info(RS2_CAMERA_INFO_USB_TYPE_DESCRIPTOR),
RS_WIDTH, RS_HEIGHT, RS_FPS); rs2::config cfg;
cfg.enable_stream(RS2_STREAM_COLOR, 1920, 1080, RS2_FORMAT_YUYV, 30);
pipe.start(cfg); processing_thread = std::thread([&](){
while (running)
{
rs2::frameset fs;
if (pipe.try_wait_for_frames(&fs, 1000))
{
rs2::frame color_frame = fs.get_color_frame();
update_texture(texture, color_frame.get_data());
}
}
});
}

The log file shows that:

Realsense Device info---
Name : Intel RealSense D415
Serial Number : 732612060238
Firmware Version : 05.11.01.00
USB Type : 3.2
Stream Color : 1920, 1080, 30 10/01 12:52:49,118 INFO [548547798704] (backend-hid.cpp:1178) Failed to read busnum/devnum. Device Path: /sys/bus/iio/devices/iio:device0
10/01 12:52:49,118 DEBUG [548547798704] (ds5-factory.cpp:568) try_fetch_usb_device(...) failed.
10/01 12:52:49,123 INFO [548547798704] (backend-v4l2.cpp:1468) v4l_uvc_meta_device
10/01 12:52:49,127 INFO [548547798704] (backend-v4l2.cpp:1468) v4l_uvc_meta_device
10/01 12:52:49,136 INFO [548547798704] (backend-v4l2.cpp:1468) v4l_uvc_meta_device
10/01 12:52:49,141 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format Depth data 16-bit (Z16)
10/01 12:52:49,147 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format 8-bit Greyscale
10/01 12:52:49,148 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format UYVY 4:2:2
10/01 12:52:49,148 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format 8-bit Greyscale
10/01 12:52:49,154 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format Greyscale 8 L/R (Y8I)
10/01 12:52:49,160 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format Greyscale 12 L/R (Y12I)
10/01 12:52:49,172 DEBUG [548547798704] (backend-v4l2.cpp:1254) Recognized pixel-format YUYV 4:2:2
10/01 12:52:49,179 WARNING [548547798704] (backend-v4l2.cpp:1248) Pixel format 36315752-1a66-a242-9065-d01814a likely requires patch for fourcc code RW16!
10/01 12:52:49,180 WARNING [548547798704] (sensor.cpp:338) Unregistered Media formats : [ RW16 ]; Supported: [ ]
10/01 12:52:49,206 INFO [548547798704] (backend-v4l2.cpp:1460) Trying to configure fourcc YUYV
10/01 12:52:49,206 DEBUG [548547798704] (backend-v4l2.cpp:1587) Metadata node was successfully configured to D4XX format
10/01 12:52:49,237 INFO [548170531248] (backend-v4l2.cpp:996) Empty video frame arrived
10/01 12:52:49,239 INFO [548170531248] (backend-v4l2.cpp:996) Empty video frame arrived
10/01 12:52:49,239 INFO [548170531248] (backend-v4l2.cpp:996) Empty video frame arrived
10/01 12:52:49,239 INFO [548170531248] (backend-v4l2.cpp:996) Empty video frame arrived
10/01 12:52:49,242 INFO [548547798704] (backend-v4l2.cpp:1473) ~v4l_uvc_meta_device
10/01 12:52:49,242 INFO [548547798704] (backend-v4l2.cpp:1473) ~v4l_uvc_meta_device
10/01 12:52:49,247 INFO [548547798704] (backend-v4l2.cpp:1473) ~v4l_uvc_meta_device
10/01 12:52:49,383 WARNING [548170531248] (backend-v4l2.cpp:1007) FD_ISSET returned false - video node is not signalled (md only)
10/01 12:52:49,386 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 213768 out of 4147455 bytes (5%)
10/01 12:52:49,416 WARNING [548170531248] (backend-v4l2.cpp:1007) FD_ISSET returned false - video node is not signalled (md only)
10/01 12:52:49,419 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 181000 out of 4147455 bytes (4%)
10/01 12:52:49,450 WARNING [548170531248] (backend-v4l2.cpp:1007) FD_ISSET returned false - video node is not signalled (md only)
10/01 12:52:49,453 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 181000 out of 4147455 bytes (4%)
10/01 12:52:49,490 WARNING [548170531248] (backend-v4l2.cpp:1007) FD_ISSET returned false - video node is not signalled (md only)
10/01 12:52:49,491 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 1098504 out of 4147455 bytes (26%)
10/01 12:52:49,520 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 213768 out of 4147455 bytes (5%)
10/01 12:52:49,554 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 213768 out of 4147455 bytes (5%)
10/01 12:52:49,587 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 213768 out of 4147455 bytes (5%)
10/01 12:52:49,622 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 213768 out of 4147455 bytes (5%)
10/01 12:52:49,655 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 213768 out of 4147455 bytes (5%)
10/01 12:52:49,687 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 181000 out of 4147455 bytes (4%)
10/01 12:52:49,719 INFO [548170531248] (types.h:936) Incomplete video frame detected!
Size 181000 out of 4147455 bytes (4%)
10/01 12:52:49,752 INFO [548170531248] (types.h:936) Incomplete video frame detected!

参考:https://github.com/IntelRealSense/librealsense/issues/3042

rs-enumerate-devices data的更多相关文章

  1. Explain EV in /proc/bus/input/devices data【转】

    转自:https://unix.stackexchange.com/questions/74903/explain-ev-in-proc-bus-input-devices-data It repre ...

  2. 总线(bus);设备(devices);驱动(drivers)

    Linux Cross Reference Free Electrons Embedded Linux Experts • Source Navigation  • Diff Markup  • Id ...

  3. (原)Microsoft Source Reader的简单使用

    感觉Microsoft Source Reader还是比较坑的,只是由于需要,不得不使用.其实按照Microsoft提供的示例,基本上可以正常的调试出程序来. 下面的例子,简单的给出了Source R ...

  4. 『翻译』Android USB Host

    USB Host When your Android-powered device is in USB host mode, it acts as the USB host, powers the b ...

  5. MSDN WinUSB Example

    The WinUSB user-mode library uses device interface classes to communicate with the kernel-mode USB s ...

  6. CentOS7系列--5.1CentOS7中配置和管理KVM

    CentOS7配置和管理KVM 安装与配置虚拟化软件KVM ( Kernel-based Virtual Machine ) + QEMU,它要求计算机的CPU支持Intel VT or AMD-V功 ...

  7. Grokking PyTorch

    原文地址:https://github.com/Kaixhin/grokking-pytorch PyTorch is a flexible deep learning framework that ...

  8. 联邦学习PySyft

    Steps involved in the Federated Learning Approach The mobile devices download the global ML model Da ...

  9. HTML script tag type all in one

    HTML script tag type all in one script type https://developer.mozilla.org/en-US/docs/Web/HTML/Elemen ...

  10. [源码解析] TensorFlow 分布式 DistributedStrategy 之基础篇

    [源码解析] TensorFlow 分布式 DistributedStrategy 之基础篇 目录 [源码解析] TensorFlow 分布式 DistributedStrategy 之基础篇 1. ...

随机推荐

  1. IT公司该如何落实机器学习?

    Cisco发布的总结报告<泽字节时代:趋势和分析>中指出:2016年末,全球年度互联网流量将突破ZB大关(1ZB泽字节:1000EB艾字节),并将于2020年达到2.3ZB;互联网的流量将 ...

  2. npm start a http server( 在windows的任意目录上开启一个http server 用来测试html 页面和js代码,不用放到nginx的webroot目录下!!)

    原文:https://stackabuse.com/how-to-start-a-node-server-examples-with-the-most-popular-frameworks/#:~:t ...

  3. 题解 洛谷P2503 【[HAOI2006]均分数据】

    看了眼题目和数据范围\(n \leq 20,k \leq 6\)自然想到了\(dfs\)分组求解,主要是被这道题坑自闭过. 然而硬来\(dfs\)肯定会被蜜汁\(T\)掉,因为暴力\(n\)个数所在集 ...

  4. Redis 缓存失效机制

    Redis缓存失效的故事要从EXPIRE这个命令说起,EXPIRE允许用户为某个key指定超时时间,当超过这个时间之后key对应的值会被清除,这篇文章主要在分析Redis源码的基础上站在Redis设计 ...

  5. HDFS的NameNode中的Namespace管理

    在NameNode中的Namespace管理层是负责管理整个HDFS集群文件系统的目录树以及文件与数据块的映射关系.以下就是Namespace的内存结构: 以上是一棵文件目录树,可见Namespace ...

  6. 模拟赛 提米树 题解 (DP+思维)

    题意: 有一棵棵提米树,满足这样的性质: 每个点上长了一定数量的Temmie 薄片,薄片数量记为这个点的权值,这些点被标记为 1 到 n 的整数,其 中 1 号点是树的根,没有孩子的点是树上的叶子. ...

  7. Postgresql 进程和内存结构

    在本章中,总结了PostgreSQL中的流程体系结构和内存体系结构,以帮助阅读后续章节.如果您已经熟悉它们,可以跳过本章 1.进程结构 Postgresql 是一个C/S架构的关系型数据库,由多个后台 ...

  8. redis系列(四):切换RDB备份到AOF备份

    1.准备环境 redis.conf服务端配置如下: daemonize yes port logfile /data//redis.log dir /data/ dbfilename dbmp.rdb ...

  9. [golang]A modern, fast and scalable websocket framework with elegant API written in Go

    A modern, fast and scalable websocket framework with elegant API written in Go http://bit.ly/neffos- ...

  10. Pytest权威教程24-Pytest导入机制及系统路径

    目录 Pytest导入机制和sys.path/PYTHONPATH 包中的测试脚本及conftest.py文件 独立测试模块及conftest.py文件 调用通过python -m pytest调用p ...