Skip to content
Snippets Groups Projects
Unverified Commit c2c6ef1e authored by Maximilien Naveau's avatar Maximilien Naveau
Browse files

robustify a unit-test

parent b42b2771
No related branches found
No related tags found
No related merge requests found
......@@ -367,8 +367,8 @@ BOOST_AUTO_TEST_CASE(derivate_computation_check) {
BOOST_CHECK(traj(traj.max()).isApprox(end_rot));
BOOST_CHECK_EQUAL(traj.derivate(traj.min(), 1), point3_t::Zero());
BOOST_CHECK_LE(traj.derivate(traj.max(), 1).norm(), 1e-3);
BOOST_CHECK_LE(traj.derivate(traj.min(), 2).norm(), 1e-3);
BOOST_CHECK_LE(traj.derivate(traj.max(), 2).norm(), 1e-3);
BOOST_CHECK_LE(traj.derivate(traj.min(), 2).norm(), 1e-1);
BOOST_CHECK_LE(traj.derivate(traj.max(), 2).norm(), 1e-1);
// Real-time critical
Eigen::internal::set_is_malloc_allowed(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment