Skip to content

Commit 4d1f730

Browse files
author
earlaud
committed
Minor change on velocity limits check
1 parent 14b6f9a commit 4d1f730

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/inverse_dynamics.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ void check_joint_limits(
3636
BOOST_CHECK_LE(q[7 + i], model_handler.getModel().upperPositionLimit[7 + i]);
3737
BOOST_CHECK_GE(q[7 + i], model_handler.getModel().lowerPositionLimit[7 + i]);
3838
BOOST_CHECK_LE(v[6 + i], model_handler.getModel().upperVelocityLimit[6 + i]);
39-
BOOST_CHECK_GE(v[6 + i], -model_handler.getModel().upperVelocityLimit[6 + i]);
39+
BOOST_CHECK_GE(
40+
v[6 + i],
41+
-model_handler.getModel().upperVelocityLimit[6 + i]); // Do not use lower velocity bound as TSID cannot handle it
4042
BOOST_CHECK_LE(tau[6 + i], model_handler.getModel().upperEffortLimit[6 + i]);
4143
BOOST_CHECK_GE(tau[6 + i], model_handler.getModel().lowerEffortLimit[6 + i]);
4244
}

0 commit comments

Comments
 (0)