How to add filter to pointcloud_to_laserscan package and depthimage_to_laserscan package
I need to add filters to my pointcloud
anddepthimage
data before converting them to laserscan
data due to noise. Seeing as there are weel knwon packages (pointcloud-to-laserscan, depthimage-to-laserscan) that do these conversions, I was thinking to modify the source code of these packages by adding a median filter for instance,in the case of depthimage. Looking at the source code of the pointcloud-to-laserscan package for instance, it's unclear where in the code I can implement the filter, if that's possible. Does anyone have experience with this? or is there an easier way about this?