Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

A demo that has a robot wave whenever someone says “hello” and prints the detected transcript on the laptop.

WARNING: this pseudeocode, use only as a reference of how to set up a structure to the image above

pepper = Pepper(ip="192.168.0.23")
dialogflow = Dialogflow(ip="localhost")

dialogflow.connect(pepper.microphone)
dialogflow.register_callback(print_transcript)

while True:
  intent = dialogflow.request(ListenForIntent())
  if intent.name == "hello":
    wave_req = PepperMotion("wave")
    pepper.motion.request(wave_req)

  • No labels