ros-perception / openslam_gmapping

218 stars 206 forks source link

Potential bug in particlefilter.h #27

Open bergercookie opened 5 years ago

bergercookie commented 5 years ago

In particle filter.h there's the following code snippet: https://github.com/ros-perception/openslam_gmapping/blob/c716f0192131029b31a49554f8c11353d29819a5/include/gmapping/particlefilter/particlefilter.h#L140-L142 But this if doesn't guard anything, thus the second line out++ is always executed regardless of the if. Am I missing something?