@@ -269,14 +269,14 @@ BOOST_AUTO_TEST_CASE(KinodynamicsID_baseTask)
269269BOOST_AUTO_TEST_CASE (KinodynamicsID_allTasks)
270270{
271271 TestKinoID test (
272- getTalosModelHandler (), KinodynamicsID::Settings ()
273- .set_kp_base (7 .)
274- .set_kp_posture (10 .)
275- .set_kp_contact (1.0 )
276- .set_w_base (10.0 )
277- .set_w_posture (10.0 )
278- .set_w_contact_force (. 1 )
279- .set_w_contact_motion (1.0 ));
272+ getSoloHandler (), KinodynamicsID::Settings ()
273+ .set_kp_base (10 .)
274+ .set_kp_posture (1 .)
275+ .set_kp_contact (10 . )
276+ .set_w_base (10.0 )
277+ .set_w_posture (0.1 )
278+ .set_w_contact_force (1.0 )
279+ .set_w_contact_motion (1.0 ));
280280
281281 // Easy access
282282 const RobotModelHandler & model_handler = test.model_handler ;
@@ -286,7 +286,8 @@ BOOST_AUTO_TEST_CASE(KinodynamicsID_allTasks)
286286 // No need to set target as KinodynamicsID sets it by default to reference state
287287 const Eigen::VectorXd q_target = model_handler.getReferenceState ().head (nq);
288288
289- const int N_STEP = 10000 ;
289+ test.q = solo_q_start (model_handler);
290+ const int N_STEP = 1000 ;
290291 for (int i = 0 ; i < N_STEP; i++)
291292 {
292293 // Solve
@@ -295,6 +296,7 @@ BOOST_AUTO_TEST_CASE(KinodynamicsID_allTasks)
295296 // Check error is decreasing
296297 const Eigen::VectorXd delta_q = pinocchio::difference (model_handler.getModel (), test.q , q_target);
297298 const double error = delta_q.norm ();
299+
298300 BOOST_CHECK (test.is_error_decreasing (" q" , error));
299301 }
300302}
0 commit comments