Realsense-ros: Auto exposure not working in r200 cameras

Created on 18 Oct 2016  路  6Comments  路  Source: IntelRealSense/realsense-ros

System Configuration

| Version | Your Configuration |
| :-- | :-- |
| Operating System | Ubuntu 16.04 |
| Kernel | 4.4.0-38 |
| Backend | v4l |
| ROS | kinetic |
| ROS RealSense | 1.5.0 |
| librealsense | 1.11.0 |
| Camera Type-Firmware | r200-1.0.72.06 |


Expected Behavior

When setting auto_exposure to 1, the camera should adjust the exposure value so that the image is well exposed (avoid under/over exposure). Ideally, getting rid of holes due to too much IR reflections.

Actual Behavior

Enabling the auto_exposure value does not change the exposure setting of the camera.

Steps to Reproduce

To produce and under exposed image: Set auto exposure to 0, and manually adjust the exposure value to 50, you should see a dull IR image. Then re-enable auto_exposure, like in the picture:
auto_expo_1_gain_50

To produce and over exposed image: Set auto exposure to 0, and manually adjust the exposure value to 164, you should see a very bright IR image. Then re-enable auto_exposure:
auto_ex_1_expo_164

If I understand auto_exposure correctly, whenever it is active, it should adjust the exposure to whatever is the best value at that moment, so the previously, manually set values, should have no effect when re enabling auto_exposure.

For the pictures in the issue, the camera is facing a wall, at a distance between 80 to 90cm.

bug

Most helpful comment

Hi @tulku ,

Yes we are able to reproduce it. We will work on fixing this issue and will notify once it is fixed.
Thank you for filling an issue!

All 6 comments

Hi @tulku ,

Yes we are able to reproduce it. We will work on fixing this issue and will notify once it is fixed.
Thank you for filling an issue!

I can reproduce the same issue with an LR200. The r200_lr_auto_exposure_enabled setting doesn't seem to have any effect.

| Version | Your Configuration |
|:--------------------- |:---------------------|
| Operating System | Ubuntu 14.04.5 LTS |
| Kernel | 4.4.0-040400-generic |
| ROS | indigo |
| ROS RealSense | 1.5.0 |
| librealsense | 1.11.0 |
| Camera Type-Firmware | LR200-2.0.71.24 |

I tested this again with a downgraded firmware to see if it solved the problem:

  • os: Ubuntu 16.04
  • librealsense: 1.11.1
  • realsense-camera: 1.6.0
  • camera type - firmware: r200-1.0.72.04

But autoexposure is still not working.

Hi,
Is this still an issue in the 1.9.7. release? Or does auto exposure work in a more recent release?

Figured it out myself: setting the option rs::option::r200_lr_auto_exposure_enabled does the job.
os: Win10, librealsense 1.9.7., camera: R200

@pfuersattel @rjingar This still does not seem to work with the latest release. Any guidance on when this might be addressed would be much appreciated - without auto-exposure it's hard to use the camera reliably in a variety of lighting conditions.

Resolved in release 1.8.0
Available now by pulling tag 1.8.0 and building from sources.
Released to ROS Build Farm. Available in Shadow Repository once PR 14443 for Indigo and PR 14444 for Kinetic are merged.
Public ROS repository packages available after next sync (1-3 weeks) by OSRF.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SSusantAchary picture SSusantAchary  路  6Comments

whyou5945 picture whyou5945  路  4Comments

PerrineAguiar picture PerrineAguiar  路  4Comments

jattiogbe picture jattiogbe  路  3Comments

impet14 picture impet14  路  4Comments