From a23191f36e08df2852de41b5e5f2a8d21bd2dfcf Mon Sep 17 00:00:00 2001 From: Jonas Frey Date: Thu, 18 Apr 2024 12:37:39 +0200 Subject: [PATCH] fix bug --- .../elevation_mapping_cupy/kernels/custom_image_kernels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elevation_mapping_cupy/script/elevation_mapping_cupy/kernels/custom_image_kernels.py b/elevation_mapping_cupy/script/elevation_mapping_cupy/kernels/custom_image_kernels.py index ce03ee8f..a29668a2 100644 --- a/elevation_mapping_cupy/script/elevation_mapping_cupy/kernels/custom_image_kernels.py +++ b/elevation_mapping_cupy/script/elevation_mapping_cupy/kernels/custom_image_kernels.py @@ -22,7 +22,7 @@ def image_to_map_correspondence_kernel(resolution, width, height, tolerance_z_co return layer * layer_n + idx; } __device__ bool is_inside_map(int x, int y) { - return (x >= 0 && y >= 0 && x<${width} && x<${height}); + return (x >= 0 && y >= 0 && x<${width} && y<${height}); } __device__ float get_l2_distance(int x0, int y0, int x1, int y1) { float dx = x0-x1;