Particle-Filter
Particle-Filter copied to clipboard
Particle updates are only written to weights vector but not stored in the particles
File: Particle-Filter/src/particle_filter.cpp:172
p.weight = probability;
The results are not written back to the member variable particles. Is this correct?
If not the fix:
particles[i].weight = probability;