Skip to content

Commit

Permalink
Canceled the default neck coordinates and leave it to be a failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Apr 23, 2024
1 parent 8e867d1 commit a761bab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions skills/src/lasr_skills/describe_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def execute(self, userdata):
result = self.bodypix(userdata.img_msg, "resnet50", 0.7, masks)
userdata.bodypix_masks = result.masks
rospy.logdebug("Found poses: %s" % str(len(result.poses)))
try:
neck_coord = (int(result.poses[0].coord[0]), int(result.poses[0].coord[1]))
except Exception:
neck_coord = (240, 320)
neck_coord = (int(result.poses[0].coord[0]), int(result.poses[0].coord[1]))
rospy.logdebug("Coordinate of the neck is: %s" % str(neck_coord))
return 'succeeded'
except rospy.ServiceException as e:
Expand Down

0 comments on commit a761bab

Please sign in to comment.