ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

using laser_filters to convert inf readings to max_range + 1 from hokuyo

asked 2015-05-11 16:20:36 -0500

Naman gravatar image

updated 2015-05-12 09:46:12 -0500

Hi all,

I have a hokuyo laser sensor and I am using hokuyo_node to get the Laser Scan. Then, I am using LaserScanRangeFilter to filter out the readings to get max_range + 1 in cases where the hokuyo_node gives inf reading. The problem is instead of getting max_range + 1, I get nan readings for all the previous inf readings after running the filter. The launch file:

    <node pkg="hokuyo_node" type="hokuyo_node" name="Laser_node" output="screen">
        <param name="port" value="/dev/ttyACM1"/>
        <param name="angle_min" value="-1.5707963"/>
        <param name="angle_max" value="1.5707963"/>
    <node pkg="laser_filters" type="scan_to_scan_filter_chain" name="laser_filter">
            <rosparam command="load" file="$(find starter_node)/move_base_config/hokuyo_config.yaml" /> 
        <remap from="base_scan" to="scan" />


- name: range
  type: LaserScanRangeFilter
    lower_threshold: 0.02
    upper_threshold: 10

The output of rosparam list:


I am not able to figure out what is causing it. Does anyone has any idea about how to solve this issue?

Thanks in advance.
Naman Kumar

edit retag flag offensive close merge delete


Hi ! I have the same issue as you... Have you found the solution ? Thanks a lot !!

hubble gravatar image hubble  ( 2015-06-16 12:52:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-05 19:09:17 -0500

harsha336 gravatar image

You have to add the lower_replacement_value and upper_replacement_value. Else they are taken as NaN by default.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-05-11 16:20:36 -0500

Seen: 1,580 times

Last updated: Apr 05 '18