Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discovery of not supported devices via query_devices() #1580

Closed
fwindolf opened this issue Apr 19, 2018 · 4 comments
Closed

Discovery of not supported devices via query_devices() #1580

fwindolf opened this issue Apr 19, 2018 · 4 comments

Comments

@fwindolf
Copy link

Required Info
Camera Model D400
Operating System & Version Ubuntu 16.04
Kernel Version (Linux Only) 4.13.0-38
Platform PC
SDK Version 2

Issue Description

I am experimenting with two cameras plugged in at the same time, one Asus Xtion2 and one D435.

// Discover devices
rs2::context ctx;
auto deviceList = ctx.query_devices();

for (auto device : deviceList)
{
    // Find out device name
    std::string name = "Unknown Device";
    if (device.supports(RS2_CAMERA_INFO_NAME))
        name = device.get_info(RS2_CAMERA_INFO_NAME);

    std::cout << "Discovered device: " << name << std::endl;
}

Next to the discovered RealSense, the library first discovers the RealSense as "Intel RealSense 435" and then seems to discover the Xtion2 as "Platform Camera" twice. When reading their name to weed out the devices not accessible with librealsense, each device access taking about 5-10 seconds.

@dorodnic
Copy link
Contributor

Hi @fwindolf
You can use librealsense to stream data from regular web-cams.
We might add a flag to query_devices to control this behavior. In the meantime you can disable unwanted behavior by commenting out context.cpp:336-337

@fwindolf
Copy link
Author

Thanks @dorodnic for the quick reply.
I commented out the said lines and it works like a charm!

@RealSense-Customer-Engineering
Copy link
Collaborator

[Realsense Customer Engineering Team Comment]
hi @fwindolf,

do you need more support on this topic?
thanks.

@RealSense-Customer-Engineering
Copy link
Collaborator

[Realsense Customer Engineering Team Comment]
let me close this issue here, please feel free to open new ticket if any question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants