test_intent_text.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rospy
4 from dialogflow_ros import DialogflowClient
5 from dialogflow_ros.msg import *
6 
7 if __name__ == '__main__':
8  rospy.init_node('test_intent_text', log_level=rospy.DEBUG)
9  dc = DialogflowClient()
10  dr = DialogflowRequest(query_text="what do you see")
11  resp1 = dc.detect_intent_text(dr)
12  # dr.query_text = "pick up the pencil"
13  # dr.contexts = resp1.contexts
14  # resp2 = dc.detect_intent_text(dr)


dialogflow_ros
Author(s): Anas Abou Allaban
autogenerated on Mon Jun 10 2019 13:02:59