feat(viewer): unify spatial clipping, planning and observation surfaces

Share spatial clipping and height slices across live planning and recorded observations. Refine scene navigation, report serialization and viewer presentation.
This commit is contained in:
DCCONSTRUCTIONS
2026-10-29 09:10:01 +03:00
parent f48411f8fe
commit 7878937691
40 changed files with 464 additions and 138 deletions
+4 -1
View File
@@ -9,6 +9,8 @@ import rerun as rr
from rerun import blueprint as rrb
from rerun.experimental import RrdReader
from k1link.height_slice import height_mask
from .overview_comparison import OverviewComparison
@@ -87,6 +89,7 @@ def render_spatial_update(
aspect: float = 1.5,
comparison: OverviewComparison | None = None,
representation: Literal["original", "corrected"] = "original",
floor_m: float | None = None,
):
app_id, recording_id, xyz, colors = geometry(path)
if representation == "corrected" and comparison is None:
@@ -108,7 +111,7 @@ def render_spatial_update(
colors = np.column_stack(
[70 + 100 * normalized, 135 + 80 * normalized, 220 - 90 * normalized]
).astype(np.uint8)
selected = xyz[:, 2] <= ceiling_m if ceiling_m is not None else np.ones(len(xyz), dtype=bool)
selected = height_mask(xyz, floor_m, ceiling_m)
recording = rr.RecordingStream(app_id, recording_id=recording_id, send_properties=False)
sink = rr.binary_stream(recording)
eye = None