00001
00002
00003 import roslib; roslib.load_manifest("pr2_dremel_server")
00004 import actionlib
00005 import rospy
00006 import copy
00007
00008 from std_msgs.msg import *
00009 from math import *
00010
00011 from simple_robot_control import *
00012 import numpy
00013
00014
00015
00016 if __name__ == '__main__':
00017 rospy.init_node('initialize_pose')
00018 rospy.sleep(1.0)
00019
00020 r_arm = Arm("r")
00021 gripr = Gripper('r')
00022 intial_r_orientation = (0,0,0,1)
00023 intial_r_position = ( 0.55, 0, -0.23)
00024 r_arm.goToPose(intial_r_position, intial_r_orientation, "torso_lift_link",3.0, wait = True, \
00025 seed_angles = (-0.135, -0.183, -3.202, -1.598, 3.161, -1.318, -3.053))
00026 gripr.openGripper()
00027 print 'Insert Dremel and hit enter'
00028 a = raw_input()
00029 gripr.closeGripper()