-
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
Stream IMU through callback (push) and cameras through wait_for_frames() (pull) #6404
Comments
Hi @rafaelspring I don't have an L515 yet to run tests with. I wonder if the link below may provide some useful guidance as a starting-point for discussion though: |
@rafaelspring , please post the pipelines configuration code for review. |
@ev-mp I'm working on a minimal example reproducing the issue. Will share this shortly. |
Actually the reason for using a pull-based mechanism through If, however, Please let me know. |
I would like to have 3 streams: Depth, Color and IMU. I'd like to receive Depth and Color through the standard pull-based mechanism (pipeline.wait_for_frames()) and I would like to receive IMU data through a push-mechanism (callback).
If I use two pipelines (one for depth/color and one for IMU) that approach works on the L515, but not on the D435i (I get an exception when I call
config.resolve(imu_pipe);
. But even on the L515 starting and stopping the streams takes much longer when the IMU is involved than without (stopping the IMU takes about 15 seconds on my i7).Is there a way to stream IMU through a callback without using a second pipeline?
What's a way that works efficiently and works on all RS cameras with a motion module?
The text was updated successfully, but these errors were encountered: