Skip to content

Commit 7244238

Browse files
author
Benedikt Mersch
authored
Move deskewing (#49)
1 parent 92c3a4d commit 7244238

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

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

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