Skip to content

Commit 7ca854f

Browse files
committed
formatting
1 parent 2deed58 commit 7ca854f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/fulldynamics.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,7 @@ namespace simple_mpc
421421

422422
term_cost.addCost(
423423
"state_cost", QuadraticStateCost(ter_space, nu_, model_handler_.getReferenceState(), settings_.w_x));
424-
term_cost.addCost(
425-
"centroidal_cost",
426-
QuadraticResidualCost(ter_space, cent_mom, settings_.w_cent * 10));
424+
term_cost.addCost("centroidal_cost", QuadraticResidualCost(ter_space, cent_mom, settings_.w_cent * 10));
427425

428426
return term_cost;
429427
}
@@ -434,7 +432,7 @@ namespace simple_mpc
434432
{
435433
throw std::runtime_error("Create problem first!");
436434
}
437-
435+
438436
double tau = sqrt(com_ref[2] / 9.81);
439437
DCMPositionResidual dcm_cstr = DCMPositionResidual(ndx_, nu_, model_handler_.getModel(), com_ref, tau);
440438

src/kinodynamics.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#include <aligator/modelling/dynamics/kinodynamics-fwd.hpp>
77
#include <aligator/modelling/multibody/centroidal-momentum-derivative.hpp>
88
#include <aligator/modelling/multibody/centroidal-momentum.hpp>
9+
#include <aligator/modelling/multibody/dcm-position.hpp>
910
#include <aligator/modelling/multibody/frame-placement.hpp>
1011
#include <aligator/modelling/multibody/frame-translation.hpp>
1112
#include <aligator/modelling/multibody/frame-velocity.hpp>
12-
#include <aligator/modelling/multibody/dcm-position.hpp>
1313

1414
namespace simple_mpc
1515
{
@@ -378,8 +378,7 @@ namespace simple_mpc
378378
{
379379
if (terminal_constraint_)
380380
{
381-
DCMPositionResidual * DCMres =
382-
problem_->term_cstrs_.getConstraint<DCMPositionResidual>(0);
381+
DCMPositionResidual * DCMres = problem_->term_cstrs_.getConstraint<DCMPositionResidual>(0);
383382

384383
DCMres->setReference(com_ref);
385384
}

0 commit comments

Comments
 (0)