Skip to content
Snippets Groups Projects
Commit 84a1b205 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Revert "Online mode only"

This reverts commit 7c4555db.
parent ac4c9c9b
No related branches found
No related tags found
No related merge requests found
......@@ -1108,6 +1108,7 @@ namespace PatternGeneratorJRL {
{
m_InternalClock = 0.0;
setVelReference(strm);
m_ZMPVRQP->Online = 1;
initOnlineHerdt();
printf("Online \n");
//ODEBUG4("InitOnLine","DebugHerdt.txt");
......@@ -1319,16 +1320,18 @@ namespace PatternGeneratorJRL {
}
}
if (m_AlgorithmforZMPCOM==ZMPCOM_HERDT_2010)
if (m_AlgorithmforZMPCOM==ZMPCOM_HERDT_2010 && m_ZMPVRQP->Online==1)
{
ODEBUG("InternalClock:" <<m_InternalClock <<
" SamplingPeriod: "<<m_SamplingPeriod);
// cout<<"size before online"<<m_ZMPPositions.size()<<endl;
m_ZMPVRQP->OnLine(m_InternalClock,
m_ZMPPositions,
m_COMBuffer,
m_LeftFootPositions,
m_RightFootPositions);
// cout<<"size after online"<<m_ZMPPositions.size()<<endl;
}
......
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