-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Hpatel/feat/texture randomization #1705
base: feature/texture-randomization
Are you sure you want to change the base?
Hpatel/feat/texture randomization #1705
Conversation
|
||
# check to make sure replicate_physics is set to False, else raise warning | ||
if replicate_physics: | ||
raise Warning("replicate_physics is set to True, meaning all environments will have same textures applied.") |
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.
This is never desired. You should throw a runtime error and tell the user to set this parameter as false in the InteractiveSceneCfg
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.
Do you mean we should change this to an error just in here? Or do you mean we should move the error to within the InteractiveSceneCfg?
@@ -233,6 +236,7 @@ def __call__( | |||
env_ids: torch.Tensor, | |||
event_name: str, | |||
asset_cfg: SceneEntityCfg, | |||
replicate_physics: bool, |
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.
Why is this parsed here? You should get it from the scene, right?
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.
fixed, now referenced directly from the scene
) | ||
|
||
|
||
def main(): |
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.
This isn't a unit test. We should do it properly to check that texture is applied on the prim (besides visual inspection)?
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.
The initial idea was to check the textures being applied changed on reset for the prims in the scene, however I was unable to find a way to directly access the albedo map information for each prim. If you have a way to access this information or a different approach I can convert this into a unit test.
Description
Added a visual test of the texture randomization functionality working
Type of change
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there