-
Notifications
You must be signed in to change notification settings - Fork 932
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
Adds a validity check for configclasses #1214
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, ooi did you ever consider to use pydantic for this? It could probably do many things out of the box but may not be flexible enough for some very advanced use cases.
source/extensions/omni.isaac.lab/omni/isaac/lab/utils/configclass.py
Outdated
Show resolved
Hide resolved
source/extensions/omni.isaac.lab/omni/isaac/lab/utils/configclass.py
Outdated
Show resolved
Hide resolved
…ass.py Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com> Signed-off-by: David Hoeller <dhoeller@nvidia.com>
…ass.py Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com> Signed-off-by: David Hoeller <dhoeller@nvidia.com>
source/extensions/omni.isaac.lab/omni/isaac/lab/utils/configclass.py
Outdated
Show resolved
Hide resolved
…ass.py Signed-off-by: David Hoeller <dhoeller@nvidia.com>
source/extensions/omni.isaac.lab/test/utils/test_configclass.py
Outdated
Show resolved
Hide resolved
Signed-off-by: David Hoeller <dhoeller@nvidia.com>
source/extensions/omni.isaac.lab/omni/isaac/lab/terrains/terrain_importer_cfg.py
Outdated
Show resolved
Hide resolved
…in_importer_cfg.py Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com> Signed-off-by: David Hoeller <dhoeller@nvidia.com>
source/extensions/omni.isaac.lab/omni/isaac/lab/terrains/terrain_generator_cfg.py
Outdated
Show resolved
Hide resolved
…nds/velocity_command.py Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com> Signed-off-by: David Hoeller <dhoeller@nvidia.com>
…nds/velocity_command.py Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com> Signed-off-by: David Hoeller <dhoeller@nvidia.com>
…dity' into feature/check_configclass_validity
source/extensions/omni.isaac.lab/omni/isaac/lab/sensors/ray_caster/ray_caster.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine. A huge MR but the changes just had to be rolled out everywhere so it's okay (not ideal though).
only concern left is ray-caster change. Would be great to isolate these changes because they can't be "clubbed" into other changes...
Co-authored-by: Mayank Mittal <12863862+Mayankm96@users.noreply.github.com> Signed-off-by: David Hoeller <dhoeller@nvidia.com>
# Description Added a mechanism to check for the validity of a configclass object. A configclass object is valid if it contains no MISSING attributes. ## Type of change - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there
Description
Added a mechanism to check for the validity of a configclass object.
A configclass object is valid if it contains no MISSING attributes.
Type of change
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there