Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect illumination in camera sensor images #2584

Open
osrf-migration opened this issue Jan 15, 2019 · 2 comments
Open

Incorrect illumination in camera sensor images #2584

osrf-migration opened this issue Jan 15, 2019 · 2 comments
Labels
9 Gazebo 9 bug Something isn't working major plugins

Comments

@osrf-migration
Copy link

Original report (archived issue) by Christian Rauch (Bitbucket: christian-rauch).

The original report had attachments: camera_lighting_problem.world


In a minimal example world with a camera and a depth sensor (see attached world file), the colour images have wrong illumination:
gazebo_camera_illumination_problem.png

While the visualised image (the one in the camera frustum) has the correct colours, the published images are missing the correct illumination. E.g. they are missing shadows and the colours are less vivid.

If always_on is disabled for the depth sensor, it sometimes seem to work.

@osrf-migration
Copy link
Author

Original comment by Christian Rauch (Bitbucket: christian-rauch).


The order in which both cameras are added seems to matter.
If you load a scene without cameras and add the cameras manually via Gazebo's GUI, you get different results depending on the order:

  • If Depth Camera gets added fist and Camera second, you get wrongly illuminated colour images.

  • If Camera gets added fist and Depth Camera second, the correct illuminated colour images are shown.

@osrf-migration
Copy link
Author

Original comment by Manuel Muehlig (Bitbucket: Manuel Muehlig).


I have the same issue in our setting: A color camera (libgazebo_ros_camera.so) and depth camera (libgazebo_ros_openni_kinect.so).

Upon startup, the point cloud generated by the depth camera and the color image generated by the color camera are missing shadows and are too dark.

There seems to be some kind of race condition, since toggeling the “Enable shadows” button in the GUI (under Scene) multiple times fixes the issue for the running session.

Everything works fine, if the depth camera is not included in the URDF. I guess it somehow messes with the global rendering parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9 Gazebo 9 bug Something isn't working major plugins
Projects
None yet
Development

No branches or pull requests

1 participant