Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get frames from multiple D415 cameras with pyrealsense2 - no problems in realsense-viewer #9697

Closed
anthnyprschka opened this issue Aug 27, 2021 · 3 comments

Comments

@anthnyprschka
Copy link

anthnyprschka commented Aug 27, 2021


Required Info
Camera Model D415
Firmware Version 05.12.14.50
Operating System & Version Ubuntu 20
Platform PC
Language python

Issue Description

I am trying to view frames from multiple D415 cameras using a script provided in #1735.

But the script fails with the following error:

Traceback (most recent call last):
  File "test_multiple_rs.py", line 44, in <module>
    frames_2 = pipeline_2.wait_for_frames()
RuntimeError: Frame didn't arrive within 5000

Viewing the cameras in realsense-viewer simultaneously works.

This problem happens on Ubuntu as well as macOS.

Update: Could have sth to do with the cams being connected thru USB 2.0 repeater cables, cuz seems to work if cams are connected with the USB cables that were shipped with the cams.

Update: pipeline_2.wait_for_frames(10000) seems to fix it

@anthnyprschka anthnyprschka changed the title Cannot get frames from multiple D415 with pyrealsense2 - no problems in realsense-viewer Cannot get frames from multiple D415 cameras with pyrealsense2 - no problems in realsense-viewer Aug 27, 2021
@MartyG-RealSense
Copy link
Collaborator

Hi @anthnyprschka It is excellent to hear that you found a fix that seems to have resolved your problem.

You may also be interested in the Python multiple camera project in the link below that was created by a RealSense user

https://github.com/ivomarvan/samples_and_experiments/tree/master/Multiple_realsense_cameras

I would also recommend not exceeding a maximum distance of 20 meters with active repeater extension cables, and using the official 1 meter cable supplied with the camera when performing firmware updates instead of doing so with an active repeater cable.

If you need to extend to longer distances (up to 100 meters) then ethernet networking cabling is recommendable, or fiber optic cable like the solution provided by the company Newnex (see the links below).

https://www.newnex.com/realsense-3d-camera-connectivity.php
https://youtube.com/watch?v=GLQgR1jT04M

@MartyG-RealSense
Copy link
Collaborator

Hi @anthnyprschka Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants