-
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
L515 - C#: Advanced Mode not Supported #7182
Comments
Hi @siwidmer |
Hi @siwidmer, In C++ with L515 you may load the json with See C++ class hierarchy here. // C++ example (not C#)
rs2::pipeline_profile profile = pipe.get_active_profile();
if(!json.empty())
{
cout << "loading settings from json:" << endl << json << endl;
auto serializable = profile.get_device().as<rs2::serializable_device>();
serializable.load_json(json);
} Have a look if it would be possible from your C# framework. |
Thank you @bmegli for your hint! I investigated the C#-wrapper. Unfortunately, I didn't find any methode integrating your C++ fonctionality. |
@dorodnic: Thank you for pointing this out. Then I'll set all values explicity. |
Hi @siwidmer Is anything further needed on this thread? *If we don’t hear from you in 7 days, this issue will be closed. |
Hello,
I'm integrating a L515 into our C# Framework. I'd like to import a JSON File I created in the 'Intel RealSense Viewer'.
`var pipe = new Pipeline();
PipelineProfile pipelineProfile = pipe.Start(_config);
var advancedDev = AdvancedDevice.FromDevice(pipelineProfile.Device);
if (advancedDev.AdvancedModeEnabled)
{
advancedDev.JsonConfiguration = System.IO.File.ReadAllText("Settings.json");
}
`
This code exits always with an exception saying: "The Device does not support advanced mode". Is there a property to enable the advanced mode? In the viewer exporting and importing settings files are working neatly. Is there an issue with the C# implementation?
The text was updated successfully, but these errors were encountered: