How to set exposure for IR Camera?


I use an Astra S (with the ROS-packages) and the camera has problems to detect dark objects. I tried to set the exposure of the IR-Camera. However, I cannot access the camera settings for the IR camera:

openni::CameraSettings* camera_setting = stream->getCameraSettings();

Does not give me the setting, so I’m not sure if the camera even accepts settings (“NULL if the stream doesn’t support camera settings.”)

Is there another way to deal with dark objects?

You need a custom version of the API as per Add ability to enable or disable IR emitter · Issue #25 · orbbec/astra · GitHub

It contains a direct set of magic values that allows setting IR exposure over libusb.

1 Like