Assign different posses for Each boxes in my pallet

i want to adjust pose for each boxes in a pallet because my gripper will rotatein different and suitable direction to pick it. i need help in this how can i assign posses for each boxes

How does the gripper pick up the boxes, could you show some photos or videos? There might be easier methods to solve your problem.