Closes #3 integrated new testdata with wifidongles
This commit is contained in:
@@ -251,7 +251,7 @@ struct PFTransKLDSampling : public K::ParticleFilterTransition<MyState, MyContro
|
||||
//walker.addModule(&modSpread); // might help in some situations! keep in mind!
|
||||
//walker.addModule(&modActivity);
|
||||
//walker.addModule(&modHeadUgly);
|
||||
walker.addModule(&modImportance);
|
||||
//walker.addModule(&modImportance);
|
||||
//walker.addModule(&modFavorZ);
|
||||
//walker.addModule(&modButterAct);
|
||||
//walker.addModule(&modWifi);
|
||||
@@ -513,9 +513,9 @@ struct PFEval : public K::ParticleFilterEvaluation<MyState, MyObs> {
|
||||
Point3 posOld_m = p.state.positionOld.inMeter();
|
||||
|
||||
double pWifi = getWIFI(observation, wifiObs, p.state.position);
|
||||
const double pBaroPressure = getStairProb(p, observation.activity);
|
||||
const double pStairProb = getStairProb(p, observation.activity);
|
||||
const double pStepDistance = getStepDistanceProb(pos_m, posOld_m);
|
||||
//const double pBaroPressure = getBaroPressure(observation, p.state.relativePressure);
|
||||
const double pBaroPressure = getBaroPressure(observation, p.state.relativePressure);
|
||||
//const double pBeacon = getBEACON(observation, p.state.position);
|
||||
|
||||
//small checks
|
||||
@@ -532,7 +532,7 @@ struct PFEval : public K::ParticleFilterEvaluation<MyState, MyObs> {
|
||||
//p.weight = std::pow(p.weight, 0.5);
|
||||
}
|
||||
|
||||
const double prob = pWifi * pStepDistance;// * pBaroPressure;
|
||||
const double prob = pWifi * pBaroPressure * pStairProb;
|
||||
|
||||
p.weight = prob;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user