Skip to content

Commit

Permalink
Update pipeline.py
Browse files Browse the repository at this point in the history
Changed computation of `avg_ms` to use float value of `_get_fps()` instead of int `avg_fps`, which caused `ZeroDivisionError` if avg_fps was evaluated to 0
  • Loading branch information
kurthobein authored Sep 5, 2023
1 parent 5a10b26 commit 1e9af5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/kiss_icp/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _get_fps():
avg_tra, avg_rot = sequence_error(self.gt_poses, self.poses)
ate_rot, ate_trans = absolute_trajectory_error(self.gt_poses, self.poses)
avg_fps = int(np.floor(_get_fps()))
avg_ms = 1e3 * (1 / avg_fps)
avg_ms = 1e3 * (1 / _get_fps())

self.results.append(desc="Average Translation Error", units="%", value=avg_tra)
self.results.append(desc="Average Rotational Error", units="deg/m", value=avg_rot)
Expand Down

0 comments on commit 1e9af5b

Please sign in to comment.