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
|
Match detections to registry objects in place; returns (matched_ids, new_ids). |
Classes
|
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:
objectOne per-frame perception output; pose and bbox share one frame.
- confidence: float¶
- label: str¶
- 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.