Function 'filterPointCloudByTrajectory' does not work as intended #584
Labels
priority:high
High urgency and importance.
priority:low
Lower urgency, can be addressed later.
type:bug
Software flaws or errors.
Checklist
Description
Function
filterPointCloudByTrajectory
is used to filter a point cloud and only keep the points that are within a given distance from a trajectory. The current implementation is wrong and can return a point cloud with duplicate points and can be larger than the original point cloud.autoware.universe/control/obstacle_collision_checker/src/obstacle_collision_checker_node/obstacle_collision_checker.cpp
Lines 52 to 67 in b06ff44
Expected behavior
Function
filterPointCloudByTrajectory
returns a point cloud of size at most equal to the size of the input.Actual behavior
Function
filterPointCloudByTrajectory
can return a point cloud larger than the input.Steps to reproduce
Passing a very large
radius
will cause the bug.Versions
No response
Possible causes
The same
point
from the point cloud can be added multiple time if close enough to multipletrajectory_point
.Additional context
Possible fix:
The text was updated successfully, but these errors were encountered: