Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
198 Views

Connecting to two Realsense T265 cameras using Python.

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
Beginner
30 Views

Re: Connecting to two Realsense T265 cameras using Python.

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!

0 Kudos
Highlighted
30 Views

Re: Connecting to two Realsense T265 cameras using Python.

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  

0 Kudos