From 547a9edd9b323614bdd93bc8bde323fcb26bba4c Mon Sep 17 00:00:00 2001 From: tiago Date: Tue, 4 Jun 2024 17:05:49 +0100 Subject: [PATCH] Minor cleanup --- .../src/receptionist/states/detect_faces.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tasks/receptionist/src/receptionist/states/detect_faces.py b/tasks/receptionist/src/receptionist/states/detect_faces.py index 2cf7c63e1..621a26e78 100644 --- a/tasks/receptionist/src/receptionist/states/detect_faces.py +++ b/tasks/receptionist/src/receptionist/states/detect_faces.py @@ -47,12 +47,6 @@ def detect(self, image): except rospy.ServiceException as e: rospy.logerr("Service call failed: %s" % e) - # def greet(self): - # voice = Voice() - # voice.speak(f"Hello, {' '.join(self.people_in_frame)}") - # guestcount = rospy.get_param("guestcount/count", 0) - # drink = rospy.get_param(f"guest{guestcount + 1}/drink", "Orange") - # voice.speak(f"I know your favourite drink is: {drink}") def greet(self): sm = smach.StateMachine(outcomes=['succeeded', 'aborted', 'preempted']) @@ -63,15 +57,6 @@ def greet(self): transitions={"succeeded": "succeeded", "aborted": "aborted", "preempted": "preempted"} ) - # guestcount = rospy.get_param("guestcount/count", 0) - # userdata.guest_data[self._guest_id]["name"] - # drink = rospy.get_param(f"guest{guestcount + 1}/drink", "Orange") - # smach.StateMachine.add( - # "SAY_DRINK", - # Say(text=f"I know your favourite drink is: {drink}"), - # transitions={"succeeded": "succeeded", "aborted": "aborted", "preempted": "preempted"} - # ) - outcome = sm.execute()