﻿# SDF placement_frame: place the chosen internal frame, not the model origin

Inspect placement_frame when including an SDF model by a docking or mounting frame whose offset differs from the model origin.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/simulation-sdf-placement-frame-target-not-model-origin/
Language: en

## A mounting target is not necessarily an asset origin

A twin includes a sensor housing by its mounting interface. The CAD-exported model origin lies away from that interface, but the assembly system copies the desired mount pose directly into the model-origin transform. The housing is consistently offset despite correct units and orientation metadata. Determine which frame the assembly pose is intended to locate. An internal mounting frame can provide a stable placement target without rewriting the asset’s authored model origin.

## Read placement_frame as the pose target

The [SDF model schema](https://raw.githubusercontent.com/gazebosim/sdformat/sdf15/sdf/1.12/model.sdf) defines placement_frame as the internal frame whose pose is set by the model’s pose element instead of the model frame. The include form similarly identifies a frame inside the included model and requires a supplied pose. This is a change in the target of the placement operation, not merely an alternative display name. Retain the selected frame identifier with the assembly request so the same numbers cannot silently acquire model-origin semantics later.

## Compose the internal offset deliberately

The [pose schema](https://raw.githubusercontent.com/gazebosim/sdformat/sdf15/sdf/1.12/pose.sdf) still determines how the supplied target pose is expressed. First resolve that pose in its declared frame, then account for the model-to-placement-frame offset to obtain the model-origin pose. The offset must be undone in the appropriate transform composition rather than added as an unrotated world translation. A rotated mounting frame exposes this distinction. If an exporter already baked the offset into the model origin, applying another correction can place the housing twice.

## Propose an asymmetric mounting fixture

A proposed fixture should use a visible asymmetric model with an internal mounting frame having both translation and rotation relative to its origin. Request a known target pose and inspect the resolved mounting frame and resulting model frame separately. Compare a model-origin placement with the explicit placement-frame case while keeping the requested target numbers fixed. A zero-offset asset is an inadequate diagnostic because both interpretations can coincide. No assembly parser or simulation was executed here.

## Accept the resolved target, not a plausible screenshot

Retain asset revision, placement-frame identifier, its internal transform, supplied pose frame and resolved result. Verify that the requested internal frame reaches the intended pose rather than only checking a bounding box or model-origin value. Treat missing or unresolved frame references as explicit failures of assembly acceptance. A fallback to the model origin changes the request and should not inherit the original success label. Preserve these semantics across serialization and any conversion to another scene format.

## Separate placement correctness from calibration

The [OpenUSD assembly guide](/journal/fg2-openusd-stage-units-assembly-corrective-transform/) addresses independent unit corrections; [software reproducibility](/journal/software-stack-reproducibility/) supports preserving asset and parser revisions. Correct placement establishes a declared geometric relationship in the model. It does not verify the real mounting measurement, sensor extrinsics or mechanical tolerance. Those require independent calibration evidence, while the placement-frame contract makes clear which modeled relationship that evidence is supposed to describe.
