Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haiwei-luo committed Jun 24, 2024
1 parent d36a96f commit ae06cd2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ def execute(self, userdata: UserData) -> str:
break

for drink in self._possible_drinks:
print(self._possible_drinks)
print(transcription)
if drink in transcription:
userdata.guest_data[self._guest_id]["drink"] = drink
rospy.loginfo(f"Guest Drink identified as: {drink}")
Expand Down
16 changes: 0 additions & 16 deletions tasks/receptionist/src/receptionist/states/seat_guest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@
)


class GuestSeatWait(smach.State):
def __init__(self):
smach.State.__init__(self, outcomes=["succeeded", "failed"])

def execute(self, userdata) -> str:
# Wait 5 seconds for user to sit down
try:
wait_time = 5
print(f"Waiting for {wait_time} seconds for the user to sit down.")
Say("Waiting for the guest to sit down.")
rospy.sleep(wait_time)
return "succeeded"
except:
print("Waiting for the guest to sit down failed")
return "failed"

class SeatGuest(smach.StateMachine):
_motions: List[str] = ["look_down_left", "look_down_right", "look_down_centre"]

Expand Down

0 comments on commit ae06cd2

Please sign in to comment.