Items with no label
3335 Discussions

Using rs2::config in RS2

MAbdo2
New Contributor I
1,625 Views

I wish to configure the RealSense device, and then save the configuration into a file. Then, at a later time, I would like to use this configuration file to start the pipe. My understanding is that I can load the configuration file using config.enable_device_from_file. Am I on the right path? If not, please suggest the correct way of doing this.

Thanks,

Mo

0 Kudos
1 Reply
MartyG
Honored Contributor III
422 Views

You can use the Advanced Mode controls in the RealSense Viewer software to create a customized 'Visual Preset' for future use.

https://github.com/IntelRealSense/librealsense/wiki/D400-Series-Visual-Presets D400 Series Visual Presets · IntelRealSense/librealsense Wiki · GitHub

If you need to do this in scripting, the page linked to below shows how to write the Advanced Mode values to a file called a JSON and then load the data back in.

https://github.com/IntelRealSense/librealsense/blob/master/doc/rs400/rs400_advanced_mode.md librealsense/rs400_advanced_mode.md at master · IntelRealSense/librealsense · GitHub

0 Kudos
Reply