utter.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 import roslib; roslib.load_manifest('utter')
00003 import rospy
00004 import actionlib
00005 import os, sys
00006 from rfnserver import RFNServer
00007 
00008 class UtterServer:
00009     def __init__(self):
00010         self.server = RFNServer("utter", self.utter)
00011         self.server.register_with_frame("uttering")
00012         self.server.start()
00013 
00014     def utter(self, semantic_frame):
00015         utterance = RFNServer.frame_argument(semantic_frame, "utterance")
00016         os.system('./utter.bash "' + utterance + '"')
00017         self.server.set_succeeded()
00018 
00019 
00020 def main():
00021     rospy.init_node('as_utter')
00022     # register with roboframenet
00023     server = UtterServer()
00024     rospy.spin()
00025 
00026 
00027 if __name__ == '__main__':
00028     main()
00029 
00030 
00031 


utter
Author(s): Brian Thomas
autogenerated on Fri Dec 6 2013 20:43:27