Skip to content

Commit e61ec06

Browse files
committed
syc with stale fix
1 parent 9dd3415 commit e61ec06

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

source/isaaclab_newton/config/extension.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
# Note: Semantic Versioning is used: https://semver.org/
4-
version = "0.5.11"
4+
version = "0.5.12"
55

66
# Description
77
title = "Newton simulation interfaces for IsaacLab core package"

source/isaaclab_newton/docs/CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Changelog
22
---------
33

4+
0.5.13 (2026-04-05)
5+
~~~~~~~~~~~~~~~~~~~
6+
7+
Fixed
8+
^^^^^
9+
10+
* Fixed NaN after env reset caused by stale ``body_q`` in the collision
11+
pipeline. Added :meth:`~isaaclab_newton.physics.NewtonManager.invalidate_fk`
12+
so articulation write methods trigger ``eval_fk`` before the next
13+
``collide()``.
14+
415

516
0.5.12 (2026-04-03)
617
~~~~~~~~~~~~~~~~~~~

source/isaaclab_newton/isaaclab_newton/physics/newton_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ def invalidate_fk(cls) -> None:
522522
"""Mark forward kinematics as needing recomputation.
523523
524524
Called by articulation write methods that modify ``joint_q`` or root
525-
transforms. The flag is checked in :meth:`_simulate_physics_only`
526-
before collision detection to ensure ``body_q`` is up-to-date.
525+
transforms. The flag is checked in :meth:`step` before collision
526+
detection to ensure ``body_q`` is up-to-date.
527527
"""
528528
cls._fk_dirty = True
529529

source/isaaclab_newton/test/assets/test_articulation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,8 +2627,7 @@ def _patched_simulate(cls):
26272627
jq_root = captured["jq_root"]
26282628
diff = (jq_root - bq_root).abs().max().item()
26292629
assert diff < 0.01, (
2630-
f"body_q was stale when collide() ran: diff={diff:.4f}m, "
2631-
f"jq={jq_root.tolist()}, bq={bq_root.tolist()}"
2630+
f"body_q was stale when collide() ran: diff={diff:.4f}m, jq={jq_root.tolist()}, bq={bq_root.tolist()}"
26322631
)
26332632

26342633

0 commit comments

Comments
 (0)