Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
fix: Need type annotation for 'actual_distance'
Browse files Browse the repository at this point in the history
  • Loading branch information
engnadeau committed Aug 23, 2022
1 parent 7a80d5a commit e83324d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pybotics/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def compute_relative_error(
actual_position_a = position_from_matrix(pose_a)
actual_position_b = position_from_matrix(pose_b)

actual_distance = actual_position_a - actual_position_b
actual_distance = actual_position_a - actual_position_b # type: float
actual_distance = np.linalg.norm(actual_distance) # type: ignore

error = float(np.linalg.norm(distance - actual_distance)) # type: ignore
Expand Down

0 comments on commit e83324d

Please sign in to comment.