scene_service.state.data_assoc

Associate per-frame detections with registry objects: same-class, gated Hungarian matching; matches EMA-update the object, the rest become new objects.

Functions

associate(registry, detections, *[, now])

Match detections to registry objects in place; returns (matched_ids, new_ids).

Classes

Detection(label, pose, bbox, confidence[, ...])

One per-frame perception output; pose and bbox share one frame.

class scene_service.state.data_assoc.Detection(label: str, pose: Pose3D, bbox: BBox3D, confidence: float, source: str = 'perception')[source]

Bases: object

One per-frame perception output; pose and bbox share one frame.

bbox: BBox3D
confidence: float
label: str
pose: Pose3D
source: str = 'perception'
scene_service.state.data_assoc.associate(registry: ObjectRegistry, detections: list[Detection], *, now: float | None = None) → tuple[list[str], list[str]][source]

Match detections to registry objects in place; returns (matched_ids, new_ids). Caller holds registry.lock(). Unmatched objects are left to mark_stale.