Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago committed Jun 4, 2024
1 parent 0c4629f commit 547a9ed
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tasks/receptionist/src/receptionist/states/detect_faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand All @@ -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()


Expand Down

0 comments on commit 547a9ed

Please sign in to comment.