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

Enable sensors to override scene attributes #2462

Open
athenaz2 opened this issue Jul 1, 2024 · 0 comments
Open

Enable sensors to override scene attributes #2462

athenaz2 opened this issue Jul 1, 2024 · 0 comments
Labels
bug Something isn't working help wanted We accept pull requests!

Comments

@athenaz2
Copy link
Contributor

athenaz2 commented Jul 1, 2024

Environment

  • OS Version: Ubuntu 22.04
  • Source or binary build? Source build of Gazebo Harmonic

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.

  • Expected behavior: The attributes (e.g., background_color and ambient_light values) in MinimalScene are used for GUI. The attributes (e.g., background and ambient values) in <scene> are used for sensors.
  • Actual behavior: Currently, <scene>'s background and ambient values override MinimalScene's respective values; <scene>'s values are used for the GUI instead of MinimalScene's.

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

@athenaz2 athenaz2 added the bug Something isn't working label Jul 1, 2024
@azeey azeey moved this from Inbox to To do in Core development Jul 22, 2024
@azeey azeey added the help wanted We accept pull requests! label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted We accept pull requests!
Projects
Status: To do
Development

No branches or pull requests

2 participants