Skip to content

Commit 5898e88

Browse files
authored
fix(examples): propagate IK solution to model state in Franka example (newton-physics#1637)
1 parent a6d5874 commit 5898e88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

newton/examples/ik/example_ik_franka.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def capture(self):
120120

121121
def simulate(self):
122122
self.solver.step(self.joint_q, self.joint_q, iterations=self.ik_iters)
123+
wp.copy(self.model.joint_q, self.joint_q)
123124

124125
def _push_targets_from_gizmos(self):
125126
"""Read gizmo-updated transform and push into IK objectives."""

0 commit comments

Comments
 (0)