Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

[feature request] Open device by serial number #1275

Open
@UnaNancyOwen

Description

@UnaNancyOwen

Is your feature request related to a problem? Please describe.

In the RealSense SDK, It is able to retrieve information about connected devices without open device.
And, It is able to open specific device by serial number included in that queried device information.
It is very useful when open a specific device from among connected multiple devices.
Please consider adding that feature to Azure Kinect Sensor SDK too.

Describe the solution you'd like

k4a::device device;

try{
    // [Proposal] Add New API To Retrieve Serial Number From Connected Devices
    std::vector<std::string> serial_numbers = k4a::device::query();

    // [Proposal] Add Overload API To Open Device By Serial Number
    device = k4a::device::open( serial_numbers[0] );
}
catch( const k4a::error& error ){
    std::cerr << "device is not connected!" << std::endl;
}

Additional context

Reference Information:
https://intelrealsense.github.io/librealsense/doxygen/classrs2_1_1context.html#a0e0bfd3451cab5a32ab78f8037a4d793
https://intelrealsense.github.io/librealsense/doxygen/classrs2_1_1config.html#a6ca9f2b91b5ba50db87c95d6e1dd268c

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestHelp WantedThis issue is looking for someone to work on it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions