-
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
What's the recommended way to clear advanced mode on a D415? #1069
Comments
Hi @jallard-sr , |
Hi @jallard-sr auto dev = context().query_devices().front();
auto adv = dev.as<rs400::advanced_mode>();
adv.toggle_advanced_mode(false);
adv.hardware_reset(); // I am not sure if the previous command will do this |
@jallard-sr, regarding the code-snippet provided by @dorodnic, there is no need to do hardware reset (adv.hardware_reset()) after setting the advanced-mode to false because it's already done by toggle_advanced_mode(...) function. |
@icarpis When my application starts up, it is my intent to reset the camera controls, streaming, etc, to all of their defaults. Of course I want to retain the calibration and tuning for the device, but other than that I want to always start the camera like it just came out of the box. This way I can ensure that the camera is set up the way this particular application requires, and not be in a state that was useful to the last application. The code snippet from @dorodnic was what I was looking for, though I have added a call to What your comment brings up is the question of whether there is other state, beyond advanced mode, that I may need to reset to ensure the camera is in a default state. I'm guessing that The broader questions I should have asked first are the following: Is there is a method that can tell me if the camera is already in its default settings, and are there methods beyond |
There is no camera state that |
One notable exception might be RGB controls - if I recall correctly, they persist between power-cycles. |
I'm closing this issue. please raise any questions or new issues if you will have any further questions. |
I've read that advanced mode is sticky in the D415, and will persist on the device once enabled. I was experimenting in realsense-viewer with depth detection thresholds, and now rs-enumerate reports "Advanced Mode: YES", even after power cycling the device, as advertised.
I want to go back to experimenting with streaming in the default mode. The rs2::device::hardware_reset() method looked like it might do the trick.
What's the recommended way to clear advanced mode? And is there any harm in clearing it every time I start up?
Cheers,
Jim
The text was updated successfully, but these errors were encountered: