Skip to content

Commit 85095c1

Browse files
authored
fix(faster_voxel_grid_downsample_filter): typo in if statement in get_min_max_voxel() (#7796)
fix if condition in get_min_max_voxel() Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>
1 parent 598eca1 commit 85095c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sensing/pointcloud_preprocessor/src/downsample_filter/faster_voxel_grid_downsample_filter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ bool FasterVoxelGridDownsampleFilter::get_min_max_voxel(
107107
for (size_t global_offset = 0; global_offset + input->point_step <= input->data.size();
108108
global_offset += input->point_step) {
109109
Eigen::Vector4f point = get_point_from_global_offset(input, global_offset);
110-
if (std::isfinite(point[0]) && std::isfinite(point[1]), std::isfinite(point[2])) {
110+
if (std::isfinite(point[0]) && std::isfinite(point[1]) && std::isfinite(point[2])) {
111111
min_point = min_point.cwiseMin(point.head<3>());
112112
max_point = max_point.cwiseMax(point.head<3>());
113113
}

0 commit comments

Comments
 (0)