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('MoveToHandPosition')
00015 MoveToHandPositionFn = rospy.ServiceProxy('MoveToHandPosition',orrosplanning.srv.MoveToHandPosition)
00016 req = orrosplanning.srv.MoveToHandPositionRequest()
00017
00018
00019
00020
00021
00022
00023
00024
00025 req.hand_frame_id = 'r_gripper_palm_link'
00026 req.hand_goal.pose.position = geometry_msgs.msg.Point(0.6,-0.189,0.8)
00027 req.hand_goal.pose.orientation = geometry_msgs.msg.Quaternion(0,0,0,1)
00028 req.hand_goal.header.frame_id = 'base_footprint'
00029 req.hand_goal.header.stamp = rospy.Time(0)
00030 req.manip_name = 'rightarm'
00031 res=MoveToHandPositionFn(req)
00032 print res