visualize_weights is a ParticleFilter class variable instead of a sketchy global