Skip to content

Commit cbd4efb

Browse files
Add changelog fragment for zero-wrench fast path
Documents the early-return added to apply_external_force_torque when force_range and torque_range are both zero, restoring H1/G1/Anymal-C Velocity-Rough throughput regressed by the WrenchComposer rework in isaac-sim#5265. Refs: isaac-sim/IsaacLab-Internal#906, isaac-sim/IsaacLab-Internal#911
1 parent 54e6240 commit cbd4efb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Fixed
2+
^^^^^
3+
4+
* Fixed a per-step performance regression in :func:`~isaaclab.envs.mdp.events.apply_external_force_torque`
5+
when the event was configured with all-zero ``force_range`` and ``torque_range`` (a common default
6+
for tasks that declare the event term but apply no disturbance). The event was unconditionally
7+
sampling zero wrenches and routing them through the dual-buffer ``WrenchComposer`` introduced in
8+
PR #5265, paying the full per-step compose-and-apply cost in
9+
:meth:`~isaaclab.assets.Articulation.write_data_to_sim` for what is semantically a no-op. The
10+
function now returns early when both ranges are exactly zero. This restores the H1, G1, and
11+
Anymal-C ``Velocity-Rough`` throughput observed prior to PR #5265. Behaviour for non-zero ranges
12+
is unchanged.

0 commit comments

Comments
 (0)