feat(perception): connect full graph to external streaming source and scene receiver

This commit is contained in:
DCCONSTRUCTIONS
2026-09-02 19:04:41 +03:00
parent 191612282b
commit 6469505c41
11 changed files with 1032 additions and 90 deletions
+4 -1
View File
@@ -105,8 +105,11 @@ def _unique_pairs(pairs: list[tuple[str, Any]]) -> dict[str, Any]:
def parse_header(raw: bytearray) -> dict[str, Any]:
def reject_constant(value: str) -> Any:
raise StreamWireError("non-finite JSON metadata")
try:
value = json.loads(raw, object_pairs_hook=_unique_pairs)
value = json.loads(raw, object_pairs_hook=_unique_pairs, parse_constant=reject_constant)
except (ValueError, UnicodeError, RecursionError) as exc:
raise StreamWireError("invalid bounded metadata") from exc
if not isinstance(value, dict):