Static objects in Lidar view: set minimum distance or remove a sub-range of measurements
I have a Lidar which I can only mount on my robot in such a way that there is always a static obstacle (part of the robot) in the middle of the Lidar range. I am planning to use the Lidar for obstacle avoidance, thus I'd like to somehow remove the static obstacle from the Lidar view.
For my purposes it would be enough to filter out the measurements which are smaller than a certain min distance, or it would be even better if I could remove a certain angular range from the LaserScan. For example, my full Lidar range is from -135 degrees to +135 degrees, but I know that the measurements between, let's say, -10 degrees and +5 degrees will always return the same values (which will be interpreted by the obstacle avoidance algorithm as a very close object, and thus will affect the navigation), so I'd prefer to remove them from the LaserScan.
I am using: Hokuyo URG-04LX-UG01, urg_node driver, costmap_2d.
I could not find any standard mechanism for this in urg_node or costmap_2d, or another package. Please, let me know if such functionality is implemented anywhere, otherwise I'll have to write it myself. I'll appreciate any advice. Thanks.
Hello! Did you ever figure this out?