Skip to content

Initializes manager term classes only when sim starts - #2117

Merged
kellyguo11 merged 13 commits into
mainfrom
fix/class-term-resolve
Mar 26, 2025
Merged

kellyguo11 merged 13 commits into
mainfrom
fix/class-term-resolve

Conversation

@Mayankm96

@Mayankm96 Mayankm96 commented Mar 19, 2025 •

Copy link
Copy Markdown
Contributor

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

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • 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
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@Mayankm96
Mayankm96 requested a review from jsmith-bdai as a code owner March 19, 2025 20:31
@Mayankm96
Mayankm96 requested a review from kellyguo11 March 19, 2025 20:31
@Mayankm96 Mayankm96 added the bug Something isn't working label Mar 24, 2025
@kellyguo11

Copy link
Copy Markdown
Contributor

some of the tests seem to still be failing. When running Isaac-Ant-v0, hitting this error ValueError: The term 'energy' expects mandatory parameters: ['gear_ratio', 'asset_cfg'] and optional parameters: [], but received: ['gear_ratio'].

@Mayankm96
Mayankm96 requested a review from jtigue-bdai as a code owner March 25, 2025 17:51
@Mayankm96

Copy link
Copy Markdown
Contributor Author

@kellyguo11 There was a bug in the reward terms used by the ant/humanoid class. This has now been fixed.

@Mayankm96
Mayankm96 requested a review from pascal-roth as a code owner March 25, 2025 19:11
@Mayankm96
Mayankm96 force-pushed the fix/class-term-resolve branch from 6088c87 to bcf3e5e Compare March 25, 2025 19:15
@kellyguo11
kellyguo11 merged commit ba31408 into main Mar 26, 2025
@kellyguo11
kellyguo11 deleted the fix/class-term-resolve branch March 26, 2025 00:54
ToxicNS pushed a commit to ToxicNS/IsaacLab that referenced this pull request Apr 24, 2025
# 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]>
yrh012 pushed a commit to aica-technology/isaac-lab that referenced this pull request Jun 16, 2025
# 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]>
LJones-alt pushed a commit to LJones-alt/IsaacLab-Laura that referenced this pull request Jul 1, 2026
# 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] Error training Isaac-Repose-Cube-Allegro-v0

2 participants