Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions source/isaaclab/docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
---------

0.48.6 (2025-11-21)
~~~~~~~~~~~~~~~~~~~

Fixed
^^^^^

* Prevent randomizing mass to zero in :meth:`~isaaclab.envs.mdp.events.randomize_mass_by_scale` to avoid physics errors.


0.48.5 (2025-11-14)
~~~~~~~~~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions source/isaaclab/isaaclab/envs/mdp/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def __call__(
masses = _randomize_prop_by_op(
masses, mass_distribution_params, env_ids, body_ids, operation=operation, distribution=distribution
)
masses = torch.clamp(masses, min=1e-6) # ensure masses are positive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe good to have as an arg?


# set the mass into the physics simulation
self.asset.root_physx_view.set_masses(masses, env_ids)
Expand Down
Loading