Skip to content
Snippets Groups Projects
Commit 7a3ef81a authored by Christian-Vassallo's avatar Christian-Vassallo
Browse files

Merge branch 'trac/topic/dynamic_filter_with_metapod_clean' into topic/merge

parents 9d09175d eefa9613
No related branches found
No related tags found
No related merge requests found
......@@ -79,10 +79,10 @@ Solution_(),OFTG_DF_(0),OFTG_control_(0),dynamicFilter_(0)
QP_N_ = 16 ;
m_SamplingPeriod = 0.005 ;
InterpolationPeriod_ = QP_T_/10;
previewDuration_ = 0.7 ;
previewDuration_ = 0.6 ;
NbSampleControl_ = (int)round(QP_T_/m_SamplingPeriod) ;
NbSampleInterpolation_ = (int)round(QP_T_/InterpolationPeriod_) ;
previewSize_ = 7 ;
previewSize_ = 6 ;
StepPeriod_ = 0.8 ;
SSPeriod_ = 0.7 ;
DSPeriod_ = 0.1 ;
......
......@@ -498,21 +498,41 @@ protected:
}
}
void walkForward(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.2 0.0 0.0");
aPGI.ParseCmd(strm2);
}
}
void walkForward3m_s(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.3 0.0 0.0");
aPGI.ParseCmd(strm2);
}
}
void walkSidewards(PatternGeneratorInterface &aPGI)
void walkSidewards3m_s(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.0 -0.3 0.0");
aPGI.ParseCmd(strm2);
}
}
void startWalkInDiagonal(PatternGeneratorInterface &aPGI)
void walkSidewards2m_s(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.0 -0.2 0.0");
aPGI.ParseCmd(strm2);
}
}
void walkSidewards(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.0 -0.2 0.0");
aPGI.ParseCmd(strm2);
}
}
void startWalkInDiagonal2m_s(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.2 0.2 0.0");
......@@ -520,6 +540,14 @@ protected:
}
}
void startWalkInDiagonal3m_s(PatternGeneratorInterface &aPGI)
{
{
istringstream strm2(":setVelReference 0.3 0.3 0.0");
aPGI.ParseCmd(strm2);
}
}
void stopOnLineWalking(PatternGeneratorInterface &aPGI)
{
{
......@@ -558,9 +586,12 @@ protected:
};
#define localNbOfEvents 12
struct localEvent events [localNbOfEvents] =
{ { 5*200,&TestHerdt2010::startWalkInDiagonal},
{10*200,&TestHerdt2010::walkSidewards},
{15*200,&TestHerdt2010::startTurningRightOnSpot},
{ { 5*200,&TestHerdt2010::startWalkInDiagonal3m_s},
{ 8*200,&TestHerdt2010::startWalkInDiagonal3m_s},
{ 10*200,&TestHerdt2010::walkSidewards},
{ 12*200,&TestHerdt2010::walkSidewards3m_s},
{ 15*200,&TestHerdt2010::walkSidewards},
{20*200,&TestHerdt2010::startTurningRightOnSpot},
/* {25*200,&TestHerdt2010::startTurningRightOnSpot},
{35*200,&TestHerdt2010::walkForward},
{45*200,&TestHerdt2010::startTurningLeftOnSpot},*//*
......@@ -571,8 +602,8 @@ protected:
{95*200,&TestHerdt2010::startTurningRight},*/
// {105*200,&TestHerdt2010::stop},
// {110*200,&TestHerdt2010::stopOnLineWalking}};
{20*200,&TestHerdt2010::stop},
{25*200,&TestHerdt2010::stopOnLineWalking}};
{25*200,&TestHerdt2010::stop},
{30*200,&TestHerdt2010::stopOnLineWalking}};
// Test when triggering event.
for(unsigned int i=0;i<localNbOfEvents;i++)
{
......
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