Skip to content

Commit 20dadd1

Browse files
author
Benedikt Mersch
authored
Revert "Move deskewing (#35)"
This reverts commit 57d4981.
1 parent 4440834 commit 20dadd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mapmos/odometry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def register_points(self, points, timestamps, scan_index):
7979
kernel=sigma / 3,
8080
)
8181

82+
point_deskewed = self.deskew(points, timestamps, self.last_delta)
83+
8284
# Compute the difference between the prediction and the actual estimate
8385
model_deviation = np.linalg.inv(initial_guess) @ new_pose
8486

@@ -88,9 +90,7 @@ def register_points(self, points, timestamps, scan_index):
8890
self.last_delta = np.linalg.inv(self.last_pose) @ new_pose
8991
self.last_pose = new_pose
9092

91-
points_deskewed = self.deskew(points, timestamps, self.last_delta)
92-
93-
return self.transform(points_deskewed, self.last_pose)
93+
return self.transform(point_deskewed, self.last_pose)
9494

9595
def get_map_points(self):
9696
map_points, map_timestamps = self.local_map.point_cloud_with_timestamps()

0 commit comments

Comments
 (0)