Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Connecting to two Realsense T265 cameras using Python.

BMull7
Beginner
626 Views

Hi!

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

  pipe.start(cfg)

 

Thanks for your help :)

0 Kudos
2 Replies
BMull7
Beginner
458 Views

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()

config_1.enable_device('+25122110510')

config_1.enable_stream(rs.stream.pose)

pipeline_1.start(config_1)

 

 

...from Camera 2

pipeline_2 = rs.pipeline()

config_2 = rs.config()

config_2.enable_device('929122110956')

config_2.enable_stream(rs.stream.pose)

pipeline_2.start(config_2)

 

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...

Any ideas?

 

Thanks!

RandallMan_B_Intel
458 Views

Hello BMull7,

 

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

  

Best regards, 

 

Randall B.  

Intel Customer Support Technician    

A Contingent Worker at Intel  

Reply