evaluation stand
This commit is contained in:
@@ -330,8 +330,8 @@ public:
|
||||
statsDistFiltering.add(errDist);
|
||||
errorsNorm.push_back(err);
|
||||
errorsDistNorm.push_back(errDist);
|
||||
std::cout << "FilteringTime: " << se.ts << " " << statsFiltering.asString() << std::endl;
|
||||
std::cout << "FilteringDist: " << se.ts << " " << statsDistFiltering.asString() << std::endl;
|
||||
//std::cout << "FilteringTime: " << se.ts << " " << statsFiltering.asString() << std::endl;
|
||||
//std::cout << "FilteringDist: " << se.ts << " " << statsDistFiltering.asString() << std::endl;
|
||||
}
|
||||
|
||||
if(cnt > skip){
|
||||
@@ -377,8 +377,8 @@ public:
|
||||
errorsSmooth.push_back(errSmoothed);
|
||||
errorsDistSmooth.push_back(errDistSmoothed);
|
||||
|
||||
std::cout << "SmoothingTime: " << tsHistory[(tsHistory.size() - 1) - MiscSettings::lag] << " " << statsSmoothing.asString() << std::endl;
|
||||
std::cout << "SmoothingDist: " << tsHistory[(tsHistory.size() - 1) - MiscSettings::lag] << " " << statsDistSmoothing.asString() << std::endl;
|
||||
//std::cout << "SmoothingTime: " << tsHistory[(tsHistory.size() - 1) - MiscSettings::lag] << " " << statsSmoothing.asString() << std::endl;
|
||||
//std::cout << "SmoothingDist: " << tsHistory[(tsHistory.size() - 1) - MiscSettings::lag] << " " << statsDistSmoothing.asString() << std::endl;
|
||||
|
||||
//plot
|
||||
vis.clearStates();
|
||||
@@ -420,10 +420,10 @@ public:
|
||||
//Point2 p2 = p1 + Angle::getPointer(obs.orientation.values[0]) * 0.05;
|
||||
vis.gp << "set arrow 999 from screen " << p1.x<<","<<p1.y << " to screen " << p2.x<<","<<p2.y<<"\n";
|
||||
|
||||
vis.show();
|
||||
//vis.show();
|
||||
|
||||
// prevent gnuplot errors
|
||||
usleep(1000*33);
|
||||
//usleep(1000*33);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -487,7 +487,9 @@ public:
|
||||
vis.gp << "set arrow 999 from screen " << p1.x<<","<<p1.y << " to screen " << p2.x<<","<<p2.y<<"\n";
|
||||
|
||||
vis.show();
|
||||
|
||||
vis.show();
|
||||
vis.show();
|
||||
vis.show();
|
||||
// prevent gnuplot errors
|
||||
usleep(1000*33);
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
// state estimation step
|
||||
pf->setEstimation( std::unique_ptr<K::ParticleFilterEstimationWeightedAverageWithAngle<MyState>>(new K::ParticleFilterEstimationWeightedAverageWithAngle<MyState>()));
|
||||
//pf->setEstimation( std::unique_ptr<K::ParticleFilterEstimationRegionalWeightedAverage<MyState>>(new K::ParticleFilterEstimationRegionalWeightedAverage<MyState>()));
|
||||
//pf->setEstimation( std::unique_ptr<K::ParticleFilterEstimationOrderedWeightedAverage<MyState>>(new K::ParticleFilterEstimationOrderedWeightedAverage<MyState>(0.50f)));
|
||||
//pf->setEstimation( std::unique_ptr<K::ParticleFilterEstimationOrderedWeightedAverage<MyState>>(new K::ParticleFilterEstimationOrderedWeightedAverage<MyState>(0.50f)));
|
||||
|
||||
|
||||
//create the backward smoothing filter
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.05;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -115,6 +115,7 @@ public:
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
//bf->setEstimation( std::unique_ptr<K::ParticleFilterEstimationOrderedWeightedAverage<MyState>>(new K::ParticleFilterEstimationOrderedWeightedAverage<MyState>(0.50f)));
|
||||
bf->setEstimation(std::unique_ptr<K::ParticleFilterEstimationWeightedAverageWithAngle<MyState>>(new K::ParticleFilterEstimationWeightedAverageWithAngle<MyState>()));
|
||||
if(smoothing_resample)
|
||||
bf->setResampling( std::unique_ptr<K::ParticleFilterResamplingSimple<MyState>>(new K::ParticleFilterResamplingSimple<MyState>()) );
|
||||
@@ -145,7 +146,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.05;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Dijkstra
|
||||
@@ -174,7 +175,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.05;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -242,7 +243,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.05;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -311,7 +312,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.05;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -379,7 +380,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.05;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -448,7 +449,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.15;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -499,7 +500,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.15;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -551,7 +552,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.15;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
@@ -604,7 +605,7 @@ public:
|
||||
smoothing_heading_sigma = 5.0;
|
||||
smoothing_baro_sigma = 0.15;
|
||||
|
||||
bool smoothing_resample = false;
|
||||
bool smoothing_resample = true;
|
||||
|
||||
|
||||
//Smoothing using Simple Trans
|
||||
|
||||
@@ -313,8 +313,8 @@ public:
|
||||
statsDistFiltering.add(errDist);
|
||||
errorsNorm.push_back(err);
|
||||
errorsDistNorm.push_back(errDist);
|
||||
std::cout << "FilteringTime: " << se.ts << " " << statsFiltering.asString() << std::endl;
|
||||
std::cout << "FilteringDist: " << se.ts << " " << statsDistFiltering.asString() << std::endl;
|
||||
//std::cout << "FilteringTime: " << se.ts << " " << statsFiltering.asString() << std::endl;
|
||||
//std::cout << "FilteringDist: " << se.ts << " " << statsDistFiltering.asString() << std::endl;
|
||||
|
||||
//save the current estimation for later smoothing.
|
||||
pfHistory.push_back(pf->getNonResamplingParticles());
|
||||
@@ -395,8 +395,8 @@ public:
|
||||
errorsSmooth.push_back(errSmoothed);
|
||||
errorsDistSmooth.push_back(errDistSmoothed);
|
||||
|
||||
std::cout << "SmoothingTime: " << tsHistory[(tsHistory.size() - 1) - MiscSettings::lag] << " " << statsSmoothing.asString() << std::endl;
|
||||
std::cout << "SmoothingDist: " << tsHistory[(tsHistory.size() - 1) - MiscSettings::lag] << " " << statsDistSmoothing.asString() << std::endl;
|
||||
//std::cout << "SmoothingTime: " << tsHistory[t] << " " << statsSmoothing.asString() << std::endl;
|
||||
//std::cout << "SmoothingDist: " << tsHistory[t] << " " << statsDistSmoothing.asString() << std::endl;
|
||||
|
||||
|
||||
// plot
|
||||
@@ -486,6 +486,9 @@ public:
|
||||
//Point2 p2 = p1 + Angle::getPointer(obs.orientation.values[0]) * 0.05;
|
||||
vis.gp << "set arrow 999 from screen " << p1.x<<","<<p1.y << " to screen " << p2.x<<","<<p2.y<<"\n";
|
||||
|
||||
vis.show();
|
||||
vis.show();
|
||||
vis.show();
|
||||
vis.show();
|
||||
|
||||
// prevent gnuplot errors
|
||||
|
||||
Reference in New Issue
Block a user