""" Compile Unified Robotics Digital Twin HTML from Real Model Telemetry Zero Hardcoding: loads data/model_telemetry.json directly and renders the 3 robotic stations. """ import os import sys import json from pathlib import Path # Paths ROOT_DIR = Path(__file__).resolve().parent.parent DATA_PATH = ROOT_DIR / "data" / "model_telemetry.json" APP_DATA_DIR = Path(r"C:\Users\Yugendhar S\.gemini\antigravity\brain\8b0db018-422a-4c29-be8b-6ebe0737ae96") OUTPUT_HTML_LOCAL = ROOT_DIR / "unified_robotics_digital_twin.html" OUTPUT_HTML_ARTIFACT = APP_DATA_DIR / "unified_robotics_digital_twin.html" def build_unified_digital_twin(): if not DATA_PATH.exists(): print(f"[!] Telemetry data not found at {DATA_PATH}. Running export script...") from scripts.export_digital_twin_telemetry import generate_exact_model_telemetry telemetry = generate_exact_model_telemetry() else: with open(DATA_PATH, "r") as f: telemetry = json.load(f) telemetry_json_str = json.dumps(telemetry) html_content = f"""
Zero Hardcoding: Real-time graphical playback of PyTorch Neural CBF, OSQP Multi-Joint Barrier Filter, and AdaptNC Conformal Calibrator.
Every rendered coordinate comes directly from our mathematical dynamics models: