Skip to content

Commit 6ef32bf

Browse files
committed
added standard values to None for mujoco contacts
1 parent 25254dd commit 6ef32bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quadruped_pympc/interfaces/wb_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def update_state_and_reference(
119119
simulation_dt: float,
120120
ref_base_lin_vel: np.ndarray,
121121
ref_base_ang_vel: np.ndarray,
122-
mujoco_contact: np.ndarray,
122+
mujoco_contact: np.ndarray = None,
123123
) -> [dict, dict, list, LegsAttr, list, list, float, bool]:
124124
"""Update the state and reference for the whole body controller, including the contact sequence, footholds, and terrain estimation.
125125
@@ -410,7 +410,7 @@ def compute_stance_and_swing_torque(
410410
nmpc_joints_vel,
411411
nmpc_joints_acc,
412412
nmpc_predicted_state,
413-
mujoco_contact,
413+
mujoco_contact: np.ndarray = None,
414414
) -> LegsAttr:
415415
"""Compute the stance and swing torque.
416416

0 commit comments

Comments
 (0)