Skip to content

fix: skip terms with weight 0 - #655

Closed
fan-ziqi wants to merge 1 commit into
isaac-sim:mainfrom
fan-ziqi:fix-zero-reward
Closed

fan-ziqi wants to merge 1 commit into
isaac-sim:mainfrom
fan-ziqi:fix-zero-reward

Conversation

@fan-ziqi

@fan-ziqi fan-ziqi commented Jul 7, 2024

Copy link
Copy Markdown
Contributor

Description

Optimize the reward manager so that rewards with a weight of 0 will not be calculated to improve performance

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Screenshots

Please attach before and after screenshots of the change if applicable.

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

Comment on lines +216 to +218
# skip terms with weight 0
if term_cfg.weight == 0.0:
continue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed this on purpose since many times we want to have a curriculum over rewards which may start at zero but go up during training. If you want to remove a reward term, please remove it from the config itself (or set it to None).

@Mayankm96 Mayankm96 closed this Jul 9, 2024
Milad-Rakhsha-NV pushed a commit to Milad-Rakhsha-NV/IsaacLab that referenced this pull request Sep 4, 2025
# Description

Reworked the sim context to solve the follwing issues:

Fixes isaac-sim#655 isaac-sim#656 isaac-sim#657 


## Type of change

- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- This change requires a documentation update

## Checklist

- [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) 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
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.

2 participants