A rotary fixture can show the expected 90-degree change in orientation in an OpenUSD workcell while its plate moves around the wrong center. Check two landmarks at different angles. A point at the intended pivot should stay fixed relative to the mount, and a point off the axis should move to the expected location.

OpenUSD evaluates transform operations in the order encoded by xformOpOrder. A pivot can use a translation and its inverse on opposite sides of a rotation. With a paired inverse operation, both translations refer to the same authored attribute. The inverse operation uses the opposite translation during evaluation, so edits to the pivot do not require updating a second independent value.

Check a 90-degree turn

The sample uses a static, unparented fixture at the stage root so its local transform directly maps fixture coordinates into the stage axes. The center is at X=3, and the off-center stop is two stage units farther along positive X. Both initial landmark positions lie in the XY plane.

from pxr import Gf, Usd, UsdGeom

stage = Usd.Stage.CreateInMemory()

table = UsdGeom.Xform.Define(stage, "/Table")

pivot = Gf.Vec3d(3, 0, 0)

stop = Gf.Vec3d(5, 0, 0)

table.AddTranslateOp(opSuffix="pivot").Set(pivot)

rotate = table.AddRotateZOp()

table.AddTranslateOp(opSuffix="pivot", isInverseOp=True)

def landmarks(angle):

rotate.Set(angle)

matrix = table.GetLocalTransformation()

return matrix.Transform(pivot), matrix.Transform(stop)

center0, stop0 = landmarks(0)

center90, stop90 = landmarks(90)

assert Gf.IsClose(center0, pivot, 1e-9)

assert Gf.IsClose(center90, pivot, 1e-9)

assert Gf.IsClose(stop0, stop, 1e-9)

assert Gf.IsClose(stop90, Gf.Vec3d(3, 2, 0), 1e-9)

print(table.GetXformOpOrderAttr().Get())

The assertions pass in OpenUSD 0.26.11. The center is (3, 0, 0) at both angles. At 90 degrees the stop is (3, 2, 0) and still two units from the center. The reported operation order is the pivot translation, rotateZ, and the inverse pivot translation. In this case a rotation about the prim origin would move the center as well, so the two-point test catches an error that checking the angle alone would miss.

Check the installed fixture coordinates

Use a center point tied to the rotary axis and an off-axis point tied to the moving plate. Sample two sufficiently different poses in the composed stage. Choose the frame of the fixed mount for comparison if the fixture's parent also moves. Verify both the center's position and the direction of the stop vector after the turn. Checking only the distance from the center can miss a sign error that sends the stop to the other side.

If the landmarks disagree, inspect the composed operation order and the frame in which the pivot was authored. Keep the landmark definitions, the two poses and the expected coordinates in the review so another engineer can repeat the check after an export. The fixture is a scene-transform test. A real rotary station's travel limits and commanded motion need their own verification.

Sources

OpenUSD UsdGeomXformable API reference for ordered and paired inverse operations

https://openusd.org/release/api/class_usd_geom_xformable.html

OpenUSD UsdGeomXformCommonAPI reference for paired pivot translations

https://openusd.org/release/api/class_usd_geom_xform_common_a_p_i.html