﻿# SDF frames: relative_to describes coordinates, attached_to describes what moves together

Separate the SDF initial pose-expression graph from frame attachment before expecting a frame expressed relative to world to remain fixed during articulation.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/simulation-sdf-relative-to-attached-to-different-graphs/
Language: en

## A world-expressed pose can move with an arm

A twin author gives a marker frame a pose relative to world but attaches it to an articulated tool. After a joint moves, the marker moves too, contrary to the author’s expectation that world coordinates made it stationary. The pose expression and the attachment answer different questions. Inspect both before treating the result as transform drift. A model can correctly interpret the authored initial numbers while following a different body than the application intended.

## Read relative_to as numerical expression

The [SDF pose schema](https://raw.githubusercontent.com/gazebosim/sdformat/sdf15/sdf/1.12/pose.sdf) defines relative_to as the frame in which translation and rotation are expressed. It explicitly limits this role to initial pose and says it does not determine later dynamic movement. Therefore changing the expression frame while converting the numbers consistently should preserve the same intended initial geometry. Changing only the frame name without converting those numbers is a different pose, not a harmless relabeling or a change in attachment ownership.

## Trace attached_to to its moving owner

The [frame schema](https://raw.githubusercontent.com/gazebosim/sdformat/sdf15/sdf/1.12/frame.sdf) says a frame moves jointly with its attached_to target and distinguishes that chain from relative_to. Following attachment references must lead to an appropriate body or scope frame rather than an unresolved cycle. Defaults also depend on containing scope. Record the resolved attachment ancestry, not only the immediately named frame. An intermediate named frame can still ultimately belong to a moving link whose motion changes the marker’s world transform.

## Propose an articulated-frame comparison

A proposed fixture should contain a stationary base, an articulated link and a marker with an independently chosen expression frame. Resolve its initial pose, then inspect intended ownership under link motion in the consuming simulator. Compare a marker attached to the link with one attached to a stationary scope while preserving the initial world pose. This separates initial numerical agreement from later movement. No parser or simulator experiment was executed for this article.

## Accept both graphs explicitly

Retain specification version, model scope, authored pose frame, converted initial transform and resolved attachment target. An importer should preserve the distinction rather than flatten every frame reference into a single parent field. Check errors from graph resolution instead of treating syntactically valid XML as sufficient. If an export format cannot represent both concepts, record the deliberate conversion and its movement assumptions, especially for nested models or frames used by sensors and control logic.

## Keep frame semantics separate from physical validation

The [PartNet articulation guide](/journal/fg2-partnet-mobility-urdf-load-missing-mesh-cross-engine/) addresses another import boundary; [software reproducibility](/journal/software-stack-reproducibility/) supports retaining parser and model revisions. Here acceptance means the intended initial pose and moving attachment are both represented. It does not validate sensor calibration, joint dynamics or contact geometry. Correctly resolved frame graphs make those later checks interpretable, but cannot substitute for their own measurements and task-specific evidence.
