new bbox features (2D, 3D)

added stair-sanitizing code
adjusted walkers
This commit is contained in:
2016-02-06 15:02:41 +01:00
parent 382a046df1
commit 5b35b5d3e0
4 changed files with 74 additions and 8 deletions

View File

@@ -91,11 +91,11 @@ private:
const float diff = possibleHead.getDiffHalfRAD(head);
// // compare this heading with the requested one
const double angleProb = Distribution::Normal<float>::getProbability(0, Angle::degToRad(15), diff);
const double angleProb = Distribution::Normal<float>::getProbability(0, Angle::degToRad(25), diff);
// const double angleProb = (diff <= Angle::degToRad(15)) ? 1 : 0.1; // favor best 3 angles equally
// nodes own importance
const double nodeProb = (possible.distToTarget < start.distToTarget) ? 1 : 0.0;
const double nodeProb = (possible.distToTarget < start.distToTarget) ? 1 : 0.025;
// bring it together
return angleProb * nodeProb;