Using Probed Waypoint Assignments in Grid's 4 Corners

Hi All,

I have a UR8Long running Polyscope X. I would like to:

  1. Probe for 4 corners of a crate and assign them to variables (I know how to do this part)

  2. Use those 4 corners to recompute the whole grid algorithm. (Don’t know how to use variables in the grid, what are the variable names and how can I use them)

Note that the crate may be very slightly trapezoid shaped which is why I feel the need to do this. Therefore, I don’t want to use a reference point and translate/rotate the whole grid based off of that.

I am very new to URScripting but willing to go deconstruct the grid algo if necessary.

Thanks!

Isabel