Closed remco-r closed 3 years ago
i filed this too soon. probability is initialized as 1/particle_size and then in the measure step updated with likelihood. However still the sum will be near 1.0 and the entropy will not change, at least not in the printable digits.
FYI @DaikiMaekawa (https://github.com/at-wat/mcl_3dl/pull/265)
The status topic outputs
entropy
.Calculation happens like this:
sum
does not have to be calculated. Its always 1.0, becauseparticle.probability_ = 1/particles.size()
. Then,entropy
is always the same number if the particle size does not change. Particle size only changes when doing global localization. This is the only moment you can see theentropy
going down.What use is this metric if its not used in the code, and there is already
particle_size
present in the status output?