Skip to content

Commit 9d552e2

Browse files
author
earlaud
committed
Remove print and useless code in tests
1 parent ac5918e commit 9d552e2

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

tests/inverse_dynamics.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ void test_contact(TestKinoID test)
157157
// Solve
158158
test.step();
159159

160-
for (int i = 0; i < test.q.size(); i++)
161-
{
162-
std::cout << test.q[i] << " ";
163-
}
164-
std::cout << std::endl;
165-
166160
// Check that contact velocity is null
167161
for (int foot_nb = 0; foot_nb < model_handler.getFeetNb(); foot_nb++)
168162
{
@@ -274,16 +268,8 @@ BOOST_AUTO_TEST_CASE(KinodynamicsID_allTasks)
274268
const size_t nq = model_handler.getModel().nq;
275269
const size_t nv = model_handler.getModel().nv;
276270

277-
// Set target
271+
// No need to set target as KinodynamicsID sets it by default to reference state
278272
const Eigen::VectorXd q_target = model_handler.getReferenceState().head(nq);
279-
std::vector<KinodynamicsID::TargetContactForce> f_target;
280-
for (int i = 0; i < 2; i++)
281-
{
282-
f_target.push_back(KinodynamicsID::TargetContactForce::Zero(6));
283-
f_target[i][2] = model_handler.getMass() * 9.81 / 4;
284-
}
285-
test.solver.setTarget(
286-
q_target, Eigen::VectorXd::Zero(nv), Eigen::VectorXd::Zero(nv), {true, true, true, true}, f_target);
287273

288274
const int N_STEP = 10000;
289275
for (int i = 0; i < N_STEP; i++)

0 commit comments

Comments
 (0)