4 from dialogflow_ros.srv
import DialogflowService
5 from dialogflow_ros
import DialogflowClient
10 self.
_dc = DialogflowClient()
11 self.
_service = rospy.Service(
'/dialogflow_client/intent_service', DialogflowService, self.
_service_cb)
15 df_msg = self._dc.detect_intent_stream()
17 df_msg = self._dc.detect_intent_text(req.text)
18 return DialogflowServiceResponse(success=
True, result=df_msg)
21 if __name__ ==
'__main__':
22 rospy.init_node(
'dialogflow_service')
24 rospy.loginfo(
"DF_CLIENT: Dialogflow Service is running...")
def _service_cb(self, req)