Skip to content

How to find devices with motion sensors (IMU)? #2899

@UnaNancyOwen

Description

@UnaNancyOwen
Required Info
Camera Model D400
SDK Version 2.17.0
Language C++

Issue Description

Do you know how to find devices with motion sensors (IMU)?
For example case, I want to query only D435i devices.
I think it is able to do that, but it require to write a many lines code (about 10-15 lines). I want more easy way.
If there is no easy way to do that, I suggest adding a mask to rs2::context::query_devices().

// I wish I want do it like this. What do you think?
rs2::context;
const rs2::device_list device_list = context.query_devices( RS2_PRODUCT_LINE_D400 | RS2_HAVE_IMU ); // return d435i devices

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions