Skip to content

Commit b1cf6c4

Browse files
committed
Remove land constraints
1 parent d3dc2e2 commit b1cf6c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fulldynamics.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace simple_mpc
188188
space.ndx(), model_handler_.getModel(), actuation_matrix_, cms, prox_settings_, name, settings_.mu);
189189
stm.addConstraint(friction_residual, NegativeOrthant());
190190
}
191-
if (land_constraint.at(name))
191+
/* if (land_constraint.at(name))
192192
{
193193
std::vector<int> vel_id = {0, 1, 2};
194194
FrameVelocityResidual velocity_residual = FrameVelocityResidual(
@@ -206,7 +206,7 @@ namespace simple_mpc
206206
FunctionSliceXpr frame_slice = FunctionSliceXpr(frame_residual, frame_id);
207207
208208
stm.addConstraint(frame_slice, EqualityConstraint());
209-
}
209+
} */
210210
}
211211
}
212212

@@ -424,9 +424,9 @@ namespace simple_mpc
424424

425425
term_cost.addCost(
426426
"state_cost", QuadraticStateCost(ter_space, nu_, model_handler_.getReferenceState(), settings_.w_x));
427-
/* term_cost.addCost(
427+
term_cost.addCost(
428428
"centroidal_cost",
429-
QuadraticResidualCost(ter_space, cent_mom, settings_.w_cent)); */
429+
QuadraticResidualCost(ter_space, cent_mom, settings_.w_cent));
430430

431431
return term_cost;
432432
}

0 commit comments

Comments
 (0)