diff --git a/src/test/gtest_constraint_absolute.cpp b/src/test/gtest_constraint_absolute.cpp index 5e9cc4e7a42f7a115b0af8739d33b37da28cd106..1a09aa208cc89ee1fb6fbee4c2dd6d8f6be71fd2 100644 --- a/src/test/gtest_constraint_absolute.cpp +++ b/src/test/gtest_constraint_absolute.cpp @@ -79,7 +79,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_p_tail2) std::string brief_report = ceres_mgr.solve(wolf::SolverManager::ReportVerbosity::BRIEF); //only orientation is constrained - ASSERT_MATRIX_APPROX(frm0->getPPtr()->getState().tail<2>(), pose10.tail<2>(), 1e-6); + ASSERT_MATRIX_APPROX(frm0->getPPtr()->getState().tail<2>(), pose10.segment<2>(1), 1e-6); } TEST(ConstraintBlockAbs, ctr_block_abs_v)