Skip to content

Commit 98acfac

Browse files
author
earlaud
committed
Fixes in centroidal
1 parent e5527f8 commit 98acfac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/inverse-dynamics/centroidal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ namespace simple_mpc
88
, settings_(settings)
99
{
1010
// Update base task to be only on the base orientation
11-
const Eigen::Vector<double, 6> kp_base{0., 0., 0., 1., 1., 1.};
12-
baseTask_->Kp(settings_.kp_base * kp_base);
11+
const Eigen::Vector<double, 6> orientation_mask{0., 0., 0., 1., 1., 1.};
12+
baseTask_->Kp(settings_.kp_base * orientation_mask);
1313
baseTask_->Kd(2.0 * baseTask_->Kp().cwiseSqrt());
1414

1515
// Add the center of mass task
@@ -83,7 +83,7 @@ namespace simple_mpc
8383
if (feet_tracked_[foot_nb])
8484
{
8585
formulation_.removeTask(task_name, 0);
86-
active_tsid_contacts_[foot_nb] = false;
86+
feet_tracked_[foot_nb] = false;
8787
}
8888
}
8989
}

0 commit comments

Comments
 (0)