Skip to content
Snippets Groups Projects
Commit df464589 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

taking the corresponding stateblock->getState in assertions

parent 7c54c88c
No related branches found
No related tags found
1 merge request!243Constraint prior sensor params
...@@ -66,7 +66,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_p) ...@@ -66,7 +66,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_p)
WOLF_INFO("SOLVER REPORT:\n",brief_report); WOLF_INFO("SOLVER REPORT:\n",brief_report);
//only orientation is constrained //only orientation is constrained
ASSERT_MATRIX_APPROX(frm0->getState().head<3>(), pose10.head<3>(), 1e-6); ASSERT_MATRIX_APPROX(frm0->getPPtr()->getState(), pose10.head<3>(), 1e-6);
} }
TEST(ConstraintBlockAbs, ctr_block_abs_p_tail2) TEST(ConstraintBlockAbs, ctr_block_abs_p_tail2)
...@@ -84,7 +84,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_p_tail2) ...@@ -84,7 +84,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_p_tail2)
WOLF_INFO("SOLVER REPORT:\n",brief_report); WOLF_INFO("SOLVER REPORT:\n",brief_report);
//only orientation is constrained //only orientation is constrained
ASSERT_MATRIX_APPROX(frm0->getState().tail<2>(), pose10.tail<2>(), 1e-6); ASSERT_MATRIX_APPROX(frm0->getPPtr()->getState().tail<2>(), pose10.tail<2>(), 1e-6);
} }
TEST(ConstraintBlockAbs, ctr_block_abs_v) TEST(ConstraintBlockAbs, ctr_block_abs_v)
...@@ -104,7 +104,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_v) ...@@ -104,7 +104,7 @@ TEST(ConstraintBlockAbs, ctr_block_abs_v)
WOLF_INFO("SOLVER REPORT:\n",brief_report); WOLF_INFO("SOLVER REPORT:\n",brief_report);
//only velocity is constrained //only velocity is constrained
ASSERT_MATRIX_APPROX(frm0->getState().tail<3>(), pose10.tail<3>(), 1e-6); ASSERT_MATRIX_APPROX(frm0->getVPtr()->getState(), pose10.tail<3>(), 1e-6);
} }
TEST(ConstraintQuatAbs, ctr_block_abs_o) TEST(ConstraintQuatAbs, ctr_block_abs_o)
...@@ -124,7 +124,7 @@ TEST(ConstraintQuatAbs, ctr_block_abs_o) ...@@ -124,7 +124,7 @@ TEST(ConstraintQuatAbs, ctr_block_abs_o)
WOLF_INFO("SOLVER REPORT:\n",brief_report); WOLF_INFO("SOLVER REPORT:\n",brief_report);
//only velocity is constrained //only velocity is constrained
ASSERT_MATRIX_APPROX(frm0->getState().segment<4>(3), pose10.segment<4>(3), 1e-6); ASSERT_MATRIX_APPROX(frm0->getOPtr()->getState(), pose10.segment<4>(3), 1e-6);
} }
int main(int argc, char **argv) int main(int argc, char **argv)
......
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