-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Box filter not filtering noise #86
Comments
In order to make my problem clearer, here is a quick example. This is part of the ranges vector with both the box filter and ranges filter:
And this is the same part without the range filter:
Notice that in the case of the box filter without the range filter, the inf values are the noisy 65.53299713134766 value. I would expect the box filter to replace these values with nan. |
I had a very similar problem with SICK lasers showing sensor noise with points very similar to yours. Maybe that helps you? |
Hey @nlimpert , thanks for the heads up! As I said in my original post, I hacked my way through the problem by using the range filter in addition to the box filter. I will definitely keep in mind your new filter though. Thanks again! |
I am using the box filter with a Hokuyo UST-10LX (10m maximum measuring distance). Sometimes the sensor returns values with a much larger value than the maximum one (>65m). Of course, this is just noise and should be disregarded. The problem is, that I need to use the range filter complementary to the box filter in order to have those "garbage" values disappear, because box filter alone, won't do that.
It seems to be a bug, but skimming through the box filter code, did not bring up anything out of the ordinary. Maybe I am missing something obvious. Can anyone enlighten me, please?
The text was updated successfully, but these errors were encountered: