sudo apt-get install gnuplot
cd src
make
./particlefilter
- Get map with anchors (possible to add and remove under ongoing process)
- Init m particles uniformly on the map ·· ···Particles will have:·· ··* position: {x,y,z} ··* state vector: [{addr:, ddist:},{addr:,...}] (calculated from {x,y,z}) ··* Weight: w (normalized)
- Calculate the weight ·· ···The weight is calculated by the multidimensional Gauss distribution where the axes are representing one anchor.
- The weight is normalized (w_i/sum(w_i)=weight)
- Re-sample particles (low variance sampling)
- Move particles according to accelerometer/gyro
- Calculate new state vector
- Go back to step 3
- Measurements form anchors (ddist) is uncorrelated (Sigma matrix is diagonal)
- Measurements are normal distributed
- The tag will have had the same acceleration from the previous measurement until the latest measurement
- Accelerometer has the same variance for all axis