diff --git a/src/test/gtest_constraint_absolute.cpp b/src/test/gtest_constraint_absolute.cpp index 40a838ed4ddf34ab5690f1a05c633469f8560706..ca2eb9c5b0ad6ab61e358b3f826f3646900472e7 100644 --- a/src/test/gtest_constraint_absolute.cpp +++ b/src/test/gtest_constraint_absolute.cpp @@ -71,7 +71,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_p) TEST(ConstraintBlockAbs, ctr_block_abs_p_tail2) { - FeatureBasePtr fea0 = cap0->addFeature(std::make_shared<FeatureBase>("POSITION TAIL 2", pose10.tail<2>(), data_cov.bottomRightCorner<2,2>())); + FeatureBasePtr fea0 = cap0->addFeature(std::make_shared<FeatureBase>("POSITION TAIL 2", pose10.segment<2>(1), data_cov.bottomRightCorner<2,2>())); fea0->addConstraint(std::make_shared<ConstraintBlockAbsolute>(fea0->getFramePtr()->getPPtr(),1,2)); // Unfix frame 0, perturb frm0