Update
This commit is contained in:
parent
37a562657e
commit
e0ea690540
@ -9,11 +9,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
rate = rospy.Rate(10.0)
|
rate = rospy.Rate(10.0)
|
||||||
while not rospy.is_shutdown():
|
while not rospy.is_shutdown():
|
||||||
try:
|
(trans,rot) = listener.lookupTransform('left_gripper', 'base', rospy.Time(0))
|
||||||
(trans,rot) = listener.lookupTransform('left_gripper', 'base', rospy.Time(0))
|
|
||||||
except (tf.LookupException, tf.ConnectivityException, tf.ExtrapolationException):
|
|
||||||
continue
|
|
||||||
|
|
||||||
Translation = [trans.x , trans.y , trans.z]
|
Translation = [trans.x , trans.y , trans.z]
|
||||||
Quaternion = [rot.x , rot.y , rot.z, rot.w]
|
Quaternion = [rot.x , rot.y , rot.z, rot.w]
|
||||||
Angles = tf.transformations.euler_from_quaternion([rot.x , rot.y ,
|
Angles = tf.transformations.euler_from_quaternion([rot.x , rot.y ,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user