Customisation of UR10 Palletizing Example

Hello,

I am trying to customize the Isaac Sim UR10 palletizing example to achieve bin stacking according to the color of the bin.

To generate different color bins, I replaced the ur10_palletizing.py script with the full code example I found on Randomization in Simulation – UR10 Palletizing — Isaac Sim 4.2.0 (OLD)

This example is supposed to randomly generate green and magenta bins, but on running only the default magenta bins are being generated.

Is there a way to fix this to randomly generate 2 color bins. I also need help to implement the bin stacking according to the color of the bins.

I am using:

Isaac Sim Version

4.2.0

Operating System

Windows 10

What I’ve Tried

I have tried replacing the ur10_palletizing script with the example code from the link above.
I have also tried adding those methods to the existing palletizing script.
I have also tried adding custom code to change the color of the bin (But this did not work because I think we need to change the texture of bin instead of the rgb value).

Other Issues

Another issue I am facing while running this example is the ur10 gripper knocks the bins from the flipping station while attempting to flip the bin. Can I fix this issue via code?