Ask Your Question

laser_filter LaserScanRangeFilter is only using NaN as replacement value

asked 2018-10-23 07:15:18 -0600

manster2209 gravatar image

updated 2018-10-24 07:51:51 -0600

SOLVED see answers

I want to use a laser_filter to limit my ranges to certain values. But after defining the thresholds it replaces them only with NaN Values instead of my defined replacement values.
Those are my parameters:

- name: range
  type: LaserScanRangeFilter
    use_message_range_limits: false
    lower_threshold: 4.0
    upper_threshold: 5.0
    lower_replacement_value: 4.1
    upper_replacement_value: 4.9

But instead of replacing the values outside of the threshold it sets them to NaN... image description

Any ideas? I feel like i am making some basic mistake.

Ok i realized the ndk crosscompile uses version: laser_filters-release-release-indigo-laser_filters-1.7.3-0. I will try to update to 1.8.6 and try again. Lets see if this fixes something

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-24 07:51:21 -0600

manster2209 gravatar image

So the problem was that the laser_filters package only supports replacement values for the ScanRangeFilter from version 1.8.5 and the ndk crosscompile had version 1.7.3. To update one can replace the version number of laser_filters in the ndk.rosinstall file of the crosscompilation. For it to compile one needs to update the version of the base package filters as well.

-    version: filters-release-release-indigo-filters-1.7.4-0
+    version: filters-release-release-indigo-filters-1.7.5-0
-    version: laser_filters-release-release-indigo-laser_filters-1.7.3-0
+    version: laser_filters-release-release-indigo-laser_filters-1.8.5-0
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-10-23 07:15:18 -0600

Seen: 70 times

Last updated: Oct 24 '18