Robotics StackExchange | Archived questions

Gazebo ground and models dark

Hello,

currently I am trying to get a few "renderings"/screenshots in Gazebo. Problem is, that everything is completely dark. See screenshot:

image description

I am using Gazebo 9.0 on ROS Melodic. Also I read this has to do with different graphics cards. I think I got a RX580 in my PC. The dark back ground also appears on my Surface Pro 6 i5.

I can get light by placing some of the three in the toolbar on top, but when I can get enough light, the model of the robot is also very bright and nearly no contrast can be seen.

Anybody knows a solution to this problem? Also, what are some good ways of getting a good (rendering like) picture from Gazebo?

Thanks in advance and have a nice day, Heenne

Asked by Heenne on 2020-05-11 07:10:34 UTC

Comments

Maybe posting the SDF/URDF of your robot would help? Could be something to do with the material settings.

Asked by rrklutz on 2020-05-13 00:11:44 UTC

Maybe setting the shadows tag in scene to zero? This makes your world brighter.

<scene>
  <ambient>0.4 0.4 0.4 1</ambient>
  <background>0.7 0.7 0.7 1</background>
  <shadows>0</shadows>
</scene>

Asked by student_Ros_melodic_mobile_manipulator on 2020-05-15 01:47:58 UTC

Answers

I have an onboard Intel GPU and have the same problem. Setting Scene -> shadows to False is a workaround.

On another machine with software rendering (X11 forwarding) this problem does not happen.

Asked by leuko on 2022-02-08 15:53:57 UTC

Comments