Set SDK Root/Resource Directory

Hi folks,

I’m integrating the SDK into my toolchain, using zed_sdk.run --noexec --noprogress --nox11 --chown --target my_install_dir it was easy enough to install it to particular directory. Everything builds just fine using that, but when running my program fails complaining that it can’t download the calibration files/models/etc. to /usr/local/zed instead of using my_install_dir. /usr/local/zed doesn’t exist and would need root permission to create.

How do I change the directories it uses for the SDK during runtime? Or at least the resource directories for calibration files/optimized models? I looked all through the docs/Camera.hpp and didn’t see anything so any help would be appreciated.

Thanks!

In short, you currently can’t for AI models. This will be configurable in the future

For calibration files, you can set it in the InitParameters::optional_settings_path
https://www.stereolabs.com/docs/api/structsl_1_1InitParameters.html#aa8262e36d2d4872410f982a735b92294