-
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
D435i cannot stream imu, rgb and depth simultaneousely #5628
Comments
Thanks for your work on DonkeyCar and support of RealSense! I hope you can find something helpful in the lengthy discussion linked to below, which is also about timeouts during multi-streaming with D435i and Python. An Intel RealSense team member on this forum provides some Pyrealsense2 scripting in the discussion for accessing multiple stream types (color, depth, IR, accel and gyro). |
Thank you for the references. Not sure if those references discuss this; I refactored the prior code to the imu in it's own pipeline. Now the problem in intermittent (using the default 5 second wait). Note that once it starts, there is no problem; it seems to only be an issue on the first frame, although I have not done conclusive testing. Here is the updated code where the bug is now intermittent.
|
I found when I cranked the frame wait time to 100ms for frames after the first frame that is worked well (if it started, which it mostly did), but if I moved the mouse there was a decent chance of it timing out. If it did not move the mouse, all was well. I'm asking for 30 frames per second for image and depth, 63 for accel and 200 for gyro; I'm getting good frame rates. The mouse driver might suck, but it's probably worth noting. |
I'm pleased you achieved improvement in performance. I have not heard before of Librealsense problems relating to moving the mouse though. If you are using auto-exposure, it is good practice to skip the first several frames to give the auto-exposure value time to settle. |
This was my ffinal code. It may still timeout when the camera is first turned on, but seems to be stable after that.
|
Thanks so much for sharing your script with the RealSense community! |
Here is a link to the final script in the donkeycar github, https://github.com/autorope/donkeycar/blob/dev/donkeycar/parts/realsense435i.py |
@Ezward Thank you so much , your script works well for me I have been trapped in the problem of 'wait for frames' error and your script just works perfectly , I will try this on my raspberry pi4 devices . |
Hi, I'm not completely sure this is the place to write but I'm facing some problems when working with the I've not tried to implement it in C++ but for faster development I'd like to be able to control the camera with the Python wrapper. Thank you all! |
If changed the code from python to c++ will it work correctly? |
Hi @tugbakara I recall that another RealSense user tried it with C++ instead of Python in the past and did not find the performance satisfactory. For C++ the recommendation is typically to use callbacks instead of two separate pipelines to access depth, color and IMU, like the RealSense SDK's rs-callback C++ example at the link below. |
Thanks Marty, have a nice day! 😄 |
Is there a solution in Python to stream IMU data along with depth and color? Or is it still necessary to create a separate pipeline (using the D455 here)? |
@jrecasens The script multiple_realsense_cameras.py at the link below may be worth trying, as it can display the IMU data as text values in a table alongside the RGB and depth stream images. It should work with only one camera attached. https://github.com/ivomarvan/samples_and_experiments/tree/master/Multiple_realsense_cameras |
Issue Description
D435i cannot stream imu, rgb and depth simultaneously
Using this code below, if enable_imu, enable_rgb and enable_depth are all True then wait_for_frames() will timeout. Enable any two and it works. I've tried a 10 second timeout and it still times out.
If this is a hardware issue, please let me know what the work around would be. I'm a committer on the DonkeyCar autonomous RC framework and I'm writing a part to make the D435i work with DonkeyCar. I need all three streams.
The text was updated successfully, but these errors were encountered: