25 from cob_sound.msg
import SayAction, SayResult
26 from simple_script_server
import *
32 rospy.init_node(
'test_say_test')
36 as_name =
"/sound/say" 38 self.as_server.start()
40 handle = sss.say(
"sound", [
"hello"])
42 self.fail(
'Service Server not called. script server error_code: ' + str(handle.get_error_code()))
47 self.as_server.set_succeeded(result)
49 if __name__ ==
'__main__':
51 rostest.run(
'rostest',
'test_say_test', SayTest, sys.argv)
52 except KeyboardInterrupt
as e:
Simple script server class.