camera lighting problem on heightmaps due to race condition with laser
There seems to be a race condition that causes problems with rendering of diffuse light on heightmaps with the camera sensor. When a laser sensor gets subscribed to before the camera sensor then lighting on heightmaps induced by diffuse light sources seems to be disabled in the camera sensor and only ambient light is rendered. Adding and removing light sources then seems to toggle rendering of diffuse light on/off, however this behaviour is non-deterministic, e.g. sometimes removing a previously added light source disables rendering of diffuse light and sometimes it doesn't.
Here a video illustrating the bug using the current head of gazebo_1.8 and drcsim_2.6: http://www.youtube.com/watch?v=h71wf0hd3gc