Update
This commit is contained in:
parent
e9fbdffa78
commit
d9698bd4e4
@ -11,12 +11,11 @@ if __name__ == '__main__':
|
||||
while not rospy.is_shutdown():
|
||||
try:
|
||||
(trans,rot) = listener.lookupTransform('left_gripper', 'base', rospy.Time(0))
|
||||
print((trans, rot))
|
||||
# except (tf.LookupException, tf.ConnectivityException, tf.ExtrapolationException):
|
||||
except: continue
|
||||
except (tf.LookupException, tf.ConnectivityException, tf.ExtrapolationException):
|
||||
continue
|
||||
|
||||
Translation = [trans.x , trans.y , trans.z]
|
||||
Quaternion = [rot.x , rot.y , rot.z, rot.w]
|
||||
Translation = [trans[0] , trans[1] , trans[2]]
|
||||
Quaternion = [rot[0] , rot[1] , rot[2], rot[3]]
|
||||
Angles = tf.transformations.euler_from_quaternion([rot.x , rot.y ,
|
||||
rot.z, rot.w])
|
||||
print("Translation: ", Translation)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user