Update
This commit is contained in:
parent
a64d19e7af
commit
e3f750ec08
@ -21,16 +21,19 @@ def tf_lookup(object_name):
|
||||
print('@@@@@@@@@@@@@@@@')
|
||||
print(rot)
|
||||
print('@@@@@@@@@@@@@@@@')
|
||||
object_angles = tf.transformations.euler_from_quaternion([rot[2] , rot[0], rot[1], rot[2]], axes='sxyz')
|
||||
xangle = object_angles[0]# + radians(360)
|
||||
xangle1 = object_angles[1]# + radians(90)
|
||||
xangle2 = object_angles[2]# + radians(-106)
|
||||
print("Angles:")
|
||||
print(xangle)
|
||||
print(xangle1)
|
||||
print(xangle2)
|
||||
print()
|
||||
target_quat = tf.transformations.quaternion_from_euler(xangle, xangle1, xangle2)
|
||||
object_angles = tf.transformations.matrix_from_quaternion([rot[0] , rot[1], rot[2], rot[3]])
|
||||
print('@@@@@@@@@@@@@@@@')
|
||||
print(object_angles)
|
||||
print('@@@@@@@@@@@@@@@@')
|
||||
# xangle = object_angles[0]# + radians(360)
|
||||
# xangle1 = object_angles[1]# + radians(90)
|
||||
# xangle2 = object_angles[2]# + radians(-106)
|
||||
# print("Angles:")
|
||||
# print(xangle)
|
||||
# print(xangle1)
|
||||
# print(xangle2)
|
||||
# print()
|
||||
target_quat = tf.transformations.quaternion_from_matrix(object_angles)
|
||||
target_pose = Pose()
|
||||
target_pose.position.x = trans[0]
|
||||
target_pose.position.y = trans[1]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user