• Kyle Morgenstein's avatar
    Fixes rail difficulty-based height calculation in mesh_terrains.py (#3254) · 23e935c3
    Kyle Morgenstein authored
    # Description
    
    The rail mesh terrain created terrains from hardest to easiest due to a
    bug in how difficulty was used. This PR fixes that bug.
    
    Before:
    
    `rail_height = cfg.rail_height_range[1] - difficulty *
    (cfg.rail_height_range[1] - cfg.rail_height_range[0])`
    
    After:
    
    `rail_height = cfg.rail_height_range[0] + difficulty *
    (cfg.rail_height_range[1] - cfg.rail_height_range[0])`
    
    ## 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
    - [ ] 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: 's avatarKyle Morgenstein <34984693+KyleM73@users.noreply.github.com>
    Co-authored-by: 's avatarKelly Guo <kellyg@nvidia.com>
    23e935c3
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...