testarmplanning.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 from __future__ import with_statement # for python 2.5
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 #     req.hand_frame_id = 'l_gripper_palm_link'
00018 #     req.hand_goal.pose.position = geometry_msgs.msg.Point(0.6,0.189,0.4765)
00019 #     req.hand_goal.pose.orientation = geometry_msgs.msg.Quaternion(0,0,0,1)
00020 #     req.hand_goal.header.frame_id = 'base_footprint'
00021 #     req.manip_name = 'leftarm'
00022 #     res=MoveToHandPositionFn(req)
00023 #     print res
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


orrosplanning
Author(s): Rosen Diankov (rosen.diankov@gmail.com)
autogenerated on Sat Mar 23 2013 22:32:59