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

Filtering spikes from range data

asked 2012-11-13 14:42:06 -0500

Pi Robot gravatar image


Is it possible to use the filters package to remove spikes from real-time range data returned from sonar or IR sensors? I have a small robot running ROS that uses a number of sonar and IR sensors to detect obstacles. Every once in awhile the sensors will return a spurious value that can cause the robot to think there is an obstacle when there isn't. I don't want to use a mean filter because this slows down the robot's response to an obstacle that really is there. I just want to remove the spikes.

I can easily code this myself but I was wondering if the existing ROS filters can be used for the task?


edit retag flag offensive close merge delete


Thanks @Peshala--I will give that a try assuming it will work over a temporal series rather than a spatial laserscan. (Or maybe that's the way it works with the laserscan as well.)

Pi Robot gravatar image Pi Robot  ( 2012-11-16 03:32:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-11-13 22:09:46 -0500

ChickenSoup gravatar image

You can have a look at <> in addition to filters package; especially the ScanShadowsFilter

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-11-13 14:42:06 -0500

Seen: 743 times

Last updated: Nov 13 '12