Go to the documentation of this file.00001
00002 from __future__ import with_statement
00003 __author__ = 'Rosen Diankov'
00004 __license__ = 'Apache License, Version 2.0'
00005
00006 import roslib; roslib.load_manifest('orrosplanning')
00007 import rospy, time
00008 import orrosplanning.srv
00009 import geometry_msgs.msg
00010 from numpy import *
00011
00012 if __name__=='__main__':
00013 rospy.init_node('armplanning_test')
00014 rospy.wait_for_service('MoveManipulator')
00015 MoveManipulatorFn = rospy.ServiceProxy('MoveManipulator',orrosplanning.srv.MoveManipulator)
00016 req = orrosplanning.srv.MoveManipulatorRequest()
00017 req.manip_goal = 0.5*ones(7)
00018 req.manip_name = 'rightarm'
00019 res=MoveManipulatorFn(req)
00020 print res