clearly state and check assumptions on input data of pointcloud_preprocessor
filters
#3318
Closed
3 tasks done
Labels
component:sensing
Data acquisition from sensors, drivers, preprocessing. (auto-assigned)
type:new-feature
New functionalities or additions, feature requests.
Checklist
Description
As a way to improve filters reliability, and after #3306 is merged, I would like to add proper assumption checks in
pointcloud_preprocessor
filters.As explained in #3306 and #2618, several
pointcloud_preprocessor
filters make implicit assumptions on the input data. In most cases these assumptions are correct but sometimes it is not the case. And when it is not, it is actually really difficult to find it out.For example
ring_outlier_filter
intensity output has been wrong for at least a year without anyone noticing.Purpose
Improve filters reliability.
Later, the information could be used to optimize the code further (e.g. use
constexpr
field offset when input data layout is compatible with known types.)Possible approaches
A simple solution is to add a simple check in each
filter
function that makes implicit assumptions on the input data, like this:Definition of done
reinterpret_cast<PointXYZI*>
)The text was updated successfully, but these errors were encountered: