Unverified Commit 70248f40 authored by Thomas PEYRUCAIN's avatar Thomas PEYRUCAIN Committed by GitHub
Browse files

Update tasks.cpp

Try to fix this warning:
tsid/tests/tasks.cpp: In member function ‘void tasksTest::test_task_joint_bounds::test_method()’: /home/rascof/tsid/tests/tasks.cpp:312:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] BOOST_CHECK(constraint.rows()==robot.nv()); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ tsid/tests/tasks.cpp: In member function ‘void tasksTest::test_task_joint_posVelAcc_bounds::test_method()’: tsid/tests/tasks.cpp:364:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] BOOST_CHECK(constraint.rows()==robot.na()); ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
parent dde5893b
Pipeline #11237 passed with stage
in 25 minutes and 4 seconds
......@@ -309,7 +309,7 @@ BOOST_AUTO_TEST_CASE ( test_task_joint_bounds )
{
robot.computeAllTerms(data, q, v);
const ConstraintBase & constraint = task.compute(t, q, v, data);
BOOST_CHECK(constraint.rows()==robot.nv());
BOOST_CHECK(constraint.rows()==(Eigen::Index)robot.nv());
BOOST_CHECK(static_cast<tsid::math::Index>(constraint.cols())==static_cast<tsid::math::Index>(robot.nv()));
BOOST_REQUIRE(isFinite(constraint.lowerBound()));
BOOST_REQUIRE(isFinite(constraint.upperBound()));
......@@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE ( test_task_joint_posVelAcc_bounds )
{
robot.computeAllTerms(data, q, v);
const ConstraintBase & constraint = task.compute(t, q, v, data);
BOOST_CHECK(constraint.rows()==robot.na());
BOOST_CHECK(constraint.rows()==(Eigen::Index)robot.na());
BOOST_CHECK(static_cast<tsid::math::Index>(constraint.cols())==static_cast<tsid::math::Index>(robot.nv()));
BOOST_REQUIRE(isFinite(constraint.lowerBound()));
BOOST_REQUIRE(isFinite(constraint.upperBound()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment