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_mbed")
00008 import rospy
00009 
00010 from rosserial_mbed.srv import *
00011 
00012 def callback(req):
00013     print "The mbed 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_mbed
Author(s): Gary Servin
autogenerated on Sat Oct 7 2017 03:08:46