Can I make a position relative to another position?

I have a UR 10.

My robot places pieces inside a box, alternating their direction by 180 degrees. Piece 1 faces right, piece 2 faces left. The EOAT goes above box 1 at either position a or b (aBox1a & aBox1b) and goes down until contact, dropping the part and coming back up. Simple enough.

My question is: can I make position “b” 180 degrees relative to position “a” in the code itself? That way, if I have to calibrate the points, I can calibrate 1 point instead of 2. The position is the same, the wrist just rotates 180 degrees.

I looked at the “relative position” menu, but I couldn’t find what I needed.

Is there a way to do that?

Thank you very much.

point_b = pose_trans(point_a, p[0,0,0,0,0,d2r(180)]) should work (if it’s rotation in Z axis)

I did a simple test and it works perfectly. Now I just need to implement it in the floor :grin:

Thank you very much.