Skip to content

Commit edc4a35

Browse files
authored
Merge pull request #270 from xela-95/fix/delassus-example-nb
Fix bug in Delassus matrix computation in example notebook
2 parents 481b6d8 + 6178e8c commit edc4a35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jaxsim_as_multibody_dynamics_library.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@
728728
"Key methodologies in this area may involve the Delassus matrix:\n",
729729
"\n",
730730
"$$\n",
731-
"\\Psi(\\mathbf{q}) = J_{W,C}^T(\\mathbf{q}) \\, M(\\mathbf{q})^{-1} \\, J_{W,C}^T(\\mathbf{q})\n",
731+
"\\Psi(\\mathbf{q}) = J_{W,C}(\\mathbf{q}) \\, M(\\mathbf{q})^{-1} \\, J_{W,C}^T(\\mathbf{q})\n",
732732
"$$\n",
733733
"\n",
734734
"or the linear acceleration of a contact point:\n",
@@ -780,7 +780,7 @@
780780
" J̇l_WC = js.contact.jacobian_derivative(model=model, data=data)[:, 0:3, :]\n",
781781
"\n",
782782
"# Compute the Delassus matrix.\n",
783-
"Ψ = jnp.vstack(Jl_WC) @ jnp.linalg.lstsq(BW_M, jnp.vstack(J̇l_WC).T)[0]\n",
783+
"Ψ = jnp.vstack(Jl_WC) @ jnp.linalg.lstsq(BW_M, jnp.vstack(Jl_WC).T)[0]\n",
784784
"print(f\"Ψ: shape={Ψ.shape}\")\n",
785785
"\n",
786786
"# Compute the transforms of the mixed frames implicitly associated\n",

0 commit comments

Comments
 (0)