From a761bab88700a9e8b8dcddbc09a413a38336f889 Mon Sep 17 00:00:00 2001 From: Benteng Ma Date: Tue, 23 Apr 2024 16:57:53 +0100 Subject: [PATCH] Canceled the default neck coordinates and leave it to be a failure. --- skills/src/lasr_skills/describe_people.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/skills/src/lasr_skills/describe_people.py b/skills/src/lasr_skills/describe_people.py index 4b2475748..56010f6ca 100755 --- a/skills/src/lasr_skills/describe_people.py +++ b/skills/src/lasr_skills/describe_people.py @@ -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: