Publish fresh front perception before supplementary neural views
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user