Skip to content

Commit

Permalink
feat: logwarn when no people are detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
jws-1 committed Apr 18, 2024
1 parent d817093 commit 51bc095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions skills/src/lasr_skills/find_named_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self):

def execute(self, userdata):
if len(userdata.detections_3d.detected_objects) == 0:
rospy.logwarn("No person detected, returning failed.")
return "failed"
userdata.person_point = userdata.detections_3d.detected_objects[0].point
return "succeeded"
Expand Down
1 change: 1 addition & 0 deletions skills/src/lasr_skills/find_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def __init__(self):

def execute(self, userdata):
if len(userdata.detections_3d.detected_objects) == 0:
rospy.logwarn("No person detected, returning failed.")
return "failed"
userdata.person_point = userdata.detections_3d.detected_objects[0].point
return "succeeded"
Expand Down

0 comments on commit 51bc095

Please sign in to comment.