Skip to content

Commit 23442d1

Browse files
committed
Add IPC contact force recording and improve transform synchronization
- Add coupling_strategy option (two_way_soft_constraint, contact_proxy) - Move _genesis_stored_states from rigid_solver to ipc_coupler - Implement _record_ipc_contact_forces() to extract contact forces from IPC - Implement _apply_ipc_contact_forces() to apply forces to Genesis links - Refactor _set_genesis_transforms_from_ipc() to support multi-link IK - Use inverse_kinematics_multilink for complex entities - Direct base link setting for simple single-body entities - Add strategy-based dispatching in substep_pre/post_coupling
1 parent ceab965 commit 23442d1

File tree

3 files changed

+417
-90
lines changed

3 files changed

+417
-90
lines changed

examples/IPC_Solver/genesis_ipc_motion_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,6 @@ def compute_total_linear_momentum():
296296
ax.grid(True, alpha=0.3)
297297

298298
plt.tight_layout()
299-
plt.savefig("momentum_conservation_test.png", dpi=150)
300-
print(f"\n{'='*70}")
301-
print("Plot saved to: momentum_conservation_test.png")
302-
print(f"{'='*70}")
303299
plt.show()
304300

305301

0 commit comments

Comments
 (0)