• Bikram Pandit's avatar
    Resets recurrent state after episode termination in RSL-RL `play.py` (#3838) · e69b6d9b
    Bikram Pandit authored
    # Description
    
    This PR fixes an issue in recurrent policy evaluation where the
    recurrent state was not being reset after an episode termination. The
    missing reset caused residual memory to persist between episodes. The
    fix ensures that `reset()` is now called during evaluation in `play.py`
    for policy networks, including recurrent.
    
    Fixes #3837  <!-- replace with actual issue number -->
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    
    ## Screenshots
    
    N/A
    
    ## Checklist
    
    - [x] I have read and understood the [contribution
    guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html)
    - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
    `./isaaclab.sh --format`
    - [ ] I have made corresponding changes to the documentation where
    necessary
    - [x] My changes generate no new warnings
    - [x] I have added tests verifying that recurrent states are correctly
    reset during evaluation
    - [x] I have updated the changelog and 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
    e69b6d9b
Name
Last commit
Last update
.github Loading commit data...
.vscode Loading commit data...
apps Loading commit data...
docker Loading commit data...
docs Loading commit data...
scripts Loading commit data...
source Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.flake8 Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.pre-commit-config.yaml Loading commit data...
CITATION.cff Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS.md Loading commit data...
LICENSE Loading commit data...
LICENSE-mimic Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
VERSION Loading commit data...
environment.yml Loading commit data...
isaaclab.bat Loading commit data...
isaaclab.sh Loading commit data...
pyproject.toml Loading commit data...
pytest.ini Loading commit data...