Go to the documentation of this file.00001
00002
00003
00004
00005 import roslib; roslib.load_manifest('katana_object_manipulation_launch')
00006
00007 from pr2_mechanism_msgs.srv import ListControllers, ListControllersResponse
00008 import rospy
00009
00010 def handle_list_controllers(req):
00011 return ListControllersResponse(controllers = ["l_arm_controller"], state = ["running"])
00012
00013 def list_controllers_server():
00014 rospy.init_node('fake_list_controllers_server')
00015 s = rospy.Service('list_controllers', ListControllers, handle_list_controllers)
00016 print "fake_list_controllers_server initialized."
00017 rospy.spin()
00018
00019 if __name__ == "__main__":
00020 list_controllers_server()
00021