Skip to content

Commit 2f789aa

Browse files
committed
Remove land constraints
1 parent 0f5bf81 commit 2f789aa

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
@@ -187,7 +187,7 @@ namespace simple_mpc
187187
space.ndx(), model_handler_.getModel(), actuation_matrix_, cms, prox_settings_, name, settings_.mu);
188188
stm.addConstraint(friction_residual, NegativeOrthant());
189189
}
190-
if (land_constraint.at(name))
190+
/* if (land_constraint.at(name))
191191
{
192192
std::vector<int> vel_id = {0, 1, 2};
193193
FrameVelocityResidual velocity_residual = FrameVelocityResidual(
@@ -205,7 +205,7 @@ namespace simple_mpc
205205
FunctionSliceXpr frame_slice = FunctionSliceXpr(frame_residual, frame_id);
206206
207207
stm.addConstraint(frame_slice, EqualityConstraint());
208-
}
208+
} */
209209
}
210210
}
211211

@@ -423,9 +423,9 @@ namespace simple_mpc
423423

424424
term_cost.addCost(
425425
"state_cost", QuadraticStateCost(ter_space, nu_, model_handler_.getReferenceState(), settings_.w_x));
426-
/* term_cost.addCost(
426+
term_cost.addCost(
427427
"centroidal_cost",
428-
QuadraticResidualCost(ter_space, cent_mom, settings_.w_cent)); */
428+
QuadraticResidualCost(ter_space, cent_mom, settings_.w_cent));
429429

430430
return term_cost;
431431
}

0 commit comments

Comments
 (0)