Skip to content

Commit

Permalink
Fix bug in energy_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoelzle committed Nov 19, 2024
1 parent 92ee9a0 commit 49882f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsrm/systems/planar_pcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def energy_fn(params: Dict[str, Array], q: Array, q_d: Array) -> Array:
Returns:
E: total energy of shape ()
"""
T = kinetic_energy_fn(params, q_d)
T = kinetic_energy_fn(params, q, q_d)
U = potential_energy_fn(params, q)
E = T + U

Expand Down

0 comments on commit 49882f3

Please sign in to comment.