Skip to content

Commit

Permalink
Format test_automatic_differentiation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xela-95 committed Jan 30, 2025
1 parent f7c073e commit ecbf150
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions tests/test_automatic_differentiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,14 @@ def test_ad_fk(
# ====

# Get a closure exposing only the parameters to be differentiated.
fk = (
lambda W_p_B,
W_Q_B,
s,
W_v_lin,
W_v_ang,
: jaxsim.rbda.forward_kinematics_model(
model=model,
base_position=W_p_B,
base_quaternion=W_Q_B / jnp.linalg.norm(W_Q_B),
joint_positions=s,
base_linear_velocity_inertial=W_v_lin,
base_angular_velocity_inertial=W_v_ang,
joint_velocities=,
)
fk = lambda W_p_B, W_Q_B, s, W_v_lin, W_v_ang, : jaxsim.rbda.forward_kinematics_model(
model=model,
base_position=W_p_B,
base_quaternion=W_Q_B / jnp.linalg.norm(W_Q_B),
joint_positions=s,
base_linear_velocity_inertial=W_v_lin,
base_angular_velocity_inertial=W_v_ang,
joint_velocities=,
)

# Check derivatives against finite differences.
Expand Down

0 comments on commit ecbf150

Please sign in to comment.