@@ -178,18 +178,18 @@ namespace dynamicgraph
178178 << m_com_accSOUT \
179179 << m_com_acc_desSOUT \
180180 << m_base_orientationSOUT \
181- << m_right_foot_posSOUT \
182181 << m_left_foot_posSOUT \
183- << m_right_hand_posSOUT \
182+ << m_right_foot_posSOUT \
184183 << m_left_hand_posSOUT \
185- << m_right_foot_velSOUT \
184+ << m_right_hand_posSOUT \
186185 << m_left_foot_velSOUT \
187- << m_right_hand_velSOUT \
186+ << m_right_foot_velSOUT \
188187 << m_left_hand_velSOUT \
189- << m_right_foot_accSOUT \
188+ << m_right_hand_velSOUT \
190189 << m_left_foot_accSOUT \
191- << m_right_hand_accSOUT \
190+ << m_right_foot_accSOUT \
192191 << m_left_hand_accSOUT \
192+ << m_right_hand_accSOUT \
193193 << m_right_foot_acc_desSOUT \
194194 << m_left_foot_acc_desSOUT
195195
@@ -300,28 +300,29 @@ namespace dynamicgraph
300300 ,CONSTRUCT_SIGNAL_OUT(com_acc, dg::Vector, m_tau_desSOUT)
301301 ,CONSTRUCT_SIGNAL_OUT(com_acc_des, dg::Vector, m_tau_desSOUT)
302302 ,CONSTRUCT_SIGNAL_OUT(base_orientation, dg::Vector, m_tau_desSOUT)
303- ,CONSTRUCT_SIGNAL_OUT(left_foot_pos, dg::Vector, m_tau_desSOUT)
304303 ,CONSTRUCT_SIGNAL_OUT(right_foot_pos, dg::Vector, m_tau_desSOUT)
305- ,CONSTRUCT_SIGNAL_OUT(left_hand_pos , dg::Vector, m_tau_desSOUT)
304+ ,CONSTRUCT_SIGNAL_OUT(left_foot_pos , dg::Vector, m_tau_desSOUT)
306305 ,CONSTRUCT_SIGNAL_OUT(right_hand_pos, dg::Vector, m_tau_desSOUT)
307- ,CONSTRUCT_SIGNAL_OUT(left_foot_vel , dg::Vector, m_tau_desSOUT)
306+ ,CONSTRUCT_SIGNAL_OUT(left_hand_pos , dg::Vector, m_tau_desSOUT)
308307 ,CONSTRUCT_SIGNAL_OUT(right_foot_vel, dg::Vector, m_tau_desSOUT)
309- ,CONSTRUCT_SIGNAL_OUT(left_hand_vel , dg::Vector, m_tau_desSOUT)
308+ ,CONSTRUCT_SIGNAL_OUT(left_foot_vel , dg::Vector, m_tau_desSOUT)
310309 ,CONSTRUCT_SIGNAL_OUT(right_hand_vel, dg::Vector, m_tau_desSOUT)
311- ,CONSTRUCT_SIGNAL_OUT(left_foot_acc , dg::Vector, m_tau_desSOUT)
310+ ,CONSTRUCT_SIGNAL_OUT(left_hand_vel , dg::Vector, m_tau_desSOUT)
312311 ,CONSTRUCT_SIGNAL_OUT(right_foot_acc, dg::Vector, m_tau_desSOUT)
313- ,CONSTRUCT_SIGNAL_OUT(left_hand_acc , dg::Vector, m_tau_desSOUT)
312+ ,CONSTRUCT_SIGNAL_OUT(left_foot_acc , dg::Vector, m_tau_desSOUT)
314313 ,CONSTRUCT_SIGNAL_OUT(right_hand_acc, dg::Vector, m_tau_desSOUT)
314+ ,CONSTRUCT_SIGNAL_OUT(left_hand_acc, dg::Vector, m_tau_desSOUT)
315+ ,CONSTRUCT_SIGNAL_OUT(right_foot_acc_des, dg::Vector, m_tau_desSOUT)
315316 ,CONSTRUCT_SIGNAL_OUT(left_foot_acc_des, dg::Vector, m_tau_desSOUT)
316317 ,CONSTRUCT_SIGNAL_INNER(active_joints_checked, dg::Vector, m_active_jointsSIN)
317318 ,m_t (0.0 )
318319 ,m_initSucceeded(false )
319320 ,m_enabled(false )
320321 ,m_firstTime(true )
321322 ,m_contactState(DOUBLE_SUPPORT)
322- ,m_timeLast(0 )
323323 ,m_rightHandState(TASK_RIGHT_HAND_OFF)
324324 ,m_leftHandState(TASK_LEFT_HAND_OFF)
325+ ,m_timeLast(0 )
325326 ,m_robot_util(RefVoidRobotUtil())
326327 {
327328 RESETDEBUG5 ();
@@ -428,7 +429,7 @@ namespace dynamicgraph
428429 m_contactState = RIGHT_SUPPORT;
429430 }
430431 }
431-
432+
432433 void InverseDynamicsBalanceController::addTaskRightHand (/* const double& transitionTime*/ )
433434 {
434435 if (m_rightHandState == TASK_RIGHT_HAND_OFF)
@@ -623,7 +624,7 @@ namespace dynamicgraph
623624 m_taskPosture->Kp (kp_posture);
624625 m_taskPosture->Kd (kd_posture);
625626 m_invDyn->addMotionTask (*m_taskPosture, m_w_posture, 1 );
626-
627+
627628 m_taskRH = new TaskSE3Equality (" task-rh" , *m_robot, m_robot_util->m_hand_util .m_Right_Hand_Frame_Name );
628629 m_taskRH->Kp (kp_hands);
629630 m_taskRH->Kd (kd_hands);
@@ -926,7 +927,7 @@ namespace dynamicgraph
926927 m_contactRF->setReference (H_rf);
927928 SEND_MSG (" Setting right foot reference to " +toString (H_rf), MSG_TYPE_DEBUG);
928929 }
929- else if (m_timeLast != static_cast <unsigned int >(iter-1 ))
930+ else if (m_timeLast != static_cast <unsigned int >(iter-1 ))
930931 {
931932 SEND_MSG (" Last time " +toString (m_timeLast)+" is not current time-1: " +toString (iter), MSG_TYPE_ERROR);
932933 if (m_timeLast == static_cast <unsigned int >(iter))
@@ -1455,7 +1456,9 @@ namespace dynamicgraph
14551456 {
14561457 if (!m_initSucceeded)
14571458 {
1458- SEND_WARNING_STREAM_MSG (" Cannot compute signal left_hand_vel before initialization!" );
1459+ std::ostringstream oss (" Cannot compute signal left_hand_vel before initialization!:" );
1460+ oss << iter;
1461+ SEND_WARNING_STREAM_MSG (oss.str ());
14591462 return s;
14601463 }
14611464 pinocchio::Motion v;
@@ -1482,7 +1485,7 @@ namespace dynamicgraph
14821485 {
14831486 if (!m_initSucceeded)
14841487 {
1485- SEND_WARNING_STREAM_MSG (" Cannot compute signal right_hand_vel before initialization!" );
1488+ SEND_WARNING_STREAM_MSG (" Cannot compute signal right_hand_vel before initialization! " + toString (iter) );
14861489 return s;
14871490 }
14881491 pinocchio::Motion v;
@@ -1495,7 +1498,7 @@ namespace dynamicgraph
14951498 {
14961499 if (!m_initSucceeded)
14971500 {
1498- SEND_WARNING_STREAM_MSG (" Cannot compute signal left_foot_acc before initialization!" );
1501+ SEND_WARNING_STREAM_MSG (" Cannot compute signal left_foot_acc before initialization! " + toString (iter) );
14991502 return s;
15001503 }
15011504 m_tau_desSOUT (iter);
0 commit comments