Skip to content

Commit 57d4981

Browse files
authored
Move deskewing (#35)
1 parent b564329 commit 57d4981

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,8 +79,6 @@ 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-
8482
# Compute the difference between the prediction and the actual estimate
8583
model_deviation = np.linalg.inv(initial_guess) @ new_pose
8684

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

93-
return self.transform(point_deskewed, self.last_pose)
91+
points_deskewed = self.deskew(points, timestamps, self.last_delta)
92+
93+
return self.transform(points_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)