Skip to content

Commit 6a82f38

Browse files
author
Benedikt Mersch
authored
Revert "Move deskewing (#49)" (#51)
This reverts commit 7244238.
1 parent bec3ccd commit 6a82f38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mos4d/odometry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def register_points(self, points, timestamps, scan_index):
7070
kernel=sigma / 3,
7171
)
7272

73+
point_deskewed = self.deskew(points, timestamps, self.last_delta)
74+
7375
# Compute the difference between the prediction and the actual estimate
7476
model_deviation = np.linalg.inv(initial_guess) @ new_pose
7577

@@ -79,9 +81,7 @@ def register_points(self, points, timestamps, scan_index):
7981
self.last_delta = np.linalg.inv(self.last_pose) @ new_pose
8082
self.last_pose = new_pose
8183

82-
points_deskewed = self.deskew(points, timestamps, self.last_delta)
83-
84-
return self.transform(points_deskewed, self.last_pose)
84+
return self.transform(point_deskewed, self.last_pose)
8585

8686
def transform(self, points, pose):
8787
points_hom = np.hstack((points, np.ones((len(points), 1))))

0 commit comments

Comments
 (0)