Skip to content

Commit 418b103

Browse files
authored
Merge pull request #58 from CihatAltiparmak/main
Fixed cupy.int as cupy.int32
2 parents 8285814 + ed97e20 commit 418b103

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elevation_mapping_cupy/script/elevation_mapping_cupy/elevation_mapping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def pad_value(self, x, shift_value, idx=None, value=0.0):
149149
x[idx, :, shift_value[1] :] = value
150150

151151
def shift_map_xy(self, delta_pixel):
152-
shift_value = delta_pixel.astype(cp.int)
152+
shift_value = delta_pixel.astype(cp.int32)
153153
if cp.abs(shift_value).sum() == 0:
154154
return
155155
with self.map_lock:

elevation_mapping_cupy/script/elevation_mapping_cupy/traversability_polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def transform_to_map_position(polygon, center, cell_n, resolution):
5959

6060

6161
def transform_to_map_index(points, center, cell_n, resolution):
62-
indices = ((points - center.reshape(1, 2)) / resolution + cell_n / 2).astype(cp.int)
62+
indices = ((points - center.reshape(1, 2)) / resolution + cell_n / 2).astype(cp.int32)
6363
return indices
6464

6565

0 commit comments

Comments
 (0)