Skip to content

Commit 43ffc8e

Browse files
authored
Fix (#38)
1 parent 0bc6c99 commit 43ffc8e

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/mapmos/datasets/kitti.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def __init__(self, data_dir, sequence: str, *_, **__):
5252
self.label_files = sorted(glob.glob(self.label_dir + "*.label"))
5353

5454
def __getitem__(self, idx):
55-
points = self.scans(idx)
56-
timestamps = np.zeros(len(points))
55+
points, timestamps = self.scans(idx)
5756
labels = (
5857
self.read_labels(self.label_files[idx])
5958
if self.label_files

src/mapmos/odometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def deskew(self, points, timestamps, relative_motion):
109109
np.asarray(
110110
mapmos_pybind._deskew(
111111
frame=mapmos_pybind._Vector3dVector(points),
112-
timestamps=timestamps,
112+
timestamps=timestamps.ravel(),
113113
relative_motion=relative_motion,
114114
)
115115
)

0 commit comments

Comments
 (0)