Update
This commit is contained in:
parent
830084d057
commit
968ddb5832
@ -300,7 +300,7 @@ bricks_start_v2 =[{
|
||||
}]
|
||||
|
||||
def getBuildable():
|
||||
return bricks_start_v2
|
||||
return bricks_start_v1
|
||||
|
||||
def getAll():
|
||||
return bricks_start_v2+bricks_start_v1+bricks_end+[table]
|
||||
|
||||
7
main.py
7
main.py
@ -263,7 +263,12 @@ if __name__ == "__main__":
|
||||
|
||||
|
||||
|
||||
left_pick = otc.tf_lookup('a1')
|
||||
left_pick = otc.tf_lookup('a3')
|
||||
print()
|
||||
print()
|
||||
print(left_pick)
|
||||
print()
|
||||
print()
|
||||
left_pick.position.z+=0.5
|
||||
left_pnp.pick(left_pick)
|
||||
|
||||
|
||||
@ -19,9 +19,9 @@ def tf_lookup(object_name):
|
||||
continue
|
||||
|
||||
object_angles = tf.transformations.euler_from_quaternion([rot[0] , rot[1] , rot[2], rot[3]])
|
||||
xangle = object_angles[0] + radians(180)
|
||||
xangle1 = object_angles[1] + radians(-90)
|
||||
xangle2 = object_angles[2] + radians(0)
|
||||
xangle = object_angles[0] + radians(90)
|
||||
xangle1 = object_angles[1]# + radians(-90)
|
||||
xangle2 = object_angles[2]# + radians(0)
|
||||
object_angles = (xangle, xangle1, xangle2)
|
||||
target_quat = tf.transformations.quaternion_from_euler(object_angles[0], object_angles[1], object_angles[2])
|
||||
target_pose = Pose()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user