T265 crashes when used with D435 (Raspberry Pi, Ubuntu, Python)
Hi,
I am (trying to) use a the T265 and a D435 for a wheeled robotic project.
The code is written in Python (ver 2.7.15+) running on a Raspberry Pi 3+.
When i run the cameras using Real Sense Viewer al lis good.
When i run the code with one camera it works as expected.
But when i try to initialize both cameras at the same time the T265 crashes after a few seconds with this error message:
14:49:14.805 [1708] [E] Device-91A0: FW crashed - got error in interrupt endpoint thread function: status = -1 (LIBUSB_ERROR_IO), actual = 0
14:49:15.012 [1697] [E] Device-91A0: State [ACTIVE_STATE] got event [ON_ERROR] ==> [ERROR_STATE]
14:49:15.013 [1697] [E] Device-91A0: Entered state [ERROR_STATE]
Traceback (most recent call last):
File "camtest.py", line 30, in <module>
frames = pipeline_1.wait_for_frames()
RuntimeError: Frame didn't arrived within 5000
If i comment out the code related to one of the cameras the code works just fine, but with both cameras enabled the T265 code crash.
This is the code i run:
Any help appreciated!
-
As the Pi3 uses USB2, only pose data can be accessed and not fisheye (which needs USB3). As your T265 code only references pose though, there is not likely a problem with that.
Looking through the code, it looks as though the same pipeline - rs.pipeline() - is being started twice (once for each device). So once the pipeline is started once by one device, you are calling the pipeline to start again for the second device.
Below is a link to some Python code posted by a RealSense user using T265 and D435 together so you can compare it to your own code
https://github.com/IntelRealSense/librealsense/issues/3697#issuecomment-483089732
-
Unfortunately i get the same errors with the code in the example you linked to. Since i running it on a Pi 3B+ i will look into power and other USB-related issues. Next thing to try is to run the same code on my Mac.
----------------------------------------------------------------------------
Hi magnus,
Any luck trying to run the code sucessfully on MAC? I'm having a similar issue on another board called the Odroid which has two USB 3.0 ports
Please sign in to leave a comment.
Comments
5 comments