完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我正在使用librealsense 2.16.0.221和D430相机型号。 我想知道,从我的应用程序来看,相机是否已经在使用中(例如,在RealSense Viewer内或其他应用程序中打开)。 是否有用于此目的的相机选项? 我无法在这方面找到任何东西,我发现唯一的东西是选项RS2_CAMERA_INFO_CAMERA_LOCKED但我的设备不支持它(我用rs2 :: device :: supports()调用检查它)。 感谢您的支持! 以上来自于谷歌翻译 以下为原文 Hello, I'm using librealsense 2.16.0.221 and a D430 camera model. I'd like to know, from my application, wheter or not the camera is already in use (e.g., opened inside the RealSense Viewer or by another app). Is there a camera option for this purpose? I was not able to find anything in this regard, the only thing I found is the option RS2_CAMERA_INFO_CAMERA_LOCKED but it is not supported by my device (I checked it with the rs2::device::supports() call). Thanks for your support! |
|
相关推荐
3个回答
|
|
|
get_active_profile看起来会满足您的需求。
英特尔®实感™跨平台API:rs2 ::管道类参考 以上来自于谷歌翻译 以下为原文 get_active_profile looks like it would meet your needs. Intel® RealSense™ Cross Platform API: rs2::pipeline Class Reference |
|
|
|
|
|
谢谢! 即使它不完全符合我的需要,它也会有所帮助。 在开始流式传输之前,我一直在寻找访问该信息的方法。 相反,get_active_profile()只能在rs2 :: pipeline :: start()调用之后使用。 以上来自于谷歌翻译 以下为原文 Thanks! It can help even if it doesn't entirely fit my needs. I was searching for a way to access to that info before starting a streaming. get_active_profile(), instead, can only be used after a rs2::pipeline::start() call. |
|
|
|
|
|
也许使用在管道指令之前的配置类指令,比如Resolve。 英特尔®实感™跨平台API:rs2 :: config类参考 以上来自于谷歌翻译 以下为原文 Maybe use a config class instruction that precedes the pipeline instruction, like Resolve. Intel® RealSense™ Cross Platform API: rs2::config Class Reference |
|
|
|
|
只有小组成员才能发言,加入小组>>
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-12 04:41 , Processed in 0.880262 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
665