I am trying to connect to two T265 cameras. I used this example https://github.com/IntelRealSense/librealsense/issues/1735 and changed the config_x.enable_stream(...) lines to config_x.enable_stream(rs.stream.pose).
But then at line pipeline_1.start(config_1) it comes up with the fault RuntimeError: No device connected although both cameras are plugged in.
With one camera I run this code and it works:
pipe = rs.pipeline()
# Configure the pipeline
cfg = rs.config()
cfg.enable_stream(rs.stream.pose) # Positional data (translation, rotation, velocity etc)
# Start the configured pipeline
Thanks for your help :)
Ok, turns out if I address the cameras with their serial numbers and start the pipeline before I do the same with the second camera it works!
pipeline_1 = rs.pipeline()
config_1 = rs.config()
...from Camera 2
pipeline_2 = rs.pipeline()
config_2 = rs.config()
BUT I would like to be able to ask the serial numbers of the cameras first so I can check with the program if both are there or not and to not have to hard-code the serial numbers. Unfortunately though, when I work with the context managers to get the connected devices and their serial numbers it will come up with the fault above again...
Thank you for reaching out. To receive support for Intel RealSense cameras, please post your questions on https://support.intelrealsense.com/hc/en-us or open a ticket at https://support.intelrealsense.com/hc/en-us/requests/new.
Intel Customer Support Technician
A Contingent Worker at Intel