added fixed interval smoothing
This commit is contained in:
@@ -41,6 +41,9 @@ public:
|
||||
vis.estPath.clear();
|
||||
vis.particles.clear();
|
||||
vis.particles.add(K::GnuplotPoint3(this->centerOfMass.x, this->centerOfMass.y, this->centerOfMass.z));
|
||||
const int advance = this->stdDevDist / grid.getGridSize_cm();
|
||||
const T& d = *this->path->getFromStart(advance).element;
|
||||
vis.particles.add(K::GnuplotPoint3(d.x_cm, d.y_cm, d.z_cm));
|
||||
for (int i = 0; i < (int)this->path->size()-1; ++i) {
|
||||
const DijkstraNode<T>& dn1 = (*this->path)[i+0];
|
||||
const DijkstraNode<T>& dn2 = (*this->path)[i+1];
|
||||
|
||||
Reference in New Issue
Block a user