Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pmokeev committed Feb 7, 2024
1 parent 8d1ea4f commit 9b15587
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions slam/utils/undistortioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def __call__(
initial_point_cloud.transform(initial_pose)
target_point_cloud.transform(target_pose)

initial_point_cloud.transform(np.linalg.inv(initial_pose))

coefficients = np.roll(coefficients, -len(coefficients) // 2)

for i in range(1, self._segments_number):
Expand All @@ -57,7 +55,7 @@ def _get_intermediate_transform(
target_pose: Array4x4[float],
coefficient: float,
):
dxi = mrob.geometry.SE3(initial_pose @ np.linalg.inv(target_pose)).Ln()
dxi = mrob.geometry.SE3(target_pose @ np.linalg.inv(initial_pose)).Ln()
return mrob.geometry.SE3(coefficient * dxi).T() @ initial_pose

def _cut_segment(
Expand Down

0 comments on commit 9b15587

Please sign in to comment.