gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
621 stars 251 forks source link

Enable sensors to override scene attributes #2462

Open athenaz2 opened 6 days ago

athenaz2 commented 6 days ago

Environment

Description

An updated issue of #910. The goals is to enable sensors to override <scene> attributes (such as background color and ambient light values); a proposed solution is to create a boolean tag in <plugin filename="MinimalScene" name="3D View"> that explicitly overrides <scene> attributes.

Steps to reproduce

sensors_demo.sdf.txt

  1. Run the attached SDF file (which is sensors_demo.sdf with a <scene> tag added).
  2. Note that <scene>'s background value is green, and both the GUI and sensor backgrounds are green. MinimalScene's background_color value, which is light grey, is not used for GUI.

Output

Image