Repository navigation
Adds USD-level randomization mode to event manager - #2040
Conversation
jsmith-bdai
left a comment
There was a problem hiding this comment.
LGTM! I feel like mode = 'usd' could be named a little better for ease of understanding, e.g. 'pre-play', or 'pre-start', but this is definitely not a blocker / big deal.
Thanks!
|
How do we want to handle the other PRs that were previously on top of #1165? We can change them to point to this branch? Or are they now out-of-date? |
Co-authored-by: James Smith <[email protected]> Signed-off-by: Mayank Mittal <[email protected]>
|
@jsmith-bdai Other MRs will have to rebase themselves on top of this branch |
|
@Mayankm96 Thanks for this update! Had a quick question: in the prior implementation in #1165 there was the attempt to add a randomize_shape_color function in events.py is that still in the pipeline? I have tried adding this myself in the following way: but I get the following error when using this event in my manager based environment: I have double checked if the prim paths exist. And for clarification I am using this like this: The wall object is defined like this: Thanks is advance! |
# Description To support creation of managers before the simulation starts playing (as needed by the event manager for USD randomizations), the MR in #2040 added a callback to resolve scene entities at runtime. However, certain class-based manager terms can also not be initialized if the simulation is not playing. Those terms may often rely on parameters that are only available once simulation plays (for instance, joint position limits). This MR moves the initializations of class-based manager terms to the callback too. Fixes #2136 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] 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 - [ ] 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 --------- Co-authored-by: Kelly Guo <[email protected]>
# Description Certain scene-level randomizations (such as randomizing the scale) must happen before the simulation starts playing. To this end, the MR adds a new event mode called "prestartup," which gets called right after the scene design is complete and before the simulation is played. Since the scene entities cannot be resolved before the simulation starts playing (as we currently rely on PhysX to provide us with the joint/body ordering), the MR adds a callback to resolve the scene entity configurations separately once the simulation plays. This MR replaces the prior implementation in #1165 ## Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Screenshots If you execute: ```bash ./isaaclab.sh -p scripts/tutorials/03_envs/create_cube_base_env.py --num_envs 32 ``` Output:  ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] 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 --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: James Smith <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description Certain scene-level randomizations (such as randomizing the scale) must happen before the simulation starts playing. To this end, the MR adds a new event mode called "prestartup," which gets called right after the scene design is complete and before the simulation is played. Since the scene entities cannot be resolved before the simulation starts playing (as we currently rely on PhysX to provide us with the joint/body ordering), the MR adds a callback to resolve the scene entity configurations separately once the simulation plays. This MR replaces the prior implementation in isaac-sim#1165 ## Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Screenshots If you execute: ```bash ./isaaclab.sh -p scripts/tutorials/03_envs/create_cube_base_env.py --num_envs 32 ``` Output:  ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] 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 --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: James Smith <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description To support creation of managers before the simulation starts playing (as needed by the event manager for USD randomizations), the MR in isaac-sim#2040 added a callback to resolve scene entities at runtime. However, certain class-based manager terms can also not be initialized if the simulation is not playing. Those terms may often rely on parameters that are only available once simulation plays (for instance, joint position limits). This MR moves the initializations of class-based manager terms to the callback too. Fixes isaac-sim#2136 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] 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 - [ ] 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 --------- Co-authored-by: Kelly Guo <[email protected]>
# Description To support creation of managers before the simulation starts playing (as needed by the event manager for USD randomizations), the MR in isaac-sim#2040 added a callback to resolve scene entities at runtime. However, certain class-based manager terms can also not be initialized if the simulation is not playing. Those terms may often rely on parameters that are only available once simulation plays (for instance, joint position limits). This MR moves the initializations of class-based manager terms to the callback too. Fixes isaac-sim#2136 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] 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 - [ ] 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 --------- Co-authored-by: Kelly Guo <[email protected]>
# Description Certain scene-level randomizations (such as randomizing the scale) must happen before the simulation starts playing. To this end, the MR adds a new event mode called "prestartup," which gets called right after the scene design is complete and before the simulation is played. Since the scene entities cannot be resolved before the simulation starts playing (as we currently rely on PhysX to provide us with the joint/body ordering), the MR adds a callback to resolve the scene entity configurations separately once the simulation plays. This MR replaces the prior implementation in isaac-sim#1165 ## Type of change - New feature (non-breaking change which adds functionality) - This change requires a documentation update ## Screenshots If you execute: ```bash ./isaaclab.sh -p scripts/tutorials/03_envs/create_cube_base_env.py --num_envs 32 ``` Output:  ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] 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 --------- Signed-off-by: Mayank Mittal <[email protected]> Co-authored-by: James Smith <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description To support creation of managers before the simulation starts playing (as needed by the event manager for USD randomizations), the MR in isaac-sim#2040 added a callback to resolve scene entities at runtime. However, certain class-based manager terms can also not be initialized if the simulation is not playing. Those terms may often rely on parameters that are only available once simulation plays (for instance, joint position limits). This MR moves the initializations of class-based manager terms to the callback too. Fixes isaac-sim#2136 ## Type of change - Bug fix (non-breaking change which fixes an issue) ## Checklist - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] 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 - [ ] 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 --------- Co-authored-by: Kelly Guo <[email protected]>
Description
Certain scene-level randomizations (such as randomizing the scale) must happen before the simulation starts playing. To this end, the MR adds a new event mode called "prestartup," which gets called right after the scene design is complete and before the simulation is played.
Since the scene entities cannot be resolved before the simulation starts playing (as we currently rely on PhysX to provide us with the joint/body ordering), the MR adds a callback to resolve the scene entity configurations separately once the simulation plays.
This MR replaces the prior implementation in #1165
Type of change
Screenshots
If you execute:
Output:
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there