Esempio n. 1
0
 def run(self, instance):
     if not vision.are_people():
         speech("I can't see anyone")
         instance.model.tables[instance.table - 1]['available'] = True
         instance.running = False
         return
     speech("Is everything okay with your food?")
     instance.addInput(listen())
Esempio n. 2
0
 def run(self, instance):
     if not vision.are_people():
         speech("I can't see anyone")
         instance.model.tables[instance.table-1]['available'] = True
         instance.running = False
         return
     speech("Are we ready to order?")
     instance.addInput(listen())
Esempio n. 3
0
 def run(self, instance):
     if not vision.are_people():
         speech("I can't see anyone")
         instance.model.tables[instance.table - 1]['available'] = True
         instance.running = False
         return
     speech("Has everyone here finished their meal?")
     instance.addInput(listen())
Esempio n. 4
0
 def run(self, instance):
     response = listen()
     if response is not None and 'go' in response:
         cusID = instance.model.tables[instance.table_number -
                                       1]['customerID']
         taskManager.new_task("Checkup",
                              table_number=instance.table_number,
                              delay=1,
                              customerID=cusID)
         r = rospy.Rate(1)
         r.sleep()
         instance.running = False
     instance.addInput(response)
 def run(self, instance):
     instance.group_size = 99999
     speech("Please remind me how many people there are in your group")
     response = listen()
     instance.addInput(response)
 def run(self, instance):
     speech(
         "The revised estimate for your wait time is another 5 minutes. Is this okay?"
     )
     response = listen()
     instance.addInput(response)
Esempio n. 7
0
 def run(self, instance):
     speech("Your wait time is 5 minutes, is this okay")
     response = listen()
     instance.addInput(response)
Esempio n. 8
0
 def run(self, instance):
     instance.group_size = 99999
     speech("How many people are there in your group?")
     response = listen()
     instance.addInput(response)
Esempio n. 9
0
 def run(self, instance):
     speech("Do you have a booking?")
     response = listen()
     instance.addInput(response)
Esempio n. 10
0
    def run(self, instance):
        speech("Please tell me the order")

        instance.addInput(listen())
Esempio n. 11
0
 def run(self, instance):
     speech("Would anyone else like to order?")
     instance.addInput(listen())
Esempio n. 12
0
 def run(self, instance):
     speech("What is the first order?")
     instance.addInput(listen())
Esempio n. 13
0
 def run(self, instance):
     navTo.navigateTo("table" + str(instance.table_number))
     speech("Here is your " + str(instance.food_order))
     listen()
     speech("Please tell me to go when you've got your food")
Esempio n. 14
0
 def run(self, instance):
     instance.addInput(listen())
Esempio n. 15
0
 def run(self, instance):
     speech("What food am I taking to table " + str(instance.table_number))
     instance.food_order = listen()
     instance.addInput(instance.food_order)