client.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 """ 
00004 Sample code to use with ServiceClient.pde
00005 """
00006 
00007 import roslib; roslib.load_manifest("rosserial_arduino")
00008 import rospy
00009 
00010 from rosserial_arduino.srv import *
00011 
00012 def callback(req):
00013     print "The arduino is calling! Please send it a message:"
00014     t = TestResponse()
00015     t.output = raw_input()
00016     return t
00017 
00018 rospy.init_node("service_client_test")
00019 rospy.Service("test_srv", Test, callback)
00020 rospy.spin()


rosserial_arduino
Author(s): Michael Ferguson, Adam Stambler
autogenerated on Mon Oct 6 2014 07:10:49