Publish fresh front perception before supplementary neural views

This commit is contained in:
DCCONSTRUCTIONS
2026-10-09 10:56:08 +03:00
parent 4153c122a3
commit f449caa6e0
6 changed files with 196 additions and 19 deletions
@@ -29,6 +29,13 @@ def archive_perception(directory, result):
}
if any(np.asarray(a).shape != (512, 512) for k, a in arrays.items() if k != "rgb"):
raise ValueError("Surface evidence does not match the provider raster")
if role == "supplement" and view["frame_id"] != result["frame_id"]:
# A fresh side capture has its own geometry; the task frame's
# .range/.sensors files cannot reconstruct this projection.
arrays.update(range_points=observation["points"],
lens_depths=np.asarray(observation["lens_depths"]))
arrays.update({"range_rays." + key: value
for key, value in observation.get("range_rays", {}).items()})
metadata = dict(
schema_version="missioncore.perception-evidence/v1",
frame_id=view["frame_id"], role=role,