Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneAr committed Feb 29, 2024
1 parent ecad6b8 commit 7151290
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions include/qrw/Params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ struct Params {
bool solo3D; // Enable the 3D environment with corresponding planner blocks

// Not defined in yaml
MatrixNi gait; // Initial gait matrix (Eigen)
Scalar T_gait; // Period of the gait
int N_gait; // Number of steps in gait
uint window_size; // Window size
MatrixNi gait; // Initial gait matrix (Eigen)
Scalar T_gait; // Period of the gait
int N_gait; // Number of steps in gait
uint window_size; // Window size

YAML::Node task;
YAML::Node sim;
Expand Down
2 changes: 1 addition & 1 deletion python/quadruped_reactive_walking/ocp_defs/walking.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _add_force_reg(self, i: int, m: DifferentialActionModelContactFwdDynamics):
name = "{}_forceReg".format(self.rmodel.frames[i].name)
ref_force = pin.Force.Zero()
nc = len(m.differential.contacts.active_set)
if(nc > 0):
if nc > 0:
ref_force.linear[2] = self.task.robot_weight / nc
force_reg = CostModelResidual(
self.state,
Expand Down
2 changes: 1 addition & 1 deletion src/Params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Params::Params()
v_switch(),
fc_v_esti(0.0),

T_gait(0.0) // Period of the gait
T_gait(0.0) // Period of the gait
{
Kp_main.setZero();
Kd_main.setZero();
Expand Down

0 comments on commit 7151290

Please sign in to comment.