• Mayank Mittal's avatar
    Reverts the setting of joint velocity limits for implicit actuators (#1873) · 3d836ab1
    Mayank Mittal authored
    # Description
    
    The previous fix in #1654 was checking if `effort_limits_sim` is None
    instead of checking `cfg.effort_limits_sim` for explicit actuators. This
    did NOT work as effort limits sim is a tensor that gets assigned the
    value on initialization.
    
    The new fix now adds an implicit/explicit model attribute to the
    actuator model to ensure the right defaults are getting set. It moves
    all the implicit actuator warning code to its class to keep the
    articulation class cleaner.
    
    We also revert the behavior of setting velocity limits for implicit
    actuators to the state before #1509. Before that change, the parameter
    `velocity_limit` was set in the configurations but not getting passed
    through. The MR #1509 allowed these values to be set which caused many
    of the assets to not train anymore or behave differently between
    IsaacLab versions. We now revert this behavior with a warning. If users
    want to set the limits, they should use the `effort_limit_sim` and
    `velocity_limit_sim` quantities.
    
    Fixes #1837
    
    ## Type of change
    
    - Bug fix (non-breaking change which fixes an issue)
    
    ## Screenshot
    
    The training of Allegro hand environment:
    * Green: The current main at 6a415df2
    * Black: This MR
    * Orange: Commenting out the setting of `write_joint_velocity_to_sim`
    which was introduced in #1509.
    
    
    ![image](https://github.com/user-attachments/assets/8ca1ded2-7d8f-4123-aea8-9082559885d7)
    
    
    ## 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
    - [ ] 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
    
    ---------
    Signed-off-by: 's avatarMayank Mittal <12863862+Mayankm96@users.noreply.github.com>
    Co-authored-by: 's avatarJames Tigue <166445701+jtigue-bdai@users.noreply.github.com>
    3d836ab1
Name
Last commit
Last update
..
test_assets.py Loading commit data...
test_circular_buffer.py Loading commit data...
test_configclass.py Loading commit data...
test_delay_buffer.py Loading commit data...
test_dict.py Loading commit data...
test_episode_data.py Loading commit data...
test_hdf5_dataset_file_handler.py Loading commit data...
test_math.py Loading commit data...
test_modifiers.py Loading commit data...
test_noise.py Loading commit data...
test_string.py Loading commit data...
test_timer.py Loading commit data...