Spaces:
Running
Running
Download explore.html from ai3111/smartgrid-lidar: direct link, hf CLI and curl.
- Browser
- Download file 17.9 kB
-
https://huggingface.co/spaces/ai3111/smartgrid-lidar/resolve/main/explore.html
- Command line
-
hf download hf://spaces/ai3111/smartgrid-lidar/explore.html
-
curl -L -o explore.html https://huggingface.co/spaces/ai3111/smartgrid-lidar/resolve/main/explore.html
17.9 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Explore β SmartGrid-LiDAR</title> | |
| <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none'%3E%3Ccircle cx='13' cy='13' r='11.5' stroke='%234b5068'/%3E%3Ccircle cx='13' cy='13' r='8' stroke='%238b7cf6' stroke-width='1.2'/%3E%3Ccircle cx='13' cy='13' r='4.8' stroke='%234a9ee0' stroke-width='1.5'/%3E%3Ccircle cx='13' cy='13' r='2' fill='%237ee8fa'/%3E%3C/svg%3E"> | |
| <link rel="stylesheet" href="assets/site.css"> | |
| <style> | |
| .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 26px 0 16px; flex-wrap: wrap; } | |
| .head p { color: var(--dim); margin: 6px 0 0; max-width: 640px; } | |
| .tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; } | |
| .tabs .btn { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px; min-height: 54px; } | |
| .tabs .btn .t { font-weight: 600; } | |
| .tabs .btn .s { font-size: 11px; color: var(--dim); font-weight: 400; } | |
| .tabs .btn[aria-pressed="true"] .s { color: var(--accent-2); } | |
| .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; } | |
| .stage { aspect-ratio: 16 / 10; } | |
| .transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; } | |
| .transport input[type=range] { flex: 1; min-width: 160px; } | |
| .transport .counter { font: 12px var(--font-mono); color: var(--dim); min-width: 110px; } | |
| .controls { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: 12px; } | |
| .controls .label { font: 600 11px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-right: 2px; } | |
| .legend { margin-top: 12px; } | |
| .side .card + .card { margin-top: 14px; } | |
| .ds-title { font-size: 18px; font-weight: 600; } | |
| .ds-meta { color: var(--dim); font-size: 13px; margin: 4px 0 10px; } | |
| .ds-story { font-size: 14px; color: var(--dim); } | |
| .caveat { font-size: 13px; color: var(--dynamic); margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; } | |
| .kbd { font: 11px var(--font-mono); color: var(--mute); margin-top: 10px; } | |
| .kbd code { background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; color: var(--dim); } | |
| /* Stops 14px short of the HUD's 236px column rather than running | |
| under it - the banner used to cover the panel's own title. */ | |
| .advice { | |
| position: absolute; left: 14px; top: 14px; z-index: 2; | |
| display: flex; align-items: center; gap: 12px; | |
| background: rgba(8,10,14,.86); border: 1px solid var(--line-2); | |
| border-left-width: 4px; border-radius: var(--radius-s); | |
| padding: 10px 14px; backdrop-filter: blur(4px); | |
| max-width: min(460px, calc(100% - 236px - 42px)); | |
| } | |
| .advice .badge { | |
| font: 700 13px var(--font-mono); letter-spacing: .08em; white-space: nowrap; | |
| } | |
| .advice .advice-why { font-size: 12px; color: var(--dim); line-height: 1.4; } | |
| .advice[data-level="clear"] { border-left-color: var(--drivable); } | |
| .advice[data-level="clear"] .badge { color: var(--drivable); } | |
| .advice[data-level="caution"] { border-left-color: var(--dynamic); } | |
| .advice[data-level="caution"] .badge { color: var(--dynamic); } | |
| .advice[data-level="slow"] { border-left-color: var(--dynamic); } | |
| .advice[data-level="slow"] .badge { color: var(--dynamic); } | |
| .advice[data-level="avoid"] { border-left-color: var(--static); } | |
| .advice[data-level="avoid"] .badge { color: var(--static); } | |
| .advice[data-level="steer around"] { border-left-color: var(--static); } | |
| .advice[data-level="steer around"] .badge { color: var(--static); } | |
| .advice[data-level="stop"] { border-left-color: var(--moving); } | |
| .advice[data-level="stop"] .badge { color: var(--moving); } | |
| @media (max-width: 720px) { .advice { position: static; margin-bottom: 10px; max-width: none; } } | |
| /* One more row than this panel was sized for. Tightening the leading | |
| keeps every row inside the stage instead of clipping "Travelled". */ | |
| .stage .hud { font-size: 11.5px; line-height: 1.5; padding: 10px 13px; } | |
| .stage .hud-sep { margin: 6px 0; } | |
| .stage .hud-title { margin-bottom: 6px; } | |
| .livedot { | |
| display: inline-block; width: 6px; height: 6px; border-radius: 50%; | |
| background: var(--accent-2); margin-left: 6px; vertical-align: middle; | |
| opacity: .25; transition: opacity .18s ease; | |
| } | |
| .livedot.on { opacity: 1; } | |
| .playback { | |
| display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); | |
| gap: 6px 22px; margin-top: 12px; padding: 12px 14px; | |
| background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s); | |
| } | |
| .pb { display: grid; grid-template-columns: 92px 1fr 86px; align-items: center; gap: 10px; font-size: 13px; } | |
| .pb label { color: var(--dim); } | |
| .pb .v { font-family: var(--font-mono); text-align: right; color: var(--text); font-size: 12px; } | |
| .pb-note { grid-column: 1 / -1; margin: 2px 0 0; } | |
| @media (max-width: 1040px) { .playback { grid-template-columns: 1fr; } } | |
| /* Sits under the map rather than over it: the whole point is to be | |
| read alongside the last frame, and an overlay tall enough to hold | |
| it would cover the map it is describing. */ | |
| .summary { margin-top: 14px; animation: rise .24s ease-out; } | |
| @keyframes rise { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } } | |
| .summary-card { | |
| background: var(--bg-1); border: 1px solid var(--accent-2); | |
| border-radius: var(--radius); padding: 16px 18px; | |
| } | |
| .sm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; } | |
| .sm-head h3 { margin: 2px 0 0; font-size: 17px; } | |
| .sm-sub { color: var(--dim); font-size: 12px; margin: 3px 0 0; } | |
| .sm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 13px 0 11px; } | |
| .sm-stat { background: var(--bg-2); border-radius: var(--radius-s); padding: 9px 10px; } | |
| .sm-stat .v { font: 600 19px var(--font-mono); letter-spacing: -.02em; } | |
| .sm-stat .k { font-size: 10px; color: var(--dim); margin-top: 3px; line-height: 1.25; } | |
| .sm-stat .r { font: 10px var(--font-mono); color: var(--mute); margin-top: 3px; line-height: 1.3; } | |
| .sm-table { width: 100%; font-size: 12.5px; } | |
| .sm-table th { text-align: left; font-weight: 400; color: var(--dim); padding: 3px 0; } | |
| .sm-table td { font-family: var(--font-mono); text-align: right; padding: 3px 0; } | |
| .sm-foot { margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 9px; font-size: 11.5px; line-height: 1.45; } | |
| .sm-actions { display: flex; gap: 10px; margin-top: 12px; } | |
| @media (max-width: 620px) { .sm-grid { grid-template-columns: repeat(2, 1fr); } } | |
| @media (max-width: 900px) { .layout { grid-template-columns: 1fr; } } | |
| </style> | |
| </head> | |
| <body> | |
| <nav class="nav"> | |
| <a class="brand" href="index.html" aria-label="SmartGrid-LiDAR home"> | |
| <svg viewBox="0 0 26 26" fill="none" aria-hidden="true"> | |
| <circle cx="13" cy="13" r="11.5" stroke="#4b5068" stroke-width="1"/> | |
| <circle cx="13" cy="13" r="8" stroke="#8b7cf6" stroke-width="1.2"/> | |
| <circle cx="13" cy="13" r="4.8" stroke="#4a9ee0" stroke-width="1.5"/> | |
| <circle cx="13" cy="13" r="2" fill="#7ee8fa"/> | |
| </svg> | |
| SmartGrid-LiDAR | |
| </a> | |
| <span class="tag">SIH 2026 Β· PS 26053 Β· DRDO</span> | |
| <div class="links"> | |
| <a href="index.html">Overview</a> | |
| <a href="explore.html" class="active">Explore</a> | |
| <a href="lab.html">Grid Lab</a> | |
| <a href="change.html">Change</a> | |
| <a href="report.html">Scan report</a> | |
| </div> | |
| </nav> | |
| <main class="wrap"> | |
| <div class="head"> | |
| <div> | |
| <div class="eyebrow">Multi-dataset viewer</div> | |
| <h2 style="margin:6px 0 0">Four drives, one pipeline</h2> | |
| <p>The map is fixed in the world and the vehicle drives through it. Switch datasets, recolour, and click any cell β it is data, not pixels.</p> | |
| </div> | |
| </div> | |
| <div id="tabs" class="tabs" role="tablist" aria-label="Datasets"></div> | |
| <div class="layout"> | |
| <div> | |
| <div id="stage" class="stage"> | |
| <canvas id="map" aria-label="Top-down 2.5D map"></canvas> | |
| <div class="hud" id="hud"> | |
| <div class="hud-title">ADAPTIVE 2.5D LIDAR MAP <span class="livedot" id="livedot" title="these numbers are this frame's own"></span></div> | |
| <div class="hud-row"><span>Sensor</span><b id="h-beams">β</b></div> | |
| <div class="hud-row"><span>Points / scan</span><b id="h-pts">β</b></div> | |
| <div class="hud-row"><span>Cells</span><b id="h-cells">β</b></div> | |
| <div class="hud-row"><span>Map memory</span><b id="h-mem">β</b></div> | |
| <div class="hud-row"><span>vs uniform 5 cm</span><b id="h-red">β</b></div> | |
| <div class="hud-row"><span>Grid build</span><b id="h-ms">β</b></div> | |
| <div class="hud-row" id="h-fps-row"><span>Throughput</span><b id="h-fps">β</b></div> | |
| <div class="hud-row" id="h-acc-row"><span>Accuracy</span><b id="h-acc">β</b></div> | |
| <div class="hud-sep"></div> | |
| <div class="hud-row"><span>Frame</span><b id="h-frame">β</b></div> | |
| <div class="hud-row"><span>Moving</span><b id="h-moving">β</b></div> | |
| <div class="hud-row"><span>Parked</span><b id="h-parked">β</b></div> | |
| <div class="hud-row"><span>Median speed</span><b id="h-speed">β</b></div> | |
| <div class="hud-row" id="h-ego-row" hidden><span>Ego speed</span><b id="h-ego">β</b></div> | |
| <div class="hud-row" id="h-rings-row" hidden><span>Fine ring</span><b id="h-rings">β</b></div> | |
| <div class="hud-row"><span>Travelled</span><b id="h-dist">β</b></div> | |
| </div> | |
| <div class="advice" id="advice" hidden> | |
| <span class="badge" id="advice-badge">CLEAR</span> | |
| <span class="advice-why" id="advice-why"></span> | |
| </div> | |
| <div class="cursor" id="cursor"></div> | |
| <div class="loading" id="loading">Loading datasetβ¦</div> | |
| </div> | |
| <div class="transport"> | |
| <button class="btn small" id="play" aria-pressed="true">Pause</button> | |
| <button class="btn small icon" id="prev" aria-label="Previous frame"> | |
| <svg viewBox="0 0 16 16" fill="currentColor"><path d="M11 3v10L4 8z"/></svg> | |
| </button> | |
| <button class="btn small icon" id="next" aria-label="Next frame"> | |
| <svg viewBox="0 0 16 16" fill="currentColor"><path d="M5 3v10l7-5z"/></svg> | |
| </button> | |
| <button class="btn small" id="restart">Restart</button> | |
| <input type="range" id="scrub" min="0" max="0" value="0" aria-label="Frame"> | |
| <span class="counter" id="counter">frame β / β</span> | |
| <button class="btn small" id="fit">Fit</button> | |
| </div> | |
| <div class="playback"> | |
| <div class="pb"> | |
| <label for="delay">Frame delay</label> | |
| <input type="range" id="delay" min="40" max="600" step="20" value="150"> | |
| <span class="v" id="delay-v">150 ms</span> | |
| </div> | |
| <div class="pb"> | |
| <label for="stride">Step</label> | |
| <input type="range" id="stride" min="1" max="8" step="1" value="1"> | |
| <span class="v" id="stride-v">every frame</span> | |
| </div> | |
| <div class="pb"> | |
| <label for="speed">Vehicle speed</label> | |
| <input type="range" id="speed" min="0" max="120" step="5" value="0"> | |
| <span class="v" id="speed-v">as driven</span> | |
| </div> | |
| <p class="pb-note small dim"> | |
| Delay and step change playback only β they do not touch what was | |
| measured. Vehicle speed does: the rings are recomputed for the speed | |
| you set, the same function the pipeline calls. Leave it at | |
| <i>as driven</i> to see the rings this drive actually chose. | |
| </p> | |
| </div> | |
| <div class="summary" id="summary" hidden> | |
| <div class="summary-card"> | |
| <div class="sm-head"> | |
| <div> | |
| <div class="eyebrow">Run complete</div> | |
| <h3 id="sm-title">β</h3> | |
| <p class="sm-sub" id="sm-sub">β</p> | |
| </div> | |
| <button class="btn small" id="sm-close" aria-label="Close">Close</button> | |
| </div> | |
| <div class="sm-grid"> | |
| <div class="sm-stat"> | |
| <div class="v" id="sm-ms">β</div> | |
| <div class="k">average grid build</div> | |
| <div class="r" id="sm-ms-range">β</div> | |
| </div> | |
| <div class="sm-stat"> | |
| <div class="v" id="sm-fps">β</div> | |
| <div class="k">average throughput</div> | |
| <div class="r" id="sm-fps-range">β</div> | |
| </div> | |
| <div class="sm-stat"> | |
| <div class="v" id="sm-cells">β</div> | |
| <div class="k">average cells / scan</div> | |
| <div class="r" id="sm-points">β</div> | |
| </div> | |
| <div class="sm-stat"> | |
| <div class="v" id="sm-mem">β</div> | |
| <div class="k">average map memory</div> | |
| <div class="r" id="sm-red">β</div> | |
| </div> | |
| </div> | |
| <table class="data sm-table"> | |
| <tbody> | |
| <tr><th>Frames played</th><td id="sm-frames">β</td></tr> | |
| <tr id="sm-acc-row"><th>Classification accuracy</th><td id="sm-acc">β</td></tr> | |
| <tr id="sm-speed-row"><th>Average vehicle speed</th><td id="sm-speed">β</td></tr> | |
| <tr id="sm-reach-row"><th>Average reachable ground</th><td id="sm-reach">β</td></tr> | |
| <tr id="sm-def-row"><th>Surface defects ahead, total</th><td id="sm-def">β</td></tr> | |
| <tr><th>Driving advice issued</th><td id="sm-advice">β</td></tr> | |
| </tbody> | |
| </table> | |
| <p class="sm-foot small dim" id="sm-foot">β</p> | |
| <div class="sm-actions"> | |
| <button class="btn" id="sm-replay">Play again</button> | |
| <a class="btn" href="lab.html">Try the Grid Lab</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="controls"> | |
| <span class="label">Colour</span> | |
| <div class="seg" data-group="mode" role="group" aria-label="Colour mode"> | |
| <button data-mode="category" aria-pressed="true">Category</button> | |
| <button data-mode="height" aria-pressed="false">Height</button> | |
| <button data-mode="ring" aria-pressed="false">Resolution ring</button> | |
| </div> | |
| <span class="label">Camera</span> | |
| <label class="check"><input type="checkbox" id="follow" checked> follow vehicle</label> | |
| <span class="label">Show</span> | |
| <label class="check"><input type="checkbox" id="ov-path" checked> path</label> | |
| <label class="check"><input type="checkbox" id="ov-tracks" checked> tracked objects</label> | |
| <label class="check"><input type="checkbox" id="ov-rings" checked> resolution rings</label> | |
| <label class="check"><input type="checkbox" id="ov-corridor"> reachable corridor</label> | |
| </div> | |
| <div class="legend" id="legend"> | |
| <span><span class="swatch" style="background:#35d07f"></span>drivable</span> | |
| <span><span class="swatch" style="background:#e05a4a"></span>static obstacle</span> | |
| <span><span class="swatch" style="background:#f0c419"></span>dynamic object</span> | |
| <span><span class="swatch" style="background:#5a6376"></span>unknown</span> | |
| <span><span class="swatch" style="border:2px solid #ff4040;background:none"></span>confirmed moving</span> | |
| <span><span class="swatch" style="border:2px solid #4a9ee0;background:none"></span>parked</span> | |
| <span><span class="swatch" style="background:#fff"></span>vehicle</span> | |
| <span><span class="swatch" style="background:#7ee8fa"></span>reachable corridor</span> | |
| </div> | |
| </div> | |
| <aside class="side"> | |
| <div class="card"> | |
| <h3>Dataset</h3> | |
| <div class="ds-title" id="ds-title">β</div> | |
| <div class="ds-meta" id="ds-meta">β</div> | |
| <div class="ds-story" id="ds-story"></div> | |
| <div class="caveat" id="ds-caveat" hidden></div> | |
| </div> | |
| <div class="card inspect" id="inspect"> | |
| <h3>Cell inspector</h3> | |
| <div class="empty">Click any cell on the map to read what it stores.</div> | |
| <dl class="fields"> | |
| <dt>x</dt><dd id="i-x"></dd> | |
| <dt>y</dt><dd id="i-y"></dd> | |
| <dt>cell size</dt><dd id="i-size"></dd> | |
| <dt>ring</dt><dd id="i-ring"></dd> | |
| <dt>z min</dt><dd id="i-zmin"></dd> | |
| <dt>z max</dt><dd id="i-zmax"></dd> | |
| <dt>height</dt><dd id="i-h"></dd> | |
| <dt>points</dt><dd id="i-n"></dd> | |
| <dt>category</dt><dd id="i-cat"></dd> | |
| </dl> | |
| <div class="kbd"><code>space</code> play/pause Β· <code>β</code> <code>β</code> step Β· wheel zoom Β· drag pan</div> | |
| </div> | |
| <div class="card"> | |
| <h3>What you are seeing</h3> | |
| <p class="small dim" style="margin:0">Each square is one grid cell drawn at its real size: 5 cm near the vehicle, 50 cm at the edge. Cells are kept in world coordinates, so the map stays put while the vehicle moves. Circles are objects tracked across frames β red ones are moving, blue ones are parked.</p> | |
| </div> | |
| </aside> | |
| </div> | |
| </main> | |
| <footer> | |
| <div class="wrap"> | |
| <span>Smart India Hackathon 2026</span> | |
| <span>Problem Statement 26053 Β· DRDO</span> | |
| <span><b>Team Time2Act</b></span> | |
| <a href="https://github.com/aryan-labs/sih26">Source on GitHub</a> | |
| </div> | |
| </footer> | |
| <script src="assets/codec.js"></script> | |
| <script src="assets/adaptive.js"></script> | |
| <script src="assets/palette.js"></script> | |
| <script src="assets/data.js"></script> | |
| <script src="assets/render.js"></script> | |
| <script src="assets/explore.js"></script> | |
| </body> | |
| </html> | |