Skip to content

Commit aae3980

Browse files
committed
Fixed bug in checking shift value length
1 parent b38442f commit aae3980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elevation_mapping_cupy/script/elevation_mapping.py

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

151151
def shift_map_xy(self, delta_pixel):
152152
shift_value = delta_pixel.astype(cp.int)
153-
if shift_value.sum() == 0:
153+
if cp.abs(shift_value).sum() == 0:
154154
return
155155
with self.map_lock:
156156
self.elevation_map = cp.roll(self.elevation_map, shift_value, axis=(1, 2))

0 commit comments

Comments
 (0)