fake_list_controllers.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # fakes the `list_controllers` service (needed by `object_manipulator`).
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 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


katana_object_manipulation_launch
Author(s): Henning Deeken
autogenerated on Tue May 28 2013 14:52:00