• Mayank Mittal's avatar
    Adds setting of environment seed at initialization (#940) · ac71354c
    Mayank Mittal authored
    # Description
    
    Various randomization and procedural generation operations happen at
    initialization. However, as noted in one of the issues, the seed setting
    happens after all these operations are performed. This means that the
    creation of the environment is not completely deterministic. This MR
    resolves this issue by adding a `seed` configuration to the environment.
    
    Fixes #904
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    
    ## Screenshots
    
    The before and after results over **three runs** with the default seed
    (seed: 42)
    
    ```bash
    ./isaaclab.sh -p source/standalone/workflows/rsl_rl/train.py --task Isaac-Velocity-Rough-Anymal-C-v0 --headless --run_name seed
    ```
    
    | Results over three runs |
    | ------ | 
    | Before (main at 788a061d)
    ![before](https://github.com/user-attachments/assets/21a6a9f3-7438-4e73-92dd-a32106272fcb)
    |
    | Now (this MR)
    ![after](https://github.com/user-attachments/assets/821b9c63-34b7-4ce2-8d36-4c979c47070b)
    |
    
    ## 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
    - [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
    
    ---------
    Signed-off-by: 's avatarMayank Mittal <12863862+Mayankm96@users.noreply.github.com>
    ac71354c
Name
Last commit
Last update
..
app Loading commit data...
assets Loading commit data...
controllers Loading commit data...
deps Loading commit data...
devices Loading commit data...
envs Loading commit data...
managers Loading commit data...
markers Loading commit data...
performance Loading commit data...
scene Loading commit data...
sensors Loading commit data...
sim Loading commit data...
terrains Loading commit data...
utils Loading commit data...