Skip to content

Commit 213cd41

Browse files
fix(lidar_centerpoint): correct index check in shufflePoints_kernel (autowarefoundation#11711) (#2584)
fix(lidar_centerpoint): correct index check in shufflePoints_kernel function Signed-off-by: jkoronczok <jkoronczok@autonomous-systems.pl> Co-authored-by: jakor97 <51270271+jakor97@users.noreply.github.com>
1 parent c9757db commit 213cd41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perception/autoware_lidar_centerpoint/lib/preprocess/preprocess_kernel.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ __global__ void shufflePoints_kernel(
100100
int src_idx = indices[(point_idx + offset) % max_size];
101101
int dst_idx = point_idx;
102102

103-
if (dst_idx >= points_size) {
103+
if (src_idx >= points_size) {
104104
shuffled_points[POINT_NUM_FEATURES * dst_idx + 0] = INFINITY;
105105
shuffled_points[POINT_NUM_FEATURES * dst_idx + 1] = INFINITY;
106106
shuffled_points[POINT_NUM_FEATURES * dst_idx + 2] = INFINITY;

0 commit comments

Comments
 (0)