Skip to content

Commit

Permalink
📝 Doc: adding a TODO to better handle a edge case of image2world in t…
Browse files Browse the repository at this point in the history
…he future.
  • Loading branch information
igormaurell committed Nov 13, 2024
1 parent 1375c15 commit 0258de4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ def __detectionDescriptionProcessing(self, data, description2d, header):

center_depth = image_depth[int(center_y), int(center_x)]

#TODO:
'''
- important to apply a more suited error handling here
- in this current state the algorithm depends on the depth of the center pixel of the bounding box
- if it is invalid, the algorithm will return None
- a window around the center pixel of the bounding box can be used to get a valid depth value
- the window size can be increased until a valid depth value is found, or something like that
'''
if center_depth <= 0:
rospy.logwarn('INVALID DEPTH VALUE')
return None
Expand Down

0 comments on commit 0258de4

Please sign in to comment.