Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
15 changes: 15 additions & 0 deletions source/isaaclab/docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Changelog
---------

0.48.1 (2025-11-10)
~~~~~~~~~~~~~~~~~~~

Added
^^^^^

* Added :attr:`~isaaclab.sim.SimulationCfg.enable_external_forces_every_iteration` to enable external forces every iteration.
This can help improve the accuracy of velocity updates. Consider enabling this flag if the velocities generated by the simulation are noisy.
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax: incorrect attribute reference path - should be PhysxCfg not SimulationCfg

Suggested change
* Added :attr:`~isaaclab.sim.SimulationCfg.enable_external_forces_every_iteration` to enable external forces every iteration.
This can help improve the accuracy of velocity updates. Consider enabling this flag if the velocities generated by the simulation are noisy.
* Added :attr:`~isaaclab.sim.PhysxCfg.enable_external_forces_every_iteration` to enable external forces every iteration.
This can help improve the accuracy of velocity updates. Consider enabling this flag if the velocities generated by the simulation are noisy.


Changed
^^^^^^^

* Added warning when :attr:`~isaaclab.sim.SimulationCfg.enable_external_forces_every_iteration` is set to False.
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax: incorrect attribute reference path - should be PhysxCfg not SimulationCfg

Suggested change
* Added warning when :attr:`~isaaclab.sim.SimulationCfg.enable_external_forces_every_iteration` is set to False.
* Added warning when :attr:`~isaaclab.sim.PhysxCfg.enable_external_forces_every_iteration` is set to False.



0.48.0 (2025-11-03)
~~~~~~~~~~~~~~~~~~~

Expand Down
8 changes: 8 additions & 0 deletions source/isaaclab/isaaclab/sim/simulation_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ class PhysxCfg:
Enabling this flag may lead to incorrect contact forces report from the contact sensor.
"""

enable_external_forces_every_iteration: bool = False
"""Enable/disable external forces every iteration. Default is False.

This flag allows enabling external forces every iteration. This can help improve the accuracy of velocity updates.
Consider enabling this flag if the velocities generated by the simulation are noisy. Increasing the number of velocity
iterations, together with this flag, can help improve the accuracy of velocity updates.
"""

enable_enhanced_determinism: bool = False
"""Enable/disable improved determinism at the expense of performance. Defaults to False.

Expand Down
11 changes: 11 additions & 0 deletions source/isaaclab/isaaclab/sim/simulation_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,17 @@ def _set_additional_physx_params(self):
physx_prim.CreateAttribute("physxScene:solveArticulationContactLast", Sdf.ValueTypeNames.Bool).Set(
self.cfg.physx.solve_articulation_contact_last
)
# -- Enable external forces every iteration, helps improve the accuracy of velocity updates.
if not self.cfg.physx.enable_external_forces_every_iteration:
omni.log.warn(
"The `enable_external_forces_every_iteration` parameter in the PhysxCfg is set to False. If you are"
" experiencing noisy velocities, consider enabling this flag. You may need to slightly increase the"
" number of velocity iterations (setting it to 1 or 2 rather than 0), together with this flag, to"
" improve the accuracy of velocity updates."
)
physx_scene_api.CreateEnableExternalForcesEveryIterationAttr(
self.cfg.physx.enable_external_forces_every_iteration
)

# -- Gravity
# note: Isaac sim only takes the "up-axis" as the gravity direction. But physics allows any direction so we
Expand Down
Loading