diff --git a/include/qrw/Params.hpp b/include/qrw/Params.hpp index c23e953..be56a62 100644 --- a/include/qrw/Params.hpp +++ b/include/qrw/Params.hpp @@ -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; diff --git a/python/quadruped_reactive_walking/ocp_defs/walking.py b/python/quadruped_reactive_walking/ocp_defs/walking.py index 7778bd5..3a512a8 100644 --- a/python/quadruped_reactive_walking/ocp_defs/walking.py +++ b/python/quadruped_reactive_walking/ocp_defs/walking.py @@ -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, diff --git a/src/Params.cpp b/src/Params.cpp index ebd2102..b6b9738 100644 --- a/src/Params.cpp +++ b/src/Params.cpp @@ -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();