changed visualisation
added new eval code for new walkers improved barometer (moving avg and median) floorplan-staircase-fixes disabled step-turn (now part of transition) added abs-orientation-reader (for testing) added beacons
This commit is contained in:
@@ -21,48 +21,27 @@ public:
|
||||
|
||||
return 1;
|
||||
|
||||
const float mdlWalked_m = state.walkState.distanceWalked_m;
|
||||
// see: particle-filter-control-data
|
||||
// const float mdlWalked_m = state.walkState.distanceWalked_m;
|
||||
|
||||
((MyState&)state).walkState.distanceWalked_m = 0;
|
||||
// ((MyState&)state).walkState.distanceWalked_m = 0;
|
||||
|
||||
const float stepSize_m = 0.71;
|
||||
const float sensSigma_m = 0.05 + (0.05 * obs->steps);
|
||||
const float sensWalked_m = obs->steps * stepSize_m;
|
||||
// const float stepSize_m = 0.71;
|
||||
// const float sensSigma_m = 0.05 + (0.05 * obs->steps);
|
||||
// const float sensWalked_m = obs->steps * stepSize_m;
|
||||
|
||||
if (obs->steps > 1) {
|
||||
int i = 0;
|
||||
int j = i+1; ++j;
|
||||
}
|
||||
|
||||
const double prob = K::NormalDistribution::getProbability(sensWalked_m, sensSigma_m, mdlWalked_m);
|
||||
|
||||
if (prob != prob) {
|
||||
throw 1;
|
||||
}
|
||||
|
||||
return prob;
|
||||
|
||||
// float a = 1.0;
|
||||
// float mu_distance = 0;
|
||||
// float sigma_distance = 0;
|
||||
|
||||
// if(obs->step) {
|
||||
// a = 1.0;
|
||||
// mu_distance = mu_walk;
|
||||
// sigma_distance = sigma_walk;
|
||||
// if (obs->steps > 1) {
|
||||
// int i = 0;
|
||||
// int j = i+1; ++j;
|
||||
// }
|
||||
|
||||
// else {
|
||||
// a = 0.0;
|
||||
// mu_distance = mu_stop;
|
||||
// sigma_distance = sigma_stop;
|
||||
// const double prob = K::NormalDistribution::getProbability(sensWalked_m, sensSigma_m, mdlWalked_m);
|
||||
|
||||
// if (prob != prob) {
|
||||
// throw 1;
|
||||
// }
|
||||
|
||||
// //Mixed Gaussian model: 1st Gaussian = step, 2nd Gaussian = no step
|
||||
// const double p = a * K::NormalDistribution::getProbability(mu_distance, sigma_distance, distance) +
|
||||
// (1.0-a) * K::NormalDistribution::getProbability(mu_distance, sigma_distance, distance);
|
||||
|
||||
// return p;
|
||||
// return prob;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user