@@ -55,8 +55,10 @@ BOOST_AUTO_TEST_CASE(fulldynamics)
5555 QuadraticResidualCost * crc = csp->getComponent <QuadraticResidualCost>(" centroidal_cost" );
5656 QuadraticResidualCost * cpc = csp->getComponent <QuadraticResidualCost>(" left_sole_link_pose_cost" );
5757
58+ std::vector<bool > cs2 = {true , true };
5859 BOOST_CHECK_EQUAL (fdproblem.getSize (), 100 );
5960 BOOST_CHECK_EQUAL (fdproblem.getContactSupport (2 ), 2 );
61+ BOOST_TEST (fdproblem.getContactState (2 ) == cs2);
6062 BOOST_CHECK_EQUAL (cc->weights_ , settings.w_u );
6163 BOOST_CHECK_EQUAL (crc->weights_ , settings.w_cent );
6264 BOOST_CHECK_EQUAL (cpc->weights_ , settings.w_frame );
@@ -137,7 +139,9 @@ BOOST_AUTO_TEST_CASE(kinodynamics)
137139 QuadraticResidualCost * crc = csp->getComponent <QuadraticResidualCost>(" centroidal_cost" );
138140 QuadraticResidualCost * cpc = csp->getComponent <QuadraticResidualCost>(" left_sole_link_pose_cost" );
139141
142+ std::vector<bool > cs2 = {true , true };
140143 BOOST_CHECK_EQUAL (knproblem.getContactSupport (2 ), 2 );
144+ BOOST_TEST (knproblem.getContactState (2 ) == cs2);
141145 BOOST_CHECK_EQUAL (cc->weights_ , settings.w_u );
142146 BOOST_CHECK_EQUAL (crc->weights_ , settings.w_cent );
143147 BOOST_CHECK_EQUAL (cpc->weights_ , settings.w_frame );
@@ -220,7 +224,9 @@ BOOST_AUTO_TEST_CASE(centroidal)
220224 QuadraticResidualCost * crc = csp->getComponent <QuadraticResidualCost>(" linear_mom_cost" );
221225 QuadraticResidualCost * cpc = csp->getComponent <QuadraticResidualCost>(" angular_acc_cost" );
222226
227+ std::vector<bool > cs2 = {true , true };
223228 BOOST_CHECK_EQUAL (cproblem.getContactSupport (2 ), 2 );
229+ BOOST_TEST (cproblem.getContactState (2 ) == cs2);
224230 BOOST_CHECK_EQUAL (cc->weights_ , settings.w_u );
225231 BOOST_CHECK_EQUAL (crc->weights_ , settings.w_linear_mom );
226232 BOOST_CHECK_EQUAL (cpc->weights_ , settings.w_angular_acc );
@@ -308,7 +314,9 @@ BOOST_AUTO_TEST_CASE(centroidal_solo)
308314 QuadraticResidualCost * crc = csp->getComponent <QuadraticResidualCost>(" linear_mom_cost" );
309315 QuadraticResidualCost * cpc = csp->getComponent <QuadraticResidualCost>(" angular_acc_cost" );
310316
317+ std::vector<bool > cs2 = {true , true , true , true };
311318 BOOST_CHECK_EQUAL (cproblem.getContactSupport (2 ), 4 );
319+ BOOST_TEST (cproblem.getContactState (2 ) == cs2);
312320 BOOST_CHECK_EQUAL (cc->weights_ , settings.w_u );
313321 BOOST_CHECK_EQUAL (crc->weights_ , settings.w_linear_mom );
314322 BOOST_CHECK_EQUAL (cpc->weights_ , settings.w_angular_acc );
0 commit comments