Repository navigation
Description
[Bug Report] Newton backend re-enables joint target stiffness/damping for explicit actuators, causing different rest pose from PhysX
Bug Description
When using the Newton backend with an articulation configured with an explicit actuator, such as DelayedPDActuatorCfg / IdealPDActuator, the robot reaches a different joint rest pose compared with the PhysX backend under the same action command.
The issue appears to come from the Newton articulation initialization path. For explicit actuators, IsaacLab correctly calls:
self.write_joint_stiffness_to_sim_index(stiffness=0.0, joint_ids=actuator.joint_indices)
self.write_joint_damping_to_sim_index(damping=0.0, joint_ids=actuator.joint_indices)This matches the expected behavior: explicit actuators should compute joint torques in IsaacLab, while the simulator-side joint target drive should be disabled.
However, a few lines later, the Newton backend stores the configured actuator stiffness/damping back into:
self.data._sim_bind_joint_stiffness_sim
self.data._sim_bind_joint_damping_simThese buffers are directly bound to Newton model attributes:
"joint_target_ke"
"joint_target_kd"Therefore, for explicit actuators, Newton's internal joint target drive is unintentionally re-enabled.
This causes the Newton backend to apply two controllers at the same time:
- IsaacLab explicit actuator torque, pulling the joint toward the processed action target.
- Newton internal joint target drive, pulling the joint toward the simulator-side
joint_target_pos.
For explicit actuators, Newton only writes effort targets every step. It does not write position/velocity targets unless _has_implicit_actuators is true:
self.data._sim_bind_joint_effort.assign(self._joint_effort_target_sim)
if self._has_implicit_actuators:
self.data._sim_bind_joint_position_target.assign(self._joint_pos_target_sim)
self.data._sim_bind_joint_velocity_target.assign(self._joint_vel_target_sim)As a result, the internal Newton target position can remain at its default value, commonly zero, while the explicit actuator tries to track the actual command target. This makes Newton behave differently from PhysX.
Expected Behavior
For explicit actuators:
- simulator-side joint stiffness/damping should remain zero
- only explicit actuator effort should be sent to the simulator
- Newton and PhysX should produce consistent behavior under the same articulation config and action command
For implicit actuators:
- simulator-side joint stiffness/damping should still be written into the simulation
- simulator-side position/velocity targets should be written every step
- Newton's internal joint target drive should remain active
Actual Behavior
For explicit actuators in the Newton backend:
- simulator-side joint stiffness/damping are first set to zero
- then later overwritten with actuator stiffness/damping again
- Newton internal
joint_target_ke/kdremains active - the articulation is pulled toward the default simulator-side target position, producing a different rest pose from PhysX
Relevant Code
Newton articulation initialization
File:
source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py
Current behavior:
if isinstance(actuator, ImplicitActuator):
self._has_implicit_actuators = True
self.write_joint_stiffness_to_sim_index(stiffness=actuator.stiffness, joint_ids=actuator.joint_indices)
self.write_joint_damping_to_sim_index(damping=actuator.damping, joint_ids=actuator.joint_indices)
else:
self.write_joint_stiffness_to_sim_index(stiffness=0.0, joint_ids=actuator.joint_indices)
self.write_joint_damping_to_sim_index(damping=0.0, joint_ids=actuator.joint_indices)
# Later:
wp.launch(
shared_kernels.write_2d_data_to_buffer_with_indices,
...
outputs=[
self.data._sim_bind_joint_stiffness_sim,
],
)
wp.launch(
shared_kernels.write_2d_data_to_buffer_with_indices,
...
outputs=[
self.data._sim_bind_joint_damping_sim,
],
)Newton data binding
File:
source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation_data.py
The buffers above are bound to Newton model drive gains:
self._sim_bind_joint_stiffness_sim = self._root_view.get_attribute(
"joint_target_ke", SimulationManager.get_model()
)[:, 0]
self._sim_bind_joint_damping_sim = self._root_view.get_attribute(
"joint_target_kd", SimulationManager.get_model()
)[:, 0]The property docstring says explicit actuators should have zero simulator-side stiffness/damping:
@property
def joint_stiffness(self) -> wp.array:
"""Joint stiffness provided to the simulation.
In the case of explicit actuators, the value for the corresponding joints is zero.
"""
return self._sim_bind_joint_stiffness_simMinimal Reproduction Pattern
- Configure an articulation with an explicit actuator, for example:
DelayedPDActuatorCfg(
joint_names_expr=[...],
stiffness=100.0,
damping=1.0,
)- Run the same scene once with PhysX and once with Newton.
- Send the same joint position action.
- Observe that the final/rest joint pose differs between the two backends.
- Inspect Newton-side simulator joint stiffness/damping after actuator initialization. They remain non-zero for explicit actuators, even though they should be zero.
This becomes especially visible when using JointPositionToLimitsActionCfg or EMAJointPositionToLimitsActionCfg with rescale_to_limits=True. In that case, action 0 is correctly mapped to the midpoint of the joint limits, but Newton additionally pulls toward the default simulator-side target position because the internal drive was unintentionally left active.
Proposed Fix
Store the actuator model's configured stiffness/damping into the actuator-data buffers, not the simulator-bound Newton drive buffers.
Patch:
diff --git a/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py b/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py
--- a/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py
+++ b/source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.py
@@ -3398,7 +3398,7 @@ class Articulation(BaseArticulation):
outputs=[
- self.data._sim_bind_joint_stiffness_sim,
+ self.data._actuator_stiffness,
],
device=self.device,
)
@@ -3411,7 +3411,7 @@ class Articulation(BaseArticulation):
outputs=[
- self.data._sim_bind_joint_damping_sim,
+ self.data._actuator_damping,
],
device=self.device,
)This keeps the existing implicit actuator behavior intact, because the implicit branch still explicitly calls:
self.write_joint_stiffness_to_sim_index(stiffness=actuator.stiffness, ...)
self.write_joint_damping_to_sim_index(damping=actuator.damping, ...)But for explicit actuators, the simulator-side Newton drive remains disabled as intended.
Why this fix seems correct
PhysX stores configured actuator stiffness/damping separately from the actual simulator-side drive state. For explicit actuators, PhysX sets simulator stiffness/damping to zero after storing the configured values.
Newton already has dedicated buffers:
self._actuator_stiffness
self._actuator_dampingSo the configured actuator gains can be preserved without writing them back into joint_target_ke/kd.
Checklist
- I have checked that the issue is related to IsaacLab and not only Isaac Sim.
- I have checked for similar issues in the repository.
- I have identified a likely source-code cause.
- I have tested a local patch that preserves implicit actuator behavior while fixing explicit actuator behavior.
System Info
- OS: Ubuntu 24.04.4 LTS, noble
- Kernel: Linux 6.17.0-29-generic x86_64
- Python: 3.12.13
- Isaac Sim: 6.0.0.0
- IsaacLab package: 4.5.22
- IsaacLab repo tag: v3.0.0-beta
- IsaacLab commit: a4a7602
- IsaacLab commit date: 2026-03-16 23:38:12 -0700
- isaaclab_newton: 0.5.9
- isaaclab_physx: 0.5.11
- isaaclab_tasks: 1.5.11
- Newton package: 1.0.0
- newton-actuators: 0.1.0
- MuJoCo: 3.5.0
- mujoco-warp: 3.5.0.2
- warp-lang: 1.12.0
- PyTorch: 2.10.0+cu128
- PyTorch CUDA build: 12.8
- IsaacLab install mode: editable local checkout
- Local patch status:
source/isaaclab_newton/isaaclab_newton/assets/articulation/articulation.pymodified with the proposed 2-line fix
Activity
RandomOakForest commentedon May 28, 2026
Thank you for posting this. The team will review it.
yusufdxb commentedon Jul 3, 2026
I hit the same write-order behavior independently while benchmarking PhysX vs Newton on the stock Go2 flat task, traced it through both Isaac Lab backends and MJWarp, and can add three things: an independent confirmation of the mechanism and of the proposed fix, a live-model measurement, and one refinement to the causal story that may matter for how the fix is validated.
Independent confirmation
Same chain as the report (line numbers at 3.0.0
a4a7602f, isaaclab_newton 0.5.9): the explicit branch zeroes gains viawrite_joint_stiffness_to_sim_index(articulation.py:3372-3373), then the "store the configured values" kernels atarticulation.py:3387-3414writeactuator.stiffness/dampingintodata._sim_bind_joint_stiffness_sim/_sim_bind_joint_damping_sim, which are zero-copy views ofModel.joint_target_ke/kd(articulation_data.py:1264-1268). PhysX does the same two writes in the opposite order and to separate buffers (isaaclab_physx/.../articulation.py:3782-3800internal store first, then:3878-3881zeros to the sim drive), which is why the two backends report differentdata.joint_stiffnessfor the same asset and cfg. Redirecting the two kernel outputs todata._actuator_stiffness/_actuator_damping(as proposed) mirrors the PhysX separation. I independently landed on the same fix before finding this issue.Live-model measurement (stock Go2,
DCMotorCfg(stiffness=25, damping=0.5))Running
Isaac-Velocity-Flat-Unitree-Go2-v0withpresets=newtonand dumping the solver state after init:data.joint_stiffnessreads 25.0 on Newton vs 0.0 on PhysX (the echo this issue describes: it also violates thejoint_stiffnessproperty docstring)mjw_model.nu == 0: MJWarp built zero actuatorsJointTargetMode.EFFORT, with ke=25.0/kd=0.5 sitting inModel.joint_target_ke/kdOne refinement to the causal mechanism
For assets like the stock Go2, whose USD authors zero drive gains, the clobbered gains are misleading but inert: actuation mode is fixed at USD import (
newton/_src/utils/import_usd.py:819-823,JointTargetMode.from_gains) and MJWarp creates PD actuators only for POSITION/VELOCITY modes (solver_mujoco.py, hinge branch ~4577-4610); runtimejoint_target_keupdates propagate only to existing actuators (solver_mujoco.py:5390-5412). Withnu == 0there is no internal drive to re-enable, so no second controller is active. I verified there is still a systematic rest-pose difference between backends on this asset (~0.118 rad during a zero-action hold on the default pose, deterministic across repeats), but it cannot be explained by these gains and appears to come from solver/contact differences instead.The "two controllers at once" mechanism described in the report becomes live precisely when the asset's USD authors nonzero drive gains: joints then import as position-mode, MJWarp builds real PD actuators, and the clobbering write pushes the explicit actuator's gains into them (against a stale
joint_target_pos, since targets are only synced when_has_implicit_actuators). So whether the observed rest-pose delta on a given robot is caused by this bug depends on that robot's USD drive gains: worth checking on the asset used in the original report, and worth covering both cases (authored-zero and authored-nonzero USD gains) in the regression test for the fix.Recorder + checker scripts and the raw JSON dumps (both backends' parsed models, the live
nu/mode check) are in https://github.com/yusufdxb/physx-newton-bench, happy to adapt them into a regression test if useful.Environment: Isaac Lab 3.0.0 (
a4a7602f), isaaclab_newton 0.5.9, Newton 1.0.0, warp 1.12.0, mujoco-warp 3.5.0.2, driver 570.211.01 / CUDA 12.8.AntoineRichard commentedon Aug 27, 2026
Thanks @ecstayalive for tracing this all the way to the post-init kernel writes, and @yusufdxb for the independent confirmation.
That path has since been replaced: actuator ownership was refactored in #5455 and #6839, so explicit actuators keep their gains in the actuator model and only implicit groups drive Newton's
joint_target_ke/kd. There's now a regression test asserting exactly that (test_newton_rebind_preserves_lab_owned_actuator_gains).Note @yusufdxb's residual ~0.118 rad Go2 rest-pose delta looks like a solver/contact difference, not gains — worth a fresh issue if it still shows up.
🤖 This issue was reviewed as part of an AI-assisted triage of the Isaac Lab backlog, with automated verification against the current codebase. If we got this wrong, please reopen — we'd rather hear about it!