Next-Passage / index.html
Lamapi's picture
Publish Next-Passage space
8e11959 verified
Raw History Blame Contribute Delete
2.97 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="data:,">
<title>Next Passage</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<header>
<h1>Next Passage</h1>
<p>A robot crosses a floor with doors that open and close on a schedule and obstacles that patrol corridors and sometimes stall. The time-aware planner waits or detours when needed and replans when an obstacle deviates from its prediction. Pick a scenario; all planners run in your browser.</p>
<div class="badges"><span class="badge warn">Simulation only</span><span class="badge">Live in-browser planning</span><a class="badge" href="https://huggingface.co/thelamapi/Next-Passage">Model repo</a></div>
</header>
<div class="grid">
<section class="card">
<h2>Scenario</h2>
<label for="seed">Scenario seed (test seeds in the benchmark start at 20000)</label>
<div class="row"><input type="text" id="seed" value="20001" inputmode="numeric" style="flex:1"><button id="go">Run</button><button id="random" class="ghost">Random</button></div>
<label for="density">Obstacle density</label>
<select id="density"><option value="low">low (3)</option><option value="medium">medium (6)</option><option value="high" selected>high (10)</option></select>
<label for="stall">Stall probability per step: <b id="stall_v">0.15</b></label>
<input type="range" id="stall" min="0" max="0.5" step="0.05" value="0.15">
<p class="small muted">Red door = closed, green = open. Orange discs are obstacles, the blue disc is the robot (red on a collision).</p>
</section>
<section class="card">
<h2>Results for this scenario</h2>
<div class="scroll"><table id="tbl"></table></div>
<p class="small muted">Nodes = search nodes expanded over the whole run (re-planning cost).</p>
</section>
</div>
<section class="card" style="margin-top:12px">
<div class="row"><select id="planner" style="max-width:280px"><option value="timed">Next Passage (time-aware)</option><option value="reactive">Static + reactive replanning</option><option value="static">Static shortest path</option></select>
<button id="play">Play</button><input type="range" id="time" min="0" max="10" value="0" style="flex:1;min-width:120px" aria-label="time step"></div>
<p class="status" id="info"></p>
<canvas id="grid"></canvas>
</section>
<section class="card" style="margin-top:12px">
<h2>Recorded replay</h2>
<video src="replay.mp4" controls muted playsinline poster="preview.png"></video>
</section>
<p class="status" id="status"></p>
<footer>Grid-world simulation with known door schedules and stochastic obstacle stalls. No physical robot.</footer>
</main>
<script src="nlrt.js"></script>
<script src="nlui.js"></script>
<script src="core.js"></script>
<script src="app.js"></script>
</body>
</html>