How to get/set Euclid's depth camera parameters for gain and exposure?
Intel Euclid (ZR300 variant? but librealsense things it is called an LR200 with dev.get_name()) 2.0.71.09 Linux Ubuntu 16.04, shipped default with Euclid kernel is 4.4.0-9018-euclid
I would like to adjust the depth camera options/settings on the Euclid, like I have done before with the R200 (but that was with the Windows realsense SDK API) and like the SR300 can do as well from what I see in the librealsense code.
Firstly, why does the ZR300 think it's an LR200?
Second, what API calls are needed for me to get/set the euclid's depth stream parameters? I'm trying to optimise it so it can see closer objects, right now it appears to auto-gain so it sees the background more than the things i'm interested in.
Anybody know the expected minimum range on these as well? I thought it was 0.6m but I have to be about 1.0 to 1.1m away from an object to see it fully in the depth stream (and even then it can be patchy).
thanks for any help.
The minimum range depends on the resolution. QVGA can be used to get the minimum depth distance. Remember ZR300 includes LR200 and the motion module. For depth image, please refer to below example code (based on this librealsense library) to set the gain and exposure for different user scenarios.
_rs_camera = _rs_ctx.get_device(0);
if (_rs_camera->supports_option(rs::option::r200_lr_gain))
{
int value = 100;
std::cout << "Setting IR gain to " << value << std::endl;
_rs_camera->set_option(rs::option::r200_lr_gain, value);
}
if (_rs_camera->supports_option(rs::option::r200_lr_exposure))
{
int value = 70;
std::cout << "Setting IR exposure to " << value << std::endl;
_rs_camera->set_option(rs::option::r200_lr_exposure, value);
}
Hi @freemanlo , thanks for the response.
I managed to find the _rs_camera->set_option() function with the "r200_lr_gain" works for the Euclid's camera. Very unintuitive - surely there can be a generic 'set gain' option and the model number or device info is passed or available as private members of the class that calls it, to handle the naming properly. The fact there are specially named parameters for R200 and SR300 and whatever, threw me off. Also, I found out by testing that the Euclid's autoexposure modes and exposure settings are not supported options, unfortunately.
For now, i'd say this issue can be closed. I am now able to successfully image objects at 0.6m away by only changing the default gain of 400 down to 100 (by experimentation).