-
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
cannot stream depth, colour, gyro and accel all at once using the python3 wrapper #6031
Comments
I hope that the link below will be helpful to you. |
Issue 2945 is unrelated to my issue, I feel the SDK is broken not my code. I cannot stream IMU and video data at the same time in with python3, jetson nano running 18.04 and pyrealsense2 built from source using "jetsonhackers" script |
This is a regression. 2.31.0 had a problem streaming IMU with RGB and Depth. This was resolved in 2.32.1. I am now having the same issue with 2.33.1. I had this bug, see 5628, and upgraded to 2.32.1, which solved it (along with giving the IMU it's own pipeline, see below). I've just built a new car which is identical to the other car, but it is using 2.33.1 and it cannot stream IMU data along with RGB and DEPTH. If I try to stream all 3 then I will get a timeout trying to read from the pipeline. If I turn off streaming of IMU the I can reliable get RGB and Depth together. I can also stream IMU by itself. The other car running 2.32.1 works great streaming all 3 simultaneously. @BetterRobotics I found that a separate pipeline for IMU is required in anycase. You can see my code referenced in that bug; I found that is required is to give IMU it's own pipeline; RGB and depth can share a pipeline. I see in your code that all 3 share a pipeline; I don't think that can work. So I would use 2.32.1 and give the IMU it's own pipeline. Here is the final code that I have working with 2.32.1 https://github.com/autorope/donkeycar/blob/dev/donkeycar/parts/realsense435i.py |
@Ezward Thanks so much for your input and your code contribution! @BetterRobotics Does the advice and code kindly provided by Ezward help with your problem, please? |
@Ezward Thanks for your reply, I believe that your solution will bring the needed data, will try tomorrow EST time, and report back. @MartyG-RealSense this may solve my issue, but I feel that this should be better documented in an example. Happy to test functionality on my end. How ever given the information this should be set as BUG? from 2.32 - 2.33 - incongruity.| Cheers |
@BetterRobotics If you could please post a separate case explaining what you would like documented better then I can give it a 'Documentation' label so that it can be tracked. In the meantime, given that there is more than one report of potential issues with the IMU in the recent SDK versions, I will add the 'Bug' label to this particular case so it can be tracked and investigated. |
I can confirm that re-installing 2.32.1 on my Nvidia Jetson Nano fixed the issue of streaming rgb, depth and IMU simultaneously (using the code referenced in my previous comment). I have a colleague that had the identical issue and also resolved the issue by reverting back to 2.32.1. So it is pretty clear 2.33.1 has issues, at least in the python code. PS: we both used the JetsonHacks InstallRealsenseSDK project to build and deploy the code on the Jetson Nano, specifically the buildLibrealsense.sh script; https://github.com/jetsonhacks/installRealSenseSDK |
@MartyG-RealSense can confirm running solution with 2.32.1, using the blow code
Thanks to @Ezward for the info you were spot on. |
Thanks so much @BetterRobotics and @Ezward @BetterRobotics Is there anything else you need assistance with? |
@MartyG-RealSense I think there should still be a bug logged against 2.33.1 for this issue. What I describe is a workaround, not a fix. Most users will simply install the latest and find their software does not work. |
@Ezward okay thanks, this case will be left open with the "Bug" label for the RealSense team to consider. |
Hi! I'd like to join this talk, since I'm also using Jetson Nano, and I also need to stream depth and color (aligned) and IMU. I very satisfied with @Ezward explanation about IMU needs its own pipeline.
Thank you! |
@MartyG-RealSense No thanks, appreciate the help. @juliussin make sure have you got 2.32.1 also I found you needed to setup the IMU first, using the code I provided above I successfully read all three streams simultaneously using two pipelines, one for video and one for the IMU. |
@BetterRobotics Thank you for sharing your code! I've upgraded my SDK to 2.32.1, and I tried your code. However, I can't get the IMU data. It failed to read the IMU and showed |
Ok so it seems the code is not the issue, have you updated you firmware I'm running 05.12.03.00? What version? Does the IMU data stream in |
I've upgraded my firmware with recommended firmware option (which is 5.12.02.100) and yes, the IMU data streams in
I know using only 1 pipeline is not a good idea, but this is just for testing purpose (before I read this issue) and I can get the IMU data with this code (but failed to read IMU with the code you provided above). But now with extra bit of delay in depth and color stream. Did I do something wrong? |
@juliussin I'm not sure how the SDK is setup, unclear on multiple data sample rates in the same pipe, I let the pipe set defaults for the IMU, if it can that's great, try calibrating your IMU/device that might be a stand point. Also if you could try reverse the order as to which you setup the video and IMU pipe's, for some reason in my code It would give the |
This is interesting. I tried to calibrate my IMU with
is also got the same error if i do the video pipeline first, which gave me error:
should I open a new issue with this? |
@juliussin > should I open a new issue with this? I feel this is the same Issue with more details as to why it wouldn't stream but, may require a new tag for more attention, also, try updating to 05.12.03.00 and then calibrate and try again. |
Case closed due to potential solution being present in #6370 |
| Camera Model | D400 |
| Firmware Version | 05.12.03.00 |
| Operating System & Version | 18.04 |
| Kernel Version (Linux Only) | 4.9.140-tegra |
| Platform | jeston nano jetpack 4.3. |
| SDK Version | 2.33.1 |
| Language | python |
| Segment | Robot |
I am trying to gather the depth, colour, acc and gyro data from the d435i. but it's throwing a timeout error. I have read through the posts and cannot seem to find a solid answer on how it should be accomplished. any help would be greatly appreciated.
Here is my code, it's not actually trying to read the gyro data yet just setup the camera streams to run with each other but no luck.
This is the error I get when I leave
self.config.enable_stream(rs.stream.gyro)
uncommentedThe text was updated successfully, but these errors were encountered: