Skip to content

Commit 7a3cc32

Browse files
author
earlaud
committed
Skip first point in all tasks test
1 parent 81037cb commit 7a3cc32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/inverse_dynamics.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ BOOST_AUTO_TEST_CASE(KinodynamicsID_allTasks)
156156

157157
// Check error is decreasing
158158
Eigen::VectorXd new_error = pinocchio::difference(model_handler.getModel(), q, q_target);
159-
BOOST_CHECK_LE(new_error.norm(), error.norm());
159+
if (i > 1) // Skip first point
160+
BOOST_CHECK_LE(new_error.norm(), error.norm());
160161
error = new_error;
161162
}
162163
}

0 commit comments

Comments
 (0)