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

fix: configuration refactor #24

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

pijaro
Copy link

@pijaro pijaro commented Mar 20, 2024

Related issue

Description

This PR implements an easily accessible and convenient place to set all cross-manager configurations: Assets/AWSIM/Scripts/Loader/SimConfiguration.cs.

Minimal steps to add new param:

  1. Add param to AWSIMConfiguration.cs file
  2. Handle the parameter in SimConfiguration.cs
  3. (optional) Create GUI in desired manager and set the value in Loader::LoadConfigFromGUI()

An example param is also added: a "useShadow" switch for turning shadows on/off. See this exact commit for details, on how it is done in practice (check the c# files).

Finally, fixed the camera GUI not showing up when pressing "C".

Tests performed

Some manual runs.

Not applicable.

Effects on system behavior

Improves the readability of the code, and makes it easier to configure simulation and add new configuration options.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

pijaro added 2 commits March 20, 2024 15:16
Signed-off-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
Signed-off-by: Piotr Jaroszek <piotr.jaroszek@robotec.ai>
@Aysenayilmaz
Copy link
Collaborator

I've tested it and i cant see any problem.

https://youtu.be/DdQdY2sM7e4

@Aysenayilmaz Aysenayilmaz self-requested a review March 28, 2024 11:04
@xmfcx xmfcx merged commit 6a42a1f into autowarefoundation:main Mar 28, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants