-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Open multiple cameras at the same time #3437
Comments
I want to open D435i and T265 in the same program. |
There is an official example program in the SDK called 'Multicam'. https://github.com/IntelRealSense/librealsense/tree/master/examples/multicam This example was written a year before the release of the T265 though. As T265 does not have depth sensing, I am not sure what information from the T265 would be displayed in the application. If you are seeking some further sample scripts for accessing and controlling devices in a multi-camera setup, there are a number of sample scripts posted on the discussion linked to below (read downward from the point that is linked to). |
Hi @chunyang-zhang, You can also use the realsense-viewer app to open T265 and D435i. |
@MartyG-RealSense @RealSenseCustomerSupport thanks for your help. #2219(comment), I had tried the sample code , but it doesn't work. I plugged D435i and T265 into my computer, and run follow code: program 1
I got the message as follows: "terminate called after throwing an instance of 'rs2::error' so I pull out the T265, and run again: " synchronized frames from camera 843112073219 It works for D435I. I only plugged T265 into my computer and run the program again: "terminate called after throwing an instance of 'rs2::error' I tried to get the serial number of camera, I plugged D435i and T265 into my computer, and run follow program: program 2
I got the message: "camera is T265 ...done So, the program 2 can detect the camera correctly. I want to enable the devices D435i and T265 together, I use programe 3: program 3
the message: "terminate called after throwing an instance of 'rs2::error' but the phenomenon is the same as program 1, just D435i works. So I am confused, is there something wrong with my method of using the API ? |
Hi @chunyang-zhang, The realsense-viewer can stream both T265 and D435i. Did you use "Add Source" button on the top-left location of realsense-viewer? |
@RealSenseCustomerSupport , thanks, I use the "Add Source" button , it works! So I want to know what's wrong with my code, such as program 1, 2,3 , thanks! |
For D435i
it works fine, but for T265
failed output: |
This should be resolved in librealsense 2.19.2 or later version. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
@dorodnic, I have three cameras, one D435, one D435i and one T265. I want to open these cameras together by the APIs of SDK, does it wok? Is there any sample code(C++) for reference ?
The text was updated successfully, but these errors were encountered: