-
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
starting and stopping streams independently in runtime #1984
Comments
[Realsense Customer Engineering Team Comment]
|
Nice example. thanks! |
In the example code here the different streams (Depth, Color) are stopped and started at runtime. But my tests using the tool usbtop show that the traffic stays unchanged ( about 40 / 20.000 kb/s to / from device ). |
Hi @wernerdd The script starts the Depth and Color sensors.
It only stops the Depth sensor though, indicating that the color sensor is still active and likely continuing to transmit data through the USB after that Depth sensor stop instruction.
|
Thanks for the info. So it was a miss understanding of me. Not the sensor stream in the cam is stopped and started it is just regarding the local internal stream and its displaying. |
If your goal was - like in the linked discussion - to only capture when a trigger signal is received, then external triggering could do that for the depth stream but not for the color stream. Instead of using hardware sync, an alternative solution may be a C++ script at #2219 (comment) that captures a .png image simultaneously from all attached cameras when the script is run. |
BTW: By just switching the SDK Version from 2.54.1 to 2.54.2 and according librealsense the needed processor load of my UP2/iNUC is reduced drastic. ( With SDK 2.54.1 it is about 40% of one CPU all the time, with SDK 2.54.2 goes down to about 4% and 15% while triggering and getting an image via USB-IF only ( 4xD415-Cam connected and running at the same time). This is to see independent of the used D415-Cam FW ( 5.14.0.0 or 5.15.1.0) ). |
Thanks very much @wernerdd for sharing your experience of processor load reduction with the 2.54.2 SDK version! |
Looking for a good way to start and stop different streams in runtime (after pipeline started). In examples the configuration is filled once before starting the pipeline and then just waiting for frames. Does it means I should create different pipeline for each stream; or completely restart/reconfigure the shared pipeline in case something changed?
The text was updated successfully, but these errors were encountered: