1     Definition 2     Functional Requirements 3     Syntax
4     Semantics 5    Conformance Testing 6     Performance Assessment

1      Definition

A Data Type that constrains spatial interpretation by limiting allowable distance, directional displacement, or semantic range relative to a spatial anchor.

RangeConstraint refines Spatial Cues by restricting where or how far a cue applies, using numeric bounds, directional offsets, or semantic qualifiers.

2      Functional Requirements

Distance Constraint

Must support minimum and maximum allowable distance values.

Values must use MKS units (metres).

Directional Offset

Must express displacement relative to a reference anchor using:
– Direction (right, left, front, back, up, down)
– Value (numeric magnitude)
– Unit (m, cm)

Must enable user‑centric relational expressions (e.g., 2 m front, 30 cm up).

Semantic Range

Must support higher‑level semantic constraints:
– near, far, inside, outside
– cardinal terms: left, right, front, back, up, down

Must allow extensibility for future semantic qualifiers.

Policy Constraints

Must support constraints defining inclusion or exclusion zones (e.g., inside/outside region).

Must integrate with Region-based spatial definitions from SpatialCue.

Validation

Distance min/max must be numeric and non‑negative.

DirectionalOffset must include Direction + Value + Unit, and no component may be omitted.

KeywordRange must validate against enumerated semantic values.

Confidence and Metadata

The enclosing SpatialCue must convey confidence; RangeConstraint itself must support descriptive metadata via DescrMetadata.

3      Syntax

https://schemas.mpai.community/OSD/V1.5/data/RangeConstraints.json

4      Semantics

Table 1 provides the semantics of the components of Range Constraint.

Table 1 – Semantics of the Range Constraint

Label Description
Header Range Constraint Header – Standard “OSD-RCN-Vx.y”.
MInstanceID ID of Virtual Space the cue refers to.
SpatialCueID Identifier of Spatial Cue entry.
SpatialCueData General descriptors for cue context.
Distance Specifies allowable range (min/max) between the anchor and the cue target, in metres.
– Min Minimum allowable distance, in metres.
– Max Maximum allowable distance, in metres.
DirectionalOffset Defines a displacement relative to an anchor, with explicit direction (right/left/front/back/up/down), magnitude, and unit (m/cm). Used for direction‑specific positional refinement.
Direction Orientation of displacement relative to defined reference frame.
Value Numeric magnitude of displacement.
Unit Measurement unit for displacement (m, cm).
KeywordRange Semantic spatial constraint (e.g., near, inside, left). Used when numeric/magnetic precision is not required.
Trace AIF trace object indicating AIM instance and timestamp of production.
DescrMetadata Free‑form descriptive metadata.

5     Conformance Testing

 

6     Performance Assessment