• Shundo Kishi's avatar
    Fixes setting of root velocities in the event term `reset_root_state_from_terrain` (#1884) · f1a4975e
    Shundo Kishi authored
    # Description
    
    When reset_root_state_from_terrain is called from an EventTerm, we
    cannot predict which env_ids will be targeted. To prevent program
    crashes due to tensor size mismatches, this MR modifies the velocity
    calculation to use only the specified env_ids instead of referencing all
    environments.
    
    Changes:
    - Updated velocity calculation to use env_ids indexing for
    default_root_state
    - This ensures tensor dimensions match between default_root_state and
    rand_samples
    
    Fixes #1882 
    
    ## 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`
    - [ ] I have made corresponding changes to the documentation
    - [x] My changes generate no new warnings
    - [ ] I have added tests that prove my fix is effective or that my
    feature works
    - [x] 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
    f1a4975e
Name
Last commit
Last update
.aws Loading commit data...
.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...
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...
isaaclab.bat Loading commit data...
isaaclab.sh Loading commit data...
pyproject.toml Loading commit data...