• Xinpeng Liu's avatar
    Broadcasts environment ids inside `mdp.randomize_rigid_body_com` (#3164) · 403daeab
    Xinpeng Liu authored
    # Description
    
    <!--
    Thank you for your interest in sending a pull request. Please make sure
    to check the contribution guidelines.
    
    Link:
    https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html
    -->
    
    In function `isaaclab.envs.mdp.events.randomize_rigid_body_com`, the
    random CoM values were sampled with respect to `env_ids`, but when added
    to the bodies' current CoMs, `env_ids` is omitted, resulting in
    potential shape mismatch error if `len(env_ids) <> env.scene.num_envs`.
    
    
    <!-- As a practice, it is recommended to open an issue to have
    discussions on the proposed pull request.
    This makes it easier for the community to keep track of what is being
    developed or added, and if a given feature
    is demanded by more than one party. -->
    
    ## Type of change
    
    <!-- As you go through the list, delete the ones that are not
    applicable. -->
    
    - 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 avatarXinpeng Liu <43176336+Foruck@users.noreply.github.com>
    Co-authored-by: 's avatarooctipus <zhengyuz@nvidia.com>
    403daeab
Name
Last commit
Last update
..
isaaclab Loading commit data...
isaaclab_assets Loading commit data...
isaaclab_mimic Loading commit data...
isaaclab_rl Loading commit data...
isaaclab_tasks Loading commit data...