Skip to content

T265 ability to open pipeline using serial number #5614

@orshefi

Description

@orshefi

Hi Guys,

I'm testing #5213 to see rather all functionalities previously used by my system remains.
So far I found out that I can no longer open T265 device by serial number with enable_device api.

Here is a simple init function to check which devices & their serial number are connected, and try to open them with pipe API.

rs2::context ctx;
    auto devices = ctx.query_devices();
    for(auto dev : devices){
        std::cout << dev.get_info(RS2_CAMERA_INFO_NAME) << std::endl;
        std::cout << dev.get_info(RS2_CAMERA_INFO_SERIAL_NUMBER) << std::endl;
    }
    // Declare RealSense pipeline, encapsulating the actual device and sensors
    rs2::pipeline pipe;
    // Create a configuration for configuring the pipeline with a non default profile
    rs2::config cfg;
    // Add pose stream
    cfg.enable_stream(RS2_STREAM_POSE, RS2_FORMAT_6DOF);
    std::string serial = "0000909212111581";
    cfg.enable_device(serial);
    // Start pipeline with chosen configuration
    pipe.start(cfg);

Here is the output:

Intel RealSense T265
0000909212111581
RealSense error calling rs2_pipeline_start_with_config(pipe:0x186a580, config:0x185b600):
    No device connected

As you can see:

  1. Serial number is padded with zeros - new behavior, I'm using a certain convention in my config file that is broken according to this change. (I had also tried without the padding to open the device serial - 909212111581)
  2. Device is enumerated but not opened with the serial number listed
  3. I also run rs-pose example and the camera was able to open and stream data with pipe API (just without the enable device API).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions