Skip to content

Commit

Permalink
Fix error if marker_[20] is not found.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirVincan committed Nov 21, 2022
1 parent 769f352 commit 610af17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mep3_localization/mep3_localization/aruco_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def find_map(self, transformation_matrices, ids):
"""
# https://stackoverflow.com/questions/952914/how-do-i-make-a-flat-list-out-of-a-list-of-lists
ids_flattened = [item for sublist in ids for item in sublist]
if 20 not in ids_flattened:
return
camera_marker20_tf = transformation_matrices[ids_flattened.index(20)]

# TODO: ne zelim da mi ovde stoje informacije o pozicijama na terenu
Expand Down

0 comments on commit 610af17

Please sign in to comment.