test_controller.py
Go to the documentation of this file.
00001 #! /usr/bin/python
00002 
00003 import numpy as np
00004 
00005 import roslib
00006 roslib.load_manifest('hrl_pr2_arms')
00007 import rospy
00008 
00009 import tf
00010 import tf.transformations as tf_trans
00011 from std_msgs.msg import Bool, Float32
00012 from std_srvs.srv import Empty
00013 from geometry_msgs.msg import PoseStamped, Vector3
00014 
00015 from hrl_generic_arms.pose_converter import PoseConverter
00016 from hrl_pr2_arms.pr2_arm import create_pr2_arm
00017 from hrl_pr2_arms.pr2_arm_hybrid import PR2ArmHybridForce
00018 
00019 rospy.init_node("test_controller")
00020 arm = create_pr2_arm('l', PR2ArmHybridForce)
00021 arm.use_auto_update(True)
00022 rospy.sleep(0.1)
00023 arm.zero_sensor()
00024 arm.reset_ep()
00025 t, R = arm.get_ep()
00026 arm.set_ep((t, R), 1)
00027 q = arm.get_joint_angles()
00028 arm.set_posture(q.tolist()[0:3] + 4 * [9999])
00029 
00030 


hrl_phri_2011
Author(s): Kelsey Hawkins
autogenerated on Wed Nov 27 2013 12:22:40