dualworld viewer: anat_s0_alpamayo (2 runs)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- dualworld/anat_s0_alpamayo/index.html +1184 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000019/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000019/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000039/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000039/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000059/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000059/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000079/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000079/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000099/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000099/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000119/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000119/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000139/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000139/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000159/ft_front_wide/input_rgb.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000159/ft_front_wide/protected_exact/vision.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/cosmos_ft_front_wide_stitched_restored.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_front.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_front_tele.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_cross_left.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_cross_right.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_front_tele.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_front_wide.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_left.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_f0.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_l0.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_l1.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_r0.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_r1.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_rear.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/rgb_right.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/depth_front.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/depth_hv_front_wide.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/depth_left.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/depth_nuplan_f0.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/depth_rear.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/depth_right.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_front.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_front_tele.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_cross_left.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_cross_right.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_front_tele.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_front_wide.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_left.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_nuplan_f0.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_rear.mp4 +3 -0
- dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_right.mp4 +3 -0
- dualworld/anat_s0_alpamayo/suite.json +25 -0
- dualworld/anat_s0_alpamayo/town10turn/dualworld/cosmos/replan_000019/ft_front_wide/input_rgb.mp4 +3 -0
dualworld/anat_s0_alpamayo/index.html
ADDED
|
@@ -0,0 +1,1184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" data-theme="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<title>SceneDriveBench — Dualworld Suite Viewer</title>
|
| 7 |
+
<style>
|
| 8 |
+
:root {
|
| 9 |
+
color-scheme: dark;
|
| 10 |
+
--page: #0d0d0d;
|
| 11 |
+
--surface-1: #1a1a19;
|
| 12 |
+
--surface-2: #232322;
|
| 13 |
+
--text-primary: #ffffff;
|
| 14 |
+
--text-secondary: #c3c2b7;
|
| 15 |
+
--text-muted: #898781;
|
| 16 |
+
--grid: #2c2c2a;
|
| 17 |
+
--baseline: #383835;
|
| 18 |
+
--border: rgba(255,255,255,0.10);
|
| 19 |
+
--series-1: #3987e5; /* blue */
|
| 20 |
+
--series-2: #d95926; /* orange */
|
| 21 |
+
--series-3: #199e70; /* aqua */
|
| 22 |
+
--series-5: #d55181; /* magenta */
|
| 23 |
+
--accent: var(--series-1);
|
| 24 |
+
/* bird's-eye map */
|
| 25 |
+
--map-road: #2e2e2c;
|
| 26 |
+
--map-junction: #343432;
|
| 27 |
+
--map-walk: #3f3e3a;
|
| 28 |
+
--map-mark: #d6d5cf;
|
| 29 |
+
--map-yellow: #d9b13f;
|
| 30 |
+
--map-plate: #e5484d;
|
| 31 |
+
}
|
| 32 |
+
* { box-sizing: border-box; }
|
| 33 |
+
html, body { margin: 0; padding: 0; }
|
| 34 |
+
body {
|
| 35 |
+
background: var(--page);
|
| 36 |
+
color: var(--text-primary);
|
| 37 |
+
font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
|
| 38 |
+
}
|
| 39 |
+
.num { font-variant-numeric: tabular-nums; }
|
| 40 |
+
|
| 41 |
+
header {
|
| 42 |
+
display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
|
| 43 |
+
padding: 14px 20px 0;
|
| 44 |
+
}
|
| 45 |
+
header h1 { font-size: 17px; margin: 0; font-weight: 650; }
|
| 46 |
+
header .suite-id { color: var(--text-muted); font-size: 13px; }
|
| 47 |
+
|
| 48 |
+
nav.tabs { display: flex; gap: 4px; padding: 10px 20px 0; flex-wrap: wrap; }
|
| 49 |
+
nav.tabs button {
|
| 50 |
+
background: none; border: 1px solid transparent; border-bottom: none;
|
| 51 |
+
color: var(--text-secondary); font: inherit; padding: 7px 14px;
|
| 52 |
+
border-radius: 8px 8px 0 0; cursor: pointer;
|
| 53 |
+
}
|
| 54 |
+
nav.tabs button:hover { background: var(--surface-2); }
|
| 55 |
+
nav.tabs button.active {
|
| 56 |
+
background: var(--surface-1); color: var(--text-primary);
|
| 57 |
+
border-color: var(--border); font-weight: 600;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
main {
|
| 61 |
+
background: var(--surface-1);
|
| 62 |
+
border-top: 1px solid var(--border);
|
| 63 |
+
padding: 18px 20px 40px;
|
| 64 |
+
display: grid; gap: 18px;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.panel {
|
| 68 |
+
background: var(--surface-2);
|
| 69 |
+
border: 1px solid var(--border);
|
| 70 |
+
border-radius: 10px;
|
| 71 |
+
padding: 14px 16px;
|
| 72 |
+
}
|
| 73 |
+
.panel h2 {
|
| 74 |
+
margin: 0 0 10px; font-size: 13px; font-weight: 650;
|
| 75 |
+
color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/* ---- sensor grid ---- */
|
| 79 |
+
.modality-row { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
|
| 80 |
+
.modality-row .seg {
|
| 81 |
+
display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
|
| 82 |
+
}
|
| 83 |
+
.modality-row .seg button {
|
| 84 |
+
background: none; border: none; color: var(--text-secondary);
|
| 85 |
+
font: inherit; font-size: 13px; padding: 5px 12px; cursor: pointer;
|
| 86 |
+
}
|
| 87 |
+
.modality-row .seg button.active { background: var(--accent); color: #fff; font-weight: 600; }
|
| 88 |
+
.modality-row .spacer { flex: 1; }
|
| 89 |
+
|
| 90 |
+
.cam-grid {
|
| 91 |
+
display: grid; gap: 8px;
|
| 92 |
+
grid-template-columns: 1fr 1.6fr 1fr;
|
| 93 |
+
grid-template-areas: "left front right" "rear front tele";
|
| 94 |
+
}
|
| 95 |
+
.cam-grid.has-cosmos {
|
| 96 |
+
grid-template-areas: "left front right" "rear cosmos tele";
|
| 97 |
+
}
|
| 98 |
+
.cam-cell[data-cam="cosmos_front"] { grid-area: cosmos; }
|
| 99 |
+
/* The cameras the policy itself reads: nuPlan's for AutoVLA / Qwen-Drive,
|
| 100 |
+
the Hyperion captures (before the fisheye warp) for Alpamayo. */
|
| 101 |
+
.cam-grid.nuplan { grid-template-areas: "nl0 nf0 nr0"; }
|
| 102 |
+
.cam-grid.nuplan.has-cosmos { grid-template-areas: "nl0 nf0 nr0" ". cosmos ."; }
|
| 103 |
+
.cam-cell[data-cam="nuplan_l0"] { grid-area: nl0; }
|
| 104 |
+
.cam-cell[data-cam="nuplan_f0"] { grid-area: nf0; }
|
| 105 |
+
.cam-cell[data-cam="nuplan_r0"] { grid-area: nr0; }
|
| 106 |
+
.cam-cell[data-cam="nuplan_l1"] { grid-area: nl0; }
|
| 107 |
+
.cam-cell[data-cam="nuplan_r1"] { grid-area: nr0; }
|
| 108 |
+
.cam-grid.hyperion { grid-template-areas: "hl hf hr" ". hf ht"; }
|
| 109 |
+
.cam-grid.hyperion.has-cosmos { grid-template-areas: "hl hf hr" ". cosmos ht"; }
|
| 110 |
+
.cam-cell[data-cam="hv_cross_left"] { grid-area: hl; }
|
| 111 |
+
.cam-cell[data-cam="hv_front_wide"] { grid-area: hf; }
|
| 112 |
+
.cam-cell[data-cam="hv_cross_right"] { grid-area: hr; }
|
| 113 |
+
.cam-cell[data-cam="hv_front_tele"] { grid-area: ht; }
|
| 114 |
+
.cam-cell[data-cam="cosmos_front"] .cam-label { background: rgba(217,89,38,.75); }
|
| 115 |
+
.cam-cell { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
|
| 116 |
+
.cam-cell[data-cam="front"] { grid-area: front; }
|
| 117 |
+
.cam-cell[data-cam="left"] { grid-area: left; }
|
| 118 |
+
.cam-cell[data-cam="right"] { grid-area: right; }
|
| 119 |
+
.cam-cell[data-cam="rear"] { grid-area: rear; }
|
| 120 |
+
.cam-cell[data-cam="front_tele"] { grid-area: tele; }
|
| 121 |
+
/* LEAD's own six cameras, laid out as mounted (yaw -57.5 / 0 / +57.5 in
|
| 122 |
+
front, -122.5 / 180 / +122.5 behind) */
|
| 123 |
+
.cam-grid.lead {
|
| 124 |
+
grid-template-columns: 1fr 1fr 1fr;
|
| 125 |
+
grid-template-areas: "l0 f0 r0" "l1 b0 r1";
|
| 126 |
+
}
|
| 127 |
+
.cam-cell[data-cam="lead_l0"] { grid-area: l0; }
|
| 128 |
+
.cam-cell[data-cam="lead_f0"] { grid-area: f0; }
|
| 129 |
+
.cam-cell[data-cam="lead_r0"] { grid-area: r0; }
|
| 130 |
+
.cam-cell[data-cam="lead_l1"] { grid-area: l1; }
|
| 131 |
+
.cam-cell[data-cam="lead_b0"] { grid-area: b0; }
|
| 132 |
+
.cam-cell[data-cam="lead_r1"] { grid-area: r1; }
|
| 133 |
+
.compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
|
| 134 |
+
.compare-row:empty { display: none; }
|
| 135 |
+
.compare-row .cam-cell { aspect-ratio: auto; }
|
| 136 |
+
.compare-toggle { display: inline-flex; gap: 6px; align-items: center; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
|
| 137 |
+
.cam-cell video { display: block; width: 100%; height: 100%; object-fit: contain; }
|
| 138 |
+
.cam-label {
|
| 139 |
+
position: absolute; top: 6px; left: 8px;
|
| 140 |
+
font-size: 11px; color: #fff; background: rgba(0,0,0,.55);
|
| 141 |
+
padding: 2px 7px; border-radius: 5px; letter-spacing: .03em;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
/* ---- transport ---- */
|
| 145 |
+
.transport { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
|
| 146 |
+
.transport button.play {
|
| 147 |
+
width: 34px; height: 34px; border-radius: 50%;
|
| 148 |
+
border: 1px solid var(--border); background: var(--surface-1);
|
| 149 |
+
color: var(--text-primary); font-size: 14px; cursor: pointer;
|
| 150 |
+
}
|
| 151 |
+
.transport button.play:hover { border-color: var(--accent); }
|
| 152 |
+
.scrub-wrap { position: relative; flex: 1; height: 34px; display: flex; align-items: center; }
|
| 153 |
+
.scrub-wrap input[type=range] {
|
| 154 |
+
width: 100%; margin: 0; accent-color: var(--accent); position: relative; z-index: 2;
|
| 155 |
+
}
|
| 156 |
+
.replan-ticks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
|
| 157 |
+
.replan-ticks span {
|
| 158 |
+
position: absolute; top: 4px; bottom: 4px; width: 2px;
|
| 159 |
+
background: var(--series-2); border-radius: 1px; opacity: .9;
|
| 160 |
+
}
|
| 161 |
+
.time-readout { color: var(--text-secondary); font-size: 13px; min-width: 150px; text-align: right; }
|
| 162 |
+
select.rate {
|
| 163 |
+
background: var(--surface-1); color: var(--text-secondary);
|
| 164 |
+
border: 1px solid var(--border); border-radius: 6px; font: inherit; padding: 4px 6px;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
/* ---- charts ---- */
|
| 168 |
+
.charts-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
|
| 169 |
+
@media (max-width: 1100px) { .charts-row { grid-template-columns: 1fr; } }
|
| 170 |
+
.chart-box { position: relative; }
|
| 171 |
+
.chart-box svg { display: block; width: 100%; height: auto; }
|
| 172 |
+
.chart-legend { display: flex; gap: 16px; margin: 2px 0 6px; flex-wrap: wrap; }
|
| 173 |
+
.chart-legend .item { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12px; }
|
| 174 |
+
.chart-legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
|
| 175 |
+
.viz-tooltip {
|
| 176 |
+
position: fixed; pointer-events: none; z-index: 50; display: none;
|
| 177 |
+
background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px;
|
| 178 |
+
padding: 8px 10px; font-size: 12px; color: var(--text-secondary);
|
| 179 |
+
box-shadow: 0 4px 16px rgba(0,0,0,.5); min-width: 120px;
|
| 180 |
+
}
|
| 181 |
+
.viz-tooltip .t-title { color: var(--text-primary); font-weight: 600; margin-bottom: 4px; }
|
| 182 |
+
.viz-tooltip .t-row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
|
| 183 |
+
.viz-tooltip .t-row .lhs { display: inline-flex; align-items: center; gap: 6px; }
|
| 184 |
+
.viz-tooltip .swatch { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
|
| 185 |
+
|
| 186 |
+
/* ---- bottom row: BEV + replans ---- */
|
| 187 |
+
.bottom-row { display: grid; grid-template-columns: minmax(380px, 480px) 1fr; gap: 18px; align-items: start; }
|
| 188 |
+
@media (max-width: 1100px) { .bottom-row { grid-template-columns: 1fr; } }
|
| 189 |
+
#bev-canvas { width: 100%; border-radius: 8px; background: var(--surface-1); cursor: crosshair; display: block; }
|
| 190 |
+
|
| 191 |
+
.replan-cards { display: grid; gap: 8px; max-height: 460px; overflow-y: auto; padding-right: 4px; }
|
| 192 |
+
.scope-note {
|
| 193 |
+
font-size: 12px; line-height: 1.5; margin: 0 0 10px;
|
| 194 |
+
padding: 8px 10px; border-radius: 6px;
|
| 195 |
+
border: 1px solid var(--border); background: var(--bg-elev);
|
| 196 |
+
color: var(--text-secondary);
|
| 197 |
+
}
|
| 198 |
+
.scope-note b { color: var(--text); }
|
| 199 |
+
.scope-note .cos { color: var(--accent); }
|
| 200 |
+
.replan-card {
|
| 201 |
+
border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
|
| 202 |
+
cursor: pointer; background: var(--surface-1);
|
| 203 |
+
}
|
| 204 |
+
.replan-card:hover { border-color: var(--text-muted); }
|
| 205 |
+
.replan-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
|
| 206 |
+
.replan-card .rc-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
|
| 207 |
+
.replan-card .rc-head b { font-size: 13px; }
|
| 208 |
+
.replan-card .rc-stat { color: var(--text-muted); font-size: 12px; }
|
| 209 |
+
.replan-card .rc-cot { color: var(--text-secondary); font-size: 13px; margin-top: 5px; font-style: italic; }
|
| 210 |
+
|
| 211 |
+
.cosmos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 12px; }
|
| 212 |
+
.cosmos-cell { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
|
| 213 |
+
.cosmos-cell video { display: block; width: 100%; }
|
| 214 |
+
.cosmos-toolbar { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
|
| 215 |
+
.cosmos-toolbar button {
|
| 216 |
+
background: var(--surface-1); border: 1px solid var(--border); color: var(--text-secondary);
|
| 217 |
+
font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 7px; cursor: pointer;
|
| 218 |
+
}
|
| 219 |
+
.cosmos-toolbar button:hover { border-color: var(--accent); color: var(--text-primary); }
|
| 220 |
+
|
| 221 |
+
details.config { color: var(--text-secondary); }
|
| 222 |
+
details.config summary { cursor: pointer; color: var(--text-secondary); font-size: 13px; }
|
| 223 |
+
details.config pre {
|
| 224 |
+
white-space: pre-wrap; font-size: 12px; color: var(--text-muted);
|
| 225 |
+
background: var(--surface-1); border-radius: 8px; padding: 10px 12px; margin: 8px 0 0;
|
| 226 |
+
}
|
| 227 |
+
.instruction {
|
| 228 |
+
border-left: 3px solid var(--series-2); padding: 4px 12px; margin: 0 0 12px;
|
| 229 |
+
color: var(--text-secondary); font-size: 13px;
|
| 230 |
+
}
|
| 231 |
+
.hint { color: var(--text-muted); font-size: 12px; }
|
| 232 |
+
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 13px; color: var(--text-secondary); }
|
| 233 |
+
.facts b { color: var(--text-primary); font-weight: 600; }
|
| 234 |
+
.scene-doc {
|
| 235 |
+
white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
|
| 236 |
+
color: var(--text-secondary); background: var(--surface-1); border-radius: 8px;
|
| 237 |
+
padding: 10px 12px; margin: 0 0 12px;
|
| 238 |
+
}
|
| 239 |
+
.scene-doc:empty { display: none; }
|
| 240 |
+
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
|
| 241 |
+
.panel-head h2 { margin: 0; }
|
| 242 |
+
.panel-head .spacer { flex: 1; }
|
| 243 |
+
</style>
|
| 244 |
+
</head>
|
| 245 |
+
<body>
|
| 246 |
+
<header>
|
| 247 |
+
<h1>SceneDriveBench · Dualworld Suite</h1>
|
| 248 |
+
<span class="suite-id num" id="suite-id"></span>
|
| 249 |
+
</header>
|
| 250 |
+
<nav class="tabs" id="scenario-tabs"></nav>
|
| 251 |
+
|
| 252 |
+
<main>
|
| 253 |
+
<div class="panel" id="scenario-info">
|
| 254 |
+
<div class="facts" id="facts"></div>
|
| 255 |
+
<pre class="scene-doc" id="scene-doc"></pre>
|
| 256 |
+
<p id="evaluation-status"></p>
|
| 257 |
+
<div class="instruction" id="instruction"></div>
|
| 258 |
+
<details class="config">
|
| 259 |
+
<summary>Run configuration & Cosmos prompt</summary>
|
| 260 |
+
<pre id="config-pre"></pre>
|
| 261 |
+
</details>
|
| 262 |
+
</div>
|
| 263 |
+
|
| 264 |
+
<div class="panel">
|
| 265 |
+
<h2>Synchronized sensors</h2>
|
| 266 |
+
<div class="modality-row">
|
| 267 |
+
<div class="seg" id="modality-seg"></div>
|
| 268 |
+
<div class="seg" id="camset-seg"></div>
|
| 269 |
+
<label class="compare-toggle" id="compare-wrap" style="display:none">
|
| 270 |
+
<input type="checkbox" id="compare"> <span id="compare-label"></span>
|
| 271 |
+
</label>
|
| 272 |
+
<div class="spacer"></div>
|
| 273 |
+
<span class="hint" id="ticks-hint">orange markers on the timeline are Cosmos+policy replans</span>
|
| 274 |
+
</div>
|
| 275 |
+
<div class="cam-grid" id="cam-grid"></div>
|
| 276 |
+
<div class="compare-row" id="compare-row"></div>
|
| 277 |
+
<div class="transport">
|
| 278 |
+
<button class="play" id="btn-play" title="play / pause">▶</button>
|
| 279 |
+
<div class="scrub-wrap">
|
| 280 |
+
<div class="replan-ticks" id="replan-ticks"></div>
|
| 281 |
+
<input type="range" id="scrub" min="0" max="1000" value="0" step="1">
|
| 282 |
+
</div>
|
| 283 |
+
<span class="time-readout num" id="time-readout">frame 0 · t = 0.0 s</span>
|
| 284 |
+
<select class="rate" id="rate">
|
| 285 |
+
<option value="0.25">0.25×</option>
|
| 286 |
+
<option value="0.5">0.5×</option>
|
| 287 |
+
<option value="1" selected>1×</option>
|
| 288 |
+
<option value="2">2×</option>
|
| 289 |
+
</select>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
|
| 293 |
+
<div class="charts-row">
|
| 294 |
+
<div class="panel">
|
| 295 |
+
<h2>Vehicle controls</h2>
|
| 296 |
+
<div class="chart-legend" id="controls-legend"></div>
|
| 297 |
+
<div class="chart-box" id="controls-chart"></div>
|
| 298 |
+
</div>
|
| 299 |
+
<div class="panel">
|
| 300 |
+
<h2>Ego speed (m/s)</h2>
|
| 301 |
+
<div class="chart-legend" id="speed-legend"></div>
|
| 302 |
+
<div class="chart-box" id="speed-chart"></div>
|
| 303 |
+
</div>
|
| 304 |
+
</div>
|
| 305 |
+
|
| 306 |
+
<div class="bottom-row">
|
| 307 |
+
<div class="panel">
|
| 308 |
+
<div class="panel-head">
|
| 309 |
+
<h2>Bird's-eye view</h2>
|
| 310 |
+
<span class="spacer"></span>
|
| 311 |
+
<div class="modality-row" style="margin:0"><div class="seg" id="bev-mode"></div></div>
|
| 312 |
+
</div>
|
| 313 |
+
<div class="chart-legend" id="bev-legend"></div>
|
| 314 |
+
<canvas id="bev-canvas"></canvas>
|
| 315 |
+
<div class="hint" style="margin-top:6px" id="bev-hint"></div>
|
| 316 |
+
</div>
|
| 317 |
+
<div class="panel">
|
| 318 |
+
<h2>Replans — policy output & Cosmos</h2>
|
| 319 |
+
<!-- Only the views in cosmos_views are rendered through Cosmos; the rest
|
| 320 |
+
of the policy's cameras are raw CARLA. This panel shows Cosmos
|
| 321 |
+
artifacts, which exist only for the rendered views, so without this
|
| 322 |
+
note the page reads as if the whole world were photoreal. -->
|
| 323 |
+
<div id="cosmos-scope" class="scope-note" style="display:none"></div>
|
| 324 |
+
<div class="replan-cards" id="replan-cards"></div>
|
| 325 |
+
<div class="cosmos-toolbar" id="cosmos-toolbar" style="display:none">
|
| 326 |
+
<button id="cosmos-play">▶ play all</button>
|
| 327 |
+
<button id="cosmos-restart">⟲ restart</button>
|
| 328 |
+
<span class="hint">looping 4 s Cosmos window for the selected replan</span>
|
| 329 |
+
</div>
|
| 330 |
+
<div class="cosmos-grid" id="cosmos-grid"></div>
|
| 331 |
+
</div>
|
| 332 |
+
</div>
|
| 333 |
+
</main>
|
| 334 |
+
|
| 335 |
+
<div class="viz-tooltip" id="tooltip"></div>
|
| 336 |
+
|
| 337 |
+
<script src="viewer_data.js"></script>
|
| 338 |
+
<script>
|
| 339 |
+
"use strict";
|
| 340 |
+
|
| 341 |
+
window.addEventListener("error", e => {
|
| 342 |
+
const b = document.createElement("pre");
|
| 343 |
+
b.style.cssText = "color:#e66767;background:#1a1a19;padding:10px 16px;margin:0;white-space:pre-wrap";
|
| 344 |
+
b.textContent = `viewer error: ${e.message} (${e.filename}:${e.lineno})`;
|
| 345 |
+
document.body.prepend(b);
|
| 346 |
+
});
|
| 347 |
+
|
| 348 |
+
/* ============================== state ============================== */
|
| 349 |
+
const S = {
|
| 350 |
+
data: null,
|
| 351 |
+
scen: null, // active scenario object
|
| 352 |
+
modality: null, // null = the scenario's first (a LEAD run's own cameras)
|
| 353 |
+
compare: false, // show the other arm of the same scene alongside
|
| 354 |
+
bevFollow: false, // BEV: follow ego at 60 m instead of fitting the episode
|
| 355 |
+
playing: false,
|
| 356 |
+
videos: {}, // cam -> <video>
|
| 357 |
+
master: null, // master <video>
|
| 358 |
+
selectedReplan: null,
|
| 359 |
+
charts: [], // {update(tSec)} cursor updaters
|
| 360 |
+
};
|
| 361 |
+
const CAMS = ["left", "front", "right", "rear", "front_tele"];
|
| 362 |
+
const LEAD_CAMS = ["lead_l0", "lead_f0", "lead_r0", "lead_l1", "lead_b0", "lead_r1"];
|
| 363 |
+
const CAM_LABELS = { front: "FRONT (CARLA)", front_tele: "FRONT TELE", left: "LEFT", right: "RIGHT", rear: "REAR",
|
| 364 |
+
cosmos_front: "FRONT · COSMOS (policy input)",
|
| 365 |
+
nuplan_f0: "NUPLAN F0 · FRONT (policy)", nuplan_l0: "NUPLAN L0 · FRONT-LEFT",
|
| 366 |
+
nuplan_r0: "NUPLAN R0 · FRONT-RIGHT", nuplan_l1: "NUPLAN L1 · LEFT",
|
| 367 |
+
nuplan_r1: "NUPLAN R1 · RIGHT",
|
| 368 |
+
hv_front_wide: "FRONT WIDE (policy, before fisheye)", hv_cross_left: "CROSS LEFT",
|
| 369 |
+
hv_cross_right: "CROSS RIGHT", hv_front_tele: "FRONT TELE",
|
| 370 |
+
lead_f0: "LEAD F0 · FRONT", lead_l0: "L0 · FRONT-LEFT", lead_r0: "R0 · FRONT-RIGHT",
|
| 371 |
+
lead_l1: "L1 · REAR-LEFT", lead_b0: "B0 · REAR", lead_r1: "R1 · REAR-RIGHT" };
|
| 372 |
+
const MOD_LABELS = { lead: "LEAD input", rgb: "RGB", depth: "Depth", semseg: "SemSeg" };
|
| 373 |
+
// Replan markers are drawn only when sparse: LEAD replans every tick, and
|
| 374 |
+
// 140 markers paint the whole timeline orange.
|
| 375 |
+
const replanMarks = sc => sc.replans.length <= 40 ? sc.replans : [];
|
| 376 |
+
const sibling = sc => S.data.scenarios.find(o => o !== sc && o.group === sc.group &&
|
| 377 |
+
o.arm !== sc.arm && o.policy === sc.policy && o.seed === sc.seed) || null;
|
| 378 |
+
const armName = sc => `${sc.arm || "?"}${sc.arm_label ? ` (arm ${sc.arm_label})` : ""}`;
|
| 379 |
+
const COSMOS_LABELS = {
|
| 380 |
+
input: "sim input (CARLA)", restored: "Cosmos + exact restore (policy input)",
|
| 381 |
+
generation: "Cosmos raw (pre-restore)", mask_guided: "mask-guided gen",
|
| 382 |
+
control_vis: "control overlay", control_edge: "edge control", control_depth: "depth control",
|
| 383 |
+
control_seg: "seg control",
|
| 384 |
+
};
|
| 385 |
+
const css = name => getComputedStyle(document.documentElement).getPropertyValue(name).trim();
|
| 386 |
+
const $ = id => document.getElementById(id);
|
| 387 |
+
const el = (tag, attrs = {}, ...kids) => {
|
| 388 |
+
const n = document.createElement(tag);
|
| 389 |
+
for (const [k, v] of Object.entries(attrs)) {
|
| 390 |
+
if (k === "class") n.className = v;
|
| 391 |
+
else if (k.startsWith("on")) n.addEventListener(k.slice(2), v);
|
| 392 |
+
else n.setAttribute(k, v);
|
| 393 |
+
}
|
| 394 |
+
n.append(...kids);
|
| 395 |
+
return n;
|
| 396 |
+
};
|
| 397 |
+
const fmt = (v, nd = 1) => v == null ? "–" : Number(v).toFixed(nd);
|
| 398 |
+
// Where the videos live. Empty when served from the suite directory; a host
|
| 399 |
+
// that keeps the page apart from its media (the HF gallery streams videos from
|
| 400 |
+
// the dataset) sets window.VIEWER_MEDIA_BASE before this script runs.
|
| 401 |
+
const media = p => /^(https?:)?\/\//.test(p) ? p : (window.VIEWER_MEDIA_BASE || "") + p;
|
| 402 |
+
|
| 403 |
+
/* ============================== boot ============================== */
|
| 404 |
+
window.addEventListener("DOMContentLoaded", () => {
|
| 405 |
+
if (!window.VIEWER_DATA) {
|
| 406 |
+
document.querySelector("main").innerHTML =
|
| 407 |
+
`<div class="panel">Failed to load <code>viewer_data.js</code> — run build.py on this suite directory.</div>`;
|
| 408 |
+
return;
|
| 409 |
+
}
|
| 410 |
+
S.data = window.VIEWER_DATA;
|
| 411 |
+
$("suite-id").textContent = S.data.suite;
|
| 412 |
+
const tabs = $("scenario-tabs");
|
| 413 |
+
S.data.scenarios.forEach((sc, i) => {
|
| 414 |
+
const label = sc.group ? `${sc.group.replaceAll("_", " ")} · ${armName(sc)}` : sc.name.replaceAll("_", " ");
|
| 415 |
+
tabs.append(el("button", { onclick: () => selectScenario(i), title: sc.name }, label));
|
| 416 |
+
});
|
| 417 |
+
// deep link: ?scenario=<name|index>&replan=<t0>&compare=1&bev=follow&t=<s>
|
| 418 |
+
const q = new URLSearchParams(location.search);
|
| 419 |
+
S.compare = q.get("compare") === "1";
|
| 420 |
+
S.bevFollow = q.get("bev") === "follow";
|
| 421 |
+
const want = q.get("scenario");
|
| 422 |
+
let idx = 0;
|
| 423 |
+
if (want != null) {
|
| 424 |
+
const byName = S.data.scenarios.findIndex(s => s.name === want);
|
| 425 |
+
idx = byName >= 0 ? byName : (parseInt(want, 10) || 0);
|
| 426 |
+
}
|
| 427 |
+
selectScenario(Math.max(0, Math.min(S.data.scenarios.length - 1, idx)));
|
| 428 |
+
const t0 = q.get("replan");
|
| 429 |
+
if (t0 != null) {
|
| 430 |
+
const r = S.scen.replans.find(r => String(r.t0) === t0);
|
| 431 |
+
const card = document.querySelectorAll(".replan-card")[S.scen.replans.indexOf(r)];
|
| 432 |
+
if (r && card) selectReplan(r, card);
|
| 433 |
+
}
|
| 434 |
+
const t = parseFloat(q.get("t"));
|
| 435 |
+
if (t > 0) { seekAll(t); updateAtTime(t); }
|
| 436 |
+
});
|
| 437 |
+
|
| 438 |
+
function selectScenario(i) {
|
| 439 |
+
S.scen = S.data.scenarios[i];
|
| 440 |
+
S.selectedReplan = null;
|
| 441 |
+
document.querySelectorAll("#scenario-tabs button").forEach((b, j) => b.classList.toggle("active", j === i));
|
| 442 |
+
renderInfo();
|
| 443 |
+
renderModalitySeg();
|
| 444 |
+
renderCamSetSeg();
|
| 445 |
+
renderCompareToggle();
|
| 446 |
+
renderCamGrid();
|
| 447 |
+
renderReplanTicks();
|
| 448 |
+
renderCharts();
|
| 449 |
+
renderBEVLegend();
|
| 450 |
+
renderReplans();
|
| 451 |
+
updateAtTime(0);
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
/* ============================== info ============================== */
|
| 455 |
+
function renderInfo() {
|
| 456 |
+
const sc = S.scen;
|
| 457 |
+
const facts = $("facts");
|
| 458 |
+
facts.innerHTML = "";
|
| 459 |
+
const fact = (k, v) => v != null && v !== "" && facts.append(el("span", {}, `${k} `, el("b", {}, String(v))));
|
| 460 |
+
fact("policy", sc.policy);
|
| 461 |
+
fact("town", sc.map && sc.map.town);
|
| 462 |
+
fact("jurisdiction", armName(sc));
|
| 463 |
+
if (sc.countries && sc.countries.length === 2) fact("arms", `A = ${sc.countries[0]} · B = ${sc.countries[1]}`);
|
| 464 |
+
fact("seed", sc.seed);
|
| 465 |
+
fact("length", `${(sc.num_frames / sc.fps).toFixed(1)} s`);
|
| 466 |
+
fact("ended", sc.execution && sc.execution.termination_reason);
|
| 467 |
+
if (sc.interference) fact("background", sc.interference.valid ? "no interference"
|
| 468 |
+
: `INTERFERED (${sc.interference.events.map(e => e.kind === "contact"
|
| 469 |
+
? `${e.type} touched ego at ${e.at_s} s` : `${e.type} in ego's path ${e.from_s}-${e.to_s} s`).join("; ")})`);
|
| 470 |
+
if (sc.scene_instruction && sc.scene_instruction.mode !== "none") fact("text", sc.scene_instruction.mode);
|
| 471 |
+
const seen = (sc.map && sc.map.sign_visibility) || {};
|
| 472 |
+
for (const [sid, views] of Object.entries(seen)) {
|
| 473 |
+
const parts = Object.entries(views).map(([v, n]) => `${v} ${n}`).join(", ");
|
| 474 |
+
fact(`plate ${sid}`, parts ? `visible frames: ${parts}` : "never visible");
|
| 475 |
+
}
|
| 476 |
+
if (sc.map && !Object.keys(seen).length) fact("plates", "none");
|
| 477 |
+
$("scene-doc").textContent = sc.scene_doc || "";
|
| 478 |
+
$("evaluation-status").textContent = sc.evaluation_status || "Run validity not recorded";
|
| 479 |
+
$("instruction").textContent = sc.instruction || "(no policy instruction recorded)";
|
| 480 |
+
const cfg = { ...sc.config };
|
| 481 |
+
const prompt = cfg.prompt; delete cfg.prompt;
|
| 482 |
+
$("config-pre").textContent =
|
| 483 |
+
Object.entries(cfg).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join("\n") +
|
| 484 |
+
(prompt ? `\n\nprompt: ${prompt}` : "");
|
| 485 |
+
renderCosmosScope(sc);
|
| 486 |
+
}
|
| 487 |
+
|
| 488 |
+
// The policy reads every camera on its rig, but only the views in cosmos_views
|
| 489 |
+
// are rendered through Cosmos -- the others are handed to it as raw CARLA.
|
| 490 |
+
// Say so on the page: this panel shows Cosmos artifacts, which exist only for
|
| 491 |
+
// the rendered views, and without this the viewer reads as though the whole
|
| 492 |
+
// world were photoreal.
|
| 493 |
+
const POLICY_RIG_CAMERAS = ["left", "front", "right", "front_tele"];
|
| 494 |
+
function renderCosmosScope(sc) {
|
| 495 |
+
const el = $("cosmos-scope");
|
| 496 |
+
if (!el) return;
|
| 497 |
+
const cfg = sc.config || {};
|
| 498 |
+
// cosmos_views is populated even when Cosmos never ran (LEAD reads raw CARLA
|
| 499 |
+
// by design), so cosmos_enabled is the field that decides, not the view list.
|
| 500 |
+
if (cfg.cosmos_enabled === false) {
|
| 501 |
+
el.innerHTML = "<b>No Cosmos rendering in this suite.</b> The policy read " +
|
| 502 |
+
"raw CARLA frames on every camera — LEAD has no text channel and takes " +
|
| 503 |
+
"simulator pixels by design, so there is no photoreal condition here.";
|
| 504 |
+
el.style.display = "";
|
| 505 |
+
return;
|
| 506 |
+
}
|
| 507 |
+
const views = cfg.cosmos_views;
|
| 508 |
+
if (!Array.isArray(views) || views.length === 0) {
|
| 509 |
+
el.style.display = "none"; return;
|
| 510 |
+
}
|
| 511 |
+
const raw = POLICY_RIG_CAMERAS.filter(c => !views.includes(c));
|
| 512 |
+
const cos = views.map(v => `<span class="cos">${v}</span>`).join(", ");
|
| 513 |
+
el.innerHTML = raw.length
|
| 514 |
+
? `<b>Cosmos covers ${views.length} of ${POLICY_RIG_CAMERAS.length} policy cameras.</b> ` +
|
| 515 |
+
`Rendered through Cosmos: ${cos}. Handed to the policy as raw CARLA: ` +
|
| 516 |
+
`${raw.join(", ")}. The panels below show only the rendered view(s), ` +
|
| 517 |
+
`so this page is not evidence the policy drove in a fully photoreal world.`
|
| 518 |
+
: `<b>All ${views.length} policy cameras rendered through Cosmos.</b>`;
|
| 519 |
+
el.style.display = "";
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
/* ============================== sensor grid ============================== */
|
| 523 |
+
function renderModalitySeg() {
|
| 524 |
+
const seg = $("modality-seg");
|
| 525 |
+
seg.innerHTML = "";
|
| 526 |
+
if (!S.scen.videos[S.modality]) S.modality = Object.keys(S.scen.videos)[0];
|
| 527 |
+
for (const mod of Object.keys(S.scen.videos)) {
|
| 528 |
+
seg.append(el("button", {
|
| 529 |
+
class: mod === S.modality ? "active" : "",
|
| 530 |
+
onclick: () => { S.modality = mod; renderModalitySeg(); renderCamGrid(); },
|
| 531 |
+
}, MOD_LABELS[mod] || mod));
|
| 532 |
+
}
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
// Which cameras the grid shows: by default the ones the policy itself reads;
|
| 536 |
+
// "standard" is the repo's own front / left / right / rear / tele.
|
| 537 |
+
function camLayout(sc, vids) {
|
| 538 |
+
if (S.camSet !== "standard") {
|
| 539 |
+
if (vids.nuplan_f0 && (sc.policy === "autovla" || sc.policy === "qwendrive")) {
|
| 540 |
+
// AutoVLA reads the side cameras L1/R1 (runs since 2026-10-18), Qwen-Drive L0/R0.
|
| 541 |
+
const side = sc.policy === "autovla" && vids.nuplan_l1 ? "1" : "0";
|
| 542 |
+
return { cls: "nuplan", cams: ["nuplan_l" + side, "nuplan_f0", "nuplan_r" + side], main: "nuplan_f0" };
|
| 543 |
+
}
|
| 544 |
+
if (vids.hv_front_wide && (sc.policy === "alpamayo" || sc.policy === "alpamayo2"))
|
| 545 |
+
return { cls: "hyperion", main: "hv_front_wide",
|
| 546 |
+
cams: ["hv_cross_left", "hv_front_wide", "hv_cross_right", "hv_front_tele"] };
|
| 547 |
+
}
|
| 548 |
+
return { cls: "", cams: CAMS, main: "front" };
|
| 549 |
+
}
|
| 550 |
+
function renderCamSetSeg() {
|
| 551 |
+
const seg = $("camset-seg");
|
| 552 |
+
seg.innerHTML = "";
|
| 553 |
+
for (const [key, label] of [["policy", "Policy cameras"], ["standard", "Standard cameras"]]) {
|
| 554 |
+
seg.append(el("button", {
|
| 555 |
+
class: (S.camSet || "policy") === key ? "active" : "",
|
| 556 |
+
onclick: () => { S.camSet = key; renderCamSetSeg(); renderCamGrid(); },
|
| 557 |
+
}, label));
|
| 558 |
+
}
|
| 559 |
+
}
|
| 560 |
+
|
| 561 |
+
function renderCompareToggle() {
|
| 562 |
+
const sib = sibling(S.scen);
|
| 563 |
+
$("compare-wrap").style.display = sib ? "" : "none";
|
| 564 |
+
if (sib) $("compare-label").textContent = `compare with ${armName(sib)}`;
|
| 565 |
+
$("compare").checked = S.compare && !!sib;
|
| 566 |
+
}
|
| 567 |
+
$("compare").addEventListener("change", () => {
|
| 568 |
+
S.compare = $("compare").checked;
|
| 569 |
+
renderCamGrid(); renderCharts(); renderBEVLegend();
|
| 570 |
+
updateAtTime(S.master ? S.master.currentTime : 0);
|
| 571 |
+
});
|
| 572 |
+
|
| 573 |
+
function renderCamGrid() {
|
| 574 |
+
const grid = $("cam-grid");
|
| 575 |
+
const wasTime = S.master ? S.master.currentTime : 0;
|
| 576 |
+
const wasPlaying = S.playing;
|
| 577 |
+
pauseAll();
|
| 578 |
+
grid.innerHTML = "";
|
| 579 |
+
S.videos = {}; S.master = null;
|
| 580 |
+
const vids = { ...(S.scen.videos[S.modality] || {}) };
|
| 581 |
+
const lead = S.modality === "lead";
|
| 582 |
+
const layout = lead ? { cls: "", cams: LEAD_CAMS, main: "lead_f0" } : camLayout(S.scen, vids);
|
| 583 |
+
const mainCam = layout.main;
|
| 584 |
+
// the stitched Cosmos render of the view the policy reads (front, nuPlan F0
|
| 585 |
+
// or Hyperion front wide) rides along in every modality, below that camera
|
| 586 |
+
const cosmos = S.scen.cosmos_stitched || {};
|
| 587 |
+
const cosKey = ["front", "nuplan_f0", "ft_front_wide"].find(k => cosmos[k]) || Object.keys(cosmos)[0];
|
| 588 |
+
if (cosKey && !lead) vids.cosmos_front = cosmos[cosKey];
|
| 589 |
+
CAM_LABELS.cosmos_front = `COSMOS · ${cosKey || "front"} (policy input)`;
|
| 590 |
+
grid.classList.toggle("has-cosmos", !!cosKey && !lead);
|
| 591 |
+
grid.classList.toggle("lead", lead);
|
| 592 |
+
grid.classList.toggle("nuplan", layout.cls === "nuplan");
|
| 593 |
+
grid.classList.toggle("hyperion", layout.cls === "hyperion");
|
| 594 |
+
const addVideo = (parent, key, src, label) => {
|
| 595 |
+
const v = el("video", { src: media(src), preload: "auto", muted: "", playsinline: "" });
|
| 596 |
+
parent.append(el("div", { class: "cam-cell", "data-cam": key }, v, el("span", { class: "cam-label" }, label)));
|
| 597 |
+
S.videos[key] = v;
|
| 598 |
+
return v;
|
| 599 |
+
};
|
| 600 |
+
for (const cam of [...layout.cams, "cosmos_front"]) {
|
| 601 |
+
if (!vids[cam]) continue;
|
| 602 |
+
const v = addVideo(grid, cam, vids[cam], CAM_LABELS[cam] || cam);
|
| 603 |
+
if (!S.master) S.master = v;
|
| 604 |
+
if (cam === mainCam) S.master = v;
|
| 605 |
+
}
|
| 606 |
+
// the same camera of the other arm, side by side: identical scenes should
|
| 607 |
+
// drive identically unless the arms differ in what the policy can see
|
| 608 |
+
const row = $("compare-row");
|
| 609 |
+
row.innerHTML = "";
|
| 610 |
+
const sib = S.compare ? sibling(S.scen) : null;
|
| 611 |
+
const sibSrc = sib && (sib.videos[S.modality] || {})[mainCam];
|
| 612 |
+
if (sibSrc && vids[mainCam]) {
|
| 613 |
+
addVideo(row, "cmp_self", vids[mainCam], `${armName(S.scen)} · ${CAM_LABELS[mainCam]}`);
|
| 614 |
+
addVideo(row, "cmp_other", sibSrc, `${armName(sib)} · ${CAM_LABELS[mainCam]}`);
|
| 615 |
+
}
|
| 616 |
+
if (S.master) {
|
| 617 |
+
S.master.addEventListener("timeupdate", onMasterTick);
|
| 618 |
+
S.master.addEventListener("ended", () => setPlaying(false));
|
| 619 |
+
// 1 ms offset forces the browser to decode and paint the first frame
|
| 620 |
+
for (const v of Object.values(S.videos)) v.currentTime = Math.max(wasTime, 0.001);
|
| 621 |
+
if (wasPlaying) setPlaying(true);
|
| 622 |
+
}
|
| 623 |
+
applyRate();
|
| 624 |
+
}
|
| 625 |
+
|
| 626 |
+
function setPlaying(on) {
|
| 627 |
+
S.playing = on;
|
| 628 |
+
$("btn-play").textContent = on ? "❚❚" : "▶";
|
| 629 |
+
for (const v of Object.values(S.videos)) on ? v.play().catch(() => {}) : v.pause();
|
| 630 |
+
}
|
| 631 |
+
function pauseAll() { for (const v of Object.values(S.videos)) v.pause(); }
|
| 632 |
+
function seekAll(t) {
|
| 633 |
+
for (const v of Object.values(S.videos)) {
|
| 634 |
+
if (Math.abs(v.currentTime - t) > 0.04) v.currentTime = t;
|
| 635 |
+
}
|
| 636 |
+
}
|
| 637 |
+
function applyRate() {
|
| 638 |
+
const r = parseFloat($("rate").value);
|
| 639 |
+
for (const v of Object.values(S.videos)) v.playbackRate = r;
|
| 640 |
+
}
|
| 641 |
+
$("rate").addEventListener("change", applyRate);
|
| 642 |
+
$("btn-play").addEventListener("click", () => {
|
| 643 |
+
if (S.master && S.master.ended) seekAll(0);
|
| 644 |
+
setPlaying(!S.playing);
|
| 645 |
+
});
|
| 646 |
+
$("scrub").addEventListener("input", () => {
|
| 647 |
+
if (!S.scen) return;
|
| 648 |
+
const dur = S.scen.num_frames / S.scen.fps;
|
| 649 |
+
const t = ($("scrub").value / 1000) * dur;
|
| 650 |
+
seekAll(t);
|
| 651 |
+
updateAtTime(t);
|
| 652 |
+
});
|
| 653 |
+
document.addEventListener("keydown", e => {
|
| 654 |
+
if (e.target.tagName === "INPUT" || e.target.tagName === "SELECT") return;
|
| 655 |
+
if (e.code === "Space") { e.preventDefault(); $("btn-play").click(); }
|
| 656 |
+
if (e.code === "ArrowRight" || e.code === "ArrowLeft") {
|
| 657 |
+
const dt = (e.code === "ArrowRight" ? 1 : -1) / (S.scen ? S.scen.fps : 10);
|
| 658 |
+
const t = Math.max(0, (S.master ? S.master.currentTime : 0) + dt);
|
| 659 |
+
seekAll(t); updateAtTime(t);
|
| 660 |
+
}
|
| 661 |
+
});
|
| 662 |
+
|
| 663 |
+
function onMasterTick() {
|
| 664 |
+
const t = S.master.currentTime;
|
| 665 |
+
// keep followers in lockstep with the master clock
|
| 666 |
+
for (const [cam, v] of Object.entries(S.videos)) {
|
| 667 |
+
if (v !== S.master && Math.abs(v.currentTime - t) > 0.1) v.currentTime = t;
|
| 668 |
+
}
|
| 669 |
+
updateAtTime(t);
|
| 670 |
+
}
|
| 671 |
+
|
| 672 |
+
function updateAtTime(t) {
|
| 673 |
+
const sc = S.scen;
|
| 674 |
+
const dur = sc.num_frames / sc.fps;
|
| 675 |
+
const frame = Math.min(sc.num_frames - 1, Math.round(t * sc.fps));
|
| 676 |
+
$("scrub").value = Math.round((t / dur) * 1000);
|
| 677 |
+
$("time-readout").textContent = `frame ${frame} / ${sc.num_frames} · t = ${t.toFixed(1)} s`;
|
| 678 |
+
for (const ch of S.charts) ch.update(t);
|
| 679 |
+
drawBEV(frame);
|
| 680 |
+
}
|
| 681 |
+
|
| 682 |
+
function renderReplanTicks() {
|
| 683 |
+
const box = $("replan-ticks");
|
| 684 |
+
box.innerHTML = "";
|
| 685 |
+
const dur = S.scen.num_frames / S.scen.fps;
|
| 686 |
+
const marks = replanMarks(S.scen);
|
| 687 |
+
$("ticks-hint").style.display = marks.length ? "" : "none";
|
| 688 |
+
for (const r of marks) {
|
| 689 |
+
const pct = (r.t0 / S.scen.fps) / dur * 100;
|
| 690 |
+
box.append(el("span", { style: `left:${pct}%`, title: `replan @ frame ${r.t0}` }));
|
| 691 |
+
}
|
| 692 |
+
}
|
| 693 |
+
|
| 694 |
+
/* ============================== line charts ============================== */
|
| 695 |
+
function niceTicks(y0, y1, n = 4) {
|
| 696 |
+
const raw = (y1 - y0) / n;
|
| 697 |
+
const mag = Math.pow(10, Math.floor(Math.log10(raw)));
|
| 698 |
+
const norm = raw / mag;
|
| 699 |
+
const step = mag * (norm < 1.5 ? 1 : norm < 3 ? 2 : norm < 7 ? 5 : 10);
|
| 700 |
+
const hi = Math.ceil(y1 / step) * step;
|
| 701 |
+
const ticks = [];
|
| 702 |
+
for (let v = Math.floor(y0 / step) * step; v <= hi + 1e-9; v += step) ticks.push(+v.toFixed(6));
|
| 703 |
+
return { ticks, hi };
|
| 704 |
+
}
|
| 705 |
+
|
| 706 |
+
function lineChart(container, opts) {
|
| 707 |
+
// opts: {series:[{name,color,x[],y[]}], yDomain:[lo,hi], xDomain:[lo,hi], height, yFmt, legendEl}
|
| 708 |
+
const W = 640, H = opts.height || 200;
|
| 709 |
+
const M = { l: 42, r: 74, t: 10, b: 24 };
|
| 710 |
+
const [x0, x1] = opts.xDomain;
|
| 711 |
+
let [y0, y1] = opts.yDomain;
|
| 712 |
+
let yTickVals;
|
| 713 |
+
if (opts.niceY) {
|
| 714 |
+
const nt = niceTicks(y0, y1, opts.yTicks || 4);
|
| 715 |
+
y1 = nt.hi; yTickVals = nt.ticks;
|
| 716 |
+
} else {
|
| 717 |
+
const n = opts.yTicks || 4;
|
| 718 |
+
yTickVals = Array.from({ length: n + 1 }, (_, i) => y0 + (y1 - y0) * i / n);
|
| 719 |
+
}
|
| 720 |
+
const px = x => M.l + (x - x0) / (x1 - x0) * (W - M.l - M.r);
|
| 721 |
+
const py = y => M.t + (1 - (y - y0) / (y1 - y0)) * (H - M.t - M.b);
|
| 722 |
+
const ns = "http://www.w3.org/2000/svg";
|
| 723 |
+
const svg = document.createElementNS(ns, "svg");
|
| 724 |
+
svg.setAttribute("viewBox", `0 0 ${W} ${H}`);
|
| 725 |
+
container.innerHTML = "";
|
| 726 |
+
container.append(svg);
|
| 727 |
+
const add = (tag, attrs, parent = svg) => {
|
| 728 |
+
const n = document.createElementNS(ns, tag);
|
| 729 |
+
for (const [k, v] of Object.entries(attrs)) n.setAttribute(k, v);
|
| 730 |
+
parent.append(n);
|
| 731 |
+
return n;
|
| 732 |
+
};
|
| 733 |
+
|
| 734 |
+
// recessive grid + axes
|
| 735 |
+
for (const yv of yTickVals) {
|
| 736 |
+
add("line", { x1: M.l, x2: W - M.r, y1: py(yv), y2: py(yv), stroke: css("--grid"), "stroke-width": 1 });
|
| 737 |
+
add("text", {
|
| 738 |
+
x: M.l - 6, y: py(yv) + 4, "text-anchor": "end", fill: css("--text-muted"),
|
| 739 |
+
"font-size": 11, style: "font-variant-numeric: tabular-nums",
|
| 740 |
+
}).textContent = (opts.yFmt || (v => v))(yv);
|
| 741 |
+
}
|
| 742 |
+
for (let xv = Math.ceil(x0); xv <= x1; xv += 2) {
|
| 743 |
+
add("text", {
|
| 744 |
+
x: px(xv), y: H - 8, "text-anchor": "middle", fill: css("--text-muted"),
|
| 745 |
+
"font-size": 11, style: "font-variant-numeric: tabular-nums",
|
| 746 |
+
}).textContent = xv + " s";
|
| 747 |
+
}
|
| 748 |
+
if (y0 < 0 && y1 > 0)
|
| 749 |
+
add("line", { x1: M.l, x2: W - M.r, y1: py(0), y2: py(0), stroke: css("--baseline"), "stroke-width": 1 });
|
| 750 |
+
|
| 751 |
+
// replan markers
|
| 752 |
+
for (const r of (opts.replans || [])) {
|
| 753 |
+
const xr = px(r.t0 / S.scen.fps);
|
| 754 |
+
add("line", { x1: xr, x2: xr, y1: M.t, y2: H - M.b, stroke: css("--series-2"), "stroke-width": 1, "stroke-dasharray": "3 3", opacity: .6 });
|
| 755 |
+
}
|
| 756 |
+
|
| 757 |
+
// series: 2px lines + direct labels at line end (pushed apart if they collide)
|
| 758 |
+
const endLabels = [];
|
| 759 |
+
for (const s of opts.series) {
|
| 760 |
+
const d = s.x.map((xv, i) => `${i ? "L" : "M"}${px(xv).toFixed(1)},${py(s.y[i]).toFixed(1)}`).join("");
|
| 761 |
+
add("path", { d, fill: "none", stroke: s.color, "stroke-width": 2, "stroke-linejoin": "round",
|
| 762 |
+
...(s.dash ? { "stroke-dasharray": s.dash } : {}) });
|
| 763 |
+
endLabels.push({ name: s.name, x: px(s.x[s.x.length - 1]) + 6, y: py(s.y[s.y.length - 1]) + 4 });
|
| 764 |
+
}
|
| 765 |
+
// clamp to the plot first, then push colliding labels apart upward from the
|
| 766 |
+
// bottom -- clamping after pushing stacked lines that all end at 0
|
| 767 |
+
for (const L of endLabels) L.y = Math.min(L.y, H - M.b);
|
| 768 |
+
endLabels.sort((a, b) => a.y - b.y);
|
| 769 |
+
for (let i = endLabels.length - 2; i >= 0; i--)
|
| 770 |
+
if (endLabels[i + 1].y - endLabels[i].y < 13) endLabels[i].y = endLabels[i + 1].y - 13;
|
| 771 |
+
for (const L of endLabels)
|
| 772 |
+
add("text", { x: L.x, y: L.y, fill: css("--text-secondary"), "font-size": 11 })
|
| 773 |
+
.textContent = L.name;
|
| 774 |
+
|
| 775 |
+
// legend (only for multi-series)
|
| 776 |
+
if (opts.legendEl) {
|
| 777 |
+
opts.legendEl.innerHTML = "";
|
| 778 |
+
if (opts.series.length > 1)
|
| 779 |
+
for (const s of opts.series)
|
| 780 |
+
opts.legendEl.append(el("span", { class: "item" },
|
| 781 |
+
el("span", { class: "swatch", style: `background:${s.color}` }), s.name));
|
| 782 |
+
}
|
| 783 |
+
|
| 784 |
+
// playback cursor + crosshair/tooltip
|
| 785 |
+
const cursor = add("line", { x1: px(x0), x2: px(x0), y1: M.t, y2: H - M.b, stroke: css("--text-secondary"), "stroke-width": 1, opacity: .8 });
|
| 786 |
+
const cross = add("line", { x1: 0, x2: 0, y1: M.t, y2: H - M.b, stroke: css("--text-muted"), "stroke-width": 1, opacity: 0 });
|
| 787 |
+
const dots = opts.series.map(s => add("circle", { r: 4, fill: s.color, stroke: css("--surface-2"), "stroke-width": 2, opacity: 0 }));
|
| 788 |
+
const tip = $("tooltip");
|
| 789 |
+
|
| 790 |
+
svg.addEventListener("mousemove", ev => {
|
| 791 |
+
const pt = svg.createSVGPoint(); pt.x = ev.clientX; pt.y = ev.clientY;
|
| 792 |
+
const p = pt.matrixTransform(svg.getScreenCTM().inverse());
|
| 793 |
+
if (p.x < M.l || p.x > W - M.r) { hideTip(); return; }
|
| 794 |
+
const tx = x0 + (p.x - M.l) / (W - M.l - M.r) * (x1 - x0);
|
| 795 |
+
cross.setAttribute("x1", px(tx)); cross.setAttribute("x2", px(tx));
|
| 796 |
+
cross.setAttribute("opacity", .8);
|
| 797 |
+
let rows = "";
|
| 798 |
+
opts.series.forEach((s, i) => {
|
| 799 |
+
let k = s.x.findIndex(v => v >= tx);
|
| 800 |
+
if (k < 0) k = s.x.length - 1;
|
| 801 |
+
if (k > 0 && Math.abs(s.x[k - 1] - tx) < Math.abs(s.x[k] - tx)) k--;
|
| 802 |
+
dots[i].setAttribute("cx", px(s.x[k])); dots[i].setAttribute("cy", py(s.y[k]));
|
| 803 |
+
dots[i].setAttribute("opacity", 1);
|
| 804 |
+
rows += `<div class="t-row"><span class="lhs"><span class="swatch" style="background:${s.color}"></span>${s.name}</span><b class="num">${(opts.yFmt || (v => v))(s.y[k])}</b></div>`;
|
| 805 |
+
});
|
| 806 |
+
tip.innerHTML = `<div class="t-title num">t = ${tx.toFixed(1)} s</div>${rows}`;
|
| 807 |
+
tip.style.display = "block";
|
| 808 |
+
tip.style.left = Math.min(window.innerWidth - 190, ev.clientX + 14) + "px";
|
| 809 |
+
tip.style.top = (ev.clientY + 14) + "px";
|
| 810 |
+
});
|
| 811 |
+
const hideTip = () => {
|
| 812 |
+
tip.style.display = "none"; cross.setAttribute("opacity", 0);
|
| 813 |
+
dots.forEach(d => d.setAttribute("opacity", 0));
|
| 814 |
+
};
|
| 815 |
+
svg.addEventListener("mouseleave", hideTip);
|
| 816 |
+
svg.addEventListener("click", ev => {
|
| 817 |
+
const pt = svg.createSVGPoint(); pt.x = ev.clientX; pt.y = ev.clientY;
|
| 818 |
+
const p = pt.matrixTransform(svg.getScreenCTM().inverse());
|
| 819 |
+
const tx = x0 + (p.x - M.l) / (W - M.l - M.r) * (x1 - x0);
|
| 820 |
+
if (tx >= x0 && tx <= x1) { seekAll(tx); updateAtTime(tx); }
|
| 821 |
+
});
|
| 822 |
+
|
| 823 |
+
return {
|
| 824 |
+
update(tSec) {
|
| 825 |
+
const xv = Math.max(x0, Math.min(x1, tSec));
|
| 826 |
+
cursor.setAttribute("x1", px(xv)); cursor.setAttribute("x2", px(xv));
|
| 827 |
+
},
|
| 828 |
+
};
|
| 829 |
+
}
|
| 830 |
+
|
| 831 |
+
function renderCharts() {
|
| 832 |
+
S.charts = [];
|
| 833 |
+
const sc = S.scen;
|
| 834 |
+
const dur = sc.num_frames / sc.fps;
|
| 835 |
+
const tOf = tick => tick / sc.fps;
|
| 836 |
+
|
| 837 |
+
const ctl = sc.controls;
|
| 838 |
+
const cx = ctl.map(c => tOf(c.tick));
|
| 839 |
+
S.charts.push(lineChart($("controls-chart"), {
|
| 840 |
+
xDomain: [0, dur], yDomain: [-1, 1], yTicks: 4, height: 210,
|
| 841 |
+
yFmt: v => Number(v).toFixed(2),
|
| 842 |
+
legendEl: $("controls-legend"),
|
| 843 |
+
replans: replanMarks(sc),
|
| 844 |
+
series: [
|
| 845 |
+
{ name: "throttle", color: css("--series-1"), x: cx, y: ctl.map(c => c.throttle) },
|
| 846 |
+
{ name: "brake", color: css("--series-2"), x: cx, y: ctl.map(c => c.brake) },
|
| 847 |
+
{ name: "steer", color: css("--series-3"), x: cx, y: ctl.map(c => c.steer) },
|
| 848 |
+
],
|
| 849 |
+
}));
|
| 850 |
+
|
| 851 |
+
const ego = sc.ego;
|
| 852 |
+
const series = [
|
| 853 |
+
{ name: "speed", color: css("--series-1"), x: ego.frame.map(f => f / sc.fps), y: ego.speed },
|
| 854 |
+
];
|
| 855 |
+
// the speed LEAD's planner asked for at each tick: where it falls to zero
|
| 856 |
+
// ahead of the actual speed, the stop was the policy's decision
|
| 857 |
+
const tgt = sc.replans.filter(r => r.target_speed != null);
|
| 858 |
+
if (tgt.length)
|
| 859 |
+
series.push({ name: "target", color: css("--series-2"), dash: "4 3",
|
| 860 |
+
x: tgt.map(r => r.t0 / sc.fps), y: tgt.map(r => r.target_speed) });
|
| 861 |
+
const sib = S.compare ? sibling(sc) : null;
|
| 862 |
+
if (sib)
|
| 863 |
+
series.push({ name: sib.arm_label ? `arm ${sib.arm_label}` : sib.arm, color: css("--series-3"),
|
| 864 |
+
x: sib.ego.frame.map(f => f / sib.fps), y: sib.ego.speed });
|
| 865 |
+
const vmax = Math.max(1, ...series.flatMap(s => s.y)) * 1.1;
|
| 866 |
+
S.charts.push(lineChart($("speed-chart"), {
|
| 867 |
+
xDomain: [0, dur], yDomain: [0, vmax], yTicks: 4, niceY: true, height: 210,
|
| 868 |
+
yFmt: v => Number(v).toFixed(1),
|
| 869 |
+
legendEl: $("speed-legend"),
|
| 870 |
+
replans: replanMarks(sc),
|
| 871 |
+
series,
|
| 872 |
+
}));
|
| 873 |
+
}
|
| 874 |
+
|
| 875 |
+
/* ============================== BEV ============================== */
|
| 876 |
+
const BEV = { pad: 26, hover: null, followSpan: 60 };
|
| 877 |
+
|
| 878 |
+
function bevTransform(canvas, frame = BEV.lastFrame || 0) {
|
| 879 |
+
const sc = S.scen, ego = sc.ego;
|
| 880 |
+
let cxm, cym, span;
|
| 881 |
+
if (S.bevFollow) {
|
| 882 |
+
const k = Math.min(frame, ego.x.length - 1);
|
| 883 |
+
cxm = ego.x[k]; cym = ego.y[k]; span = BEV.followSpan;
|
| 884 |
+
} else {
|
| 885 |
+
let xs = [...ego.x], ys = [...ego.y];
|
| 886 |
+
for (const r of sc.replans) for (const [x, y] of (r.waypoints_world || [])) { xs.push(x); ys.push(y); }
|
| 887 |
+
cxm = (Math.min(...xs) + Math.max(...xs)) / 2;
|
| 888 |
+
cym = (Math.min(...ys) + Math.max(...ys)) / 2;
|
| 889 |
+
span = Math.max(Math.max(...xs) - Math.min(...xs), Math.max(...ys) - Math.min(...ys), 20) * 1.25;
|
| 890 |
+
}
|
| 891 |
+
const s = (canvas.width - 2 * BEV.pad) / span;
|
| 892 |
+
// CARLA is left-handed (y flipped vs. conventional map view) — negate y for display
|
| 893 |
+
return {
|
| 894 |
+
s,
|
| 895 |
+
px: x => canvas.width / 2 + (x - cxm) * s,
|
| 896 |
+
py: y => canvas.height / 2 - (-(y - cym)) * s,
|
| 897 |
+
};
|
| 898 |
+
}
|
| 899 |
+
|
| 900 |
+
function renderBEVMode() {
|
| 901 |
+
const seg = $("bev-mode");
|
| 902 |
+
seg.innerHTML = "";
|
| 903 |
+
for (const [label, on] of [["fit episode", false], ["follow ego", true]])
|
| 904 |
+
seg.append(el("button", {
|
| 905 |
+
class: S.bevFollow === on ? "active" : "",
|
| 906 |
+
onclick: () => { S.bevFollow = on; renderBEVMode(); drawBEV(BEV.lastFrame || 0); },
|
| 907 |
+
}, label));
|
| 908 |
+
}
|
| 909 |
+
|
| 910 |
+
function renderBEVLegend() {
|
| 911 |
+
renderBEVMode();
|
| 912 |
+
const lg = $("bev-legend");
|
| 913 |
+
lg.innerHTML = "";
|
| 914 |
+
const sc = S.scen;
|
| 915 |
+
const items = [["ego", css("--series-1")]];
|
| 916 |
+
if (S.compare && sibling(sc)) items.push([`ego · ${armName(sibling(sc))}`, css("--series-3")]);
|
| 917 |
+
items.push(["scene vehicles", css("--text-secondary")], ["pedestrians", css("--series-5")],
|
| 918 |
+
["traffic", css("--baseline")], ["policy plan", css("--series-2")]);
|
| 919 |
+
if (sc.map && sc.map.route && sc.map.route.pts.length) items.push(["intended route", css("--text-muted")]);
|
| 920 |
+
if (sc.map && sc.map.signs && sc.map.signs.length) items.push(["plate", css("--map-plate")]);
|
| 921 |
+
for (const [name, color] of items)
|
| 922 |
+
lg.append(el("span", { class: "item" }, el("span", { class: "swatch", style: `background:${color}` }), name));
|
| 923 |
+
const recorded = sc.ego.extent != null;
|
| 924 |
+
$("bev-hint").textContent = "Trails show the full episode; markers follow playback. The orange plan is the " +
|
| 925 |
+
"selected replan's, or else the latest one at the playback time. Footprints are " +
|
| 926 |
+
(recorded ? "the actors' CARLA bounding boxes." : "nominal sizes (this run predates recorded extents).");
|
| 927 |
+
}
|
| 928 |
+
|
| 929 |
+
// nominal half-extents [length, width] in m, for runs recorded without them
|
| 930 |
+
const nominalExtent = a => a.type === "pedestrian" ? [0.3, 0.3]
|
| 931 |
+
: /hgv|truck|cola|bus|firetruck|ambulance/.test(a.label || "") ? [4.0, 1.3] : [2.3, 1.0];
|
| 932 |
+
|
| 933 |
+
function drawMap(ctx, T, map) {
|
| 934 |
+
if (!map || !map.lanes) return;
|
| 935 |
+
const fillPoly = (pts, color) => {
|
| 936 |
+
ctx.fillStyle = color; ctx.beginPath();
|
| 937 |
+
pts.forEach(([x, y], i) => i ? ctx.lineTo(T.px(x), T.py(y)) : ctx.moveTo(T.px(x), T.py(y)));
|
| 938 |
+
ctx.closePath(); ctx.fill();
|
| 939 |
+
};
|
| 940 |
+
for (const l of map.lanes)
|
| 941 |
+
if (l.kind !== "Driving") fillPoly(l.poly, css("--map-walk"));
|
| 942 |
+
for (const l of map.lanes)
|
| 943 |
+
if (l.kind === "Driving") fillPoly(l.poly, l.junction ? css("--map-junction") : css("--map-road"));
|
| 944 |
+
ctx.globalAlpha = 0.35;
|
| 945 |
+
for (const c of map.crosswalks || []) fillPoly(c, css("--map-mark"));
|
| 946 |
+
ctx.globalAlpha = 1;
|
| 947 |
+
for (const m of map.marks || []) {
|
| 948 |
+
ctx.strokeStyle = m.color === "yellow" ? css("--map-yellow") : css("--map-mark");
|
| 949 |
+
ctx.globalAlpha = 0.8;
|
| 950 |
+
ctx.lineWidth = Math.max(1, 0.15 * T.s);
|
| 951 |
+
// CARLA broken lines are ~3 m paint / ~6 m gap
|
| 952 |
+
ctx.setLineDash(m.style === "broken" ? [3 * T.s, 6 * T.s] : []);
|
| 953 |
+
ctx.beginPath();
|
| 954 |
+
m.pts.forEach(([x, y], i) => i ? ctx.lineTo(T.px(x), T.py(y)) : ctx.moveTo(T.px(x), T.py(y)));
|
| 955 |
+
ctx.stroke();
|
| 956 |
+
}
|
| 957 |
+
ctx.setLineDash([]); ctx.globalAlpha = 1;
|
| 958 |
+
if (map.route && map.route.pts.length) {
|
| 959 |
+
ctx.strokeStyle = css("--text-muted"); ctx.lineWidth = 2; ctx.setLineDash([2, 6]);
|
| 960 |
+
ctx.beginPath();
|
| 961 |
+
map.route.pts.forEach(([x, y], i) => i ? ctx.lineTo(T.px(x), T.py(y)) : ctx.moveTo(T.px(x), T.py(y)));
|
| 962 |
+
ctx.stroke(); ctx.setLineDash([]);
|
| 963 |
+
}
|
| 964 |
+
for (const sg of map.signs || []) {
|
| 965 |
+
const X = T.px(sg.x), Y = T.py(sg.y);
|
| 966 |
+
ctx.fillStyle = css("--map-plate"); ctx.beginPath();
|
| 967 |
+
for (let i = 0; i < 8; i++) {
|
| 968 |
+
const a = Math.PI / 8 + i * Math.PI / 4;
|
| 969 |
+
const R = Math.max(7, 0.6 * T.s);
|
| 970 |
+
i ? ctx.lineTo(X + R * Math.cos(a), Y + R * Math.sin(a)) : ctx.moveTo(X + R * Math.cos(a), Y + R * Math.sin(a));
|
| 971 |
+
}
|
| 972 |
+
ctx.closePath(); ctx.fill();
|
| 973 |
+
ctx.fillStyle = css("--text-primary"); ctx.font = "20px system-ui";
|
| 974 |
+
ctx.fillText(sg.id, X + 12, Y - 10);
|
| 975 |
+
}
|
| 976 |
+
}
|
| 977 |
+
|
| 978 |
+
function drawBEV(frame) {
|
| 979 |
+
const canvas = $("bev-canvas");
|
| 980 |
+
const cssW = canvas.clientWidth || 440;
|
| 981 |
+
if (canvas.width !== cssW * 2) { canvas.width = cssW * 2; canvas.height = cssW * 2; }
|
| 982 |
+
const ctx = canvas.getContext("2d");
|
| 983 |
+
const sc = S.scen, ego = sc.ego;
|
| 984 |
+
const T = bevTransform(canvas, frame);
|
| 985 |
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
| 986 |
+
drawMap(ctx, T, sc.map);
|
| 987 |
+
|
| 988 |
+
// scale bar
|
| 989 |
+
const step = 10 * T.s;
|
| 990 |
+
ctx.strokeStyle = css("--text-muted"); ctx.lineWidth = 3;
|
| 991 |
+
ctx.beginPath(); ctx.moveTo(BEV.pad, canvas.height - BEV.pad); ctx.lineTo(BEV.pad + step, canvas.height - BEV.pad); ctx.stroke();
|
| 992 |
+
ctx.fillStyle = css("--text-muted"); ctx.font = "20px system-ui";
|
| 993 |
+
ctx.fillText("10 m", BEV.pad, canvas.height - BEV.pad - 8);
|
| 994 |
+
|
| 995 |
+
const trail = (xs, ys, upTo, color, width) => {
|
| 996 |
+
ctx.strokeStyle = color; ctx.lineWidth = width; ctx.beginPath();
|
| 997 |
+
for (let i = 0; i <= upTo; i++) {
|
| 998 |
+
const X = T.px(xs[i]), Y = T.py(ys[i]);
|
| 999 |
+
i ? ctx.lineTo(X, Y) : ctx.moveTo(X, Y);
|
| 1000 |
+
}
|
| 1001 |
+
ctx.stroke();
|
| 1002 |
+
};
|
| 1003 |
+
// footprint at true scale (min 5 px so far-zoomed actors stay visible),
|
| 1004 |
+
// with a nose tick showing heading
|
| 1005 |
+
const footprint = (x, y, yawDeg, ext, color, hollow) => {
|
| 1006 |
+
const X = T.px(x), Y = T.py(y);
|
| 1007 |
+
const L = Math.max(5, ext[0] * T.s), W = Math.max(4, ext[1] * T.s);
|
| 1008 |
+
ctx.save(); ctx.translate(X, Y); ctx.rotate(-yawDeg * Math.PI / 180); // y-flip mirrors rotation
|
| 1009 |
+
ctx.fillStyle = color; ctx.strokeStyle = color; ctx.lineWidth = 3;
|
| 1010 |
+
ctx.beginPath(); ctx.rect(-L, -W, 2 * L, 2 * W);
|
| 1011 |
+
hollow ? ctx.stroke() : ctx.fill();
|
| 1012 |
+
ctx.strokeStyle = css("--surface-1"); ctx.lineWidth = 2;
|
| 1013 |
+
ctx.beginPath(); ctx.moveTo(L * 0.4, 0); ctx.lineTo(L, 0); ctx.stroke();
|
| 1014 |
+
ctx.restore();
|
| 1015 |
+
};
|
| 1016 |
+
const walker = (x, y, color) => {
|
| 1017 |
+
ctx.fillStyle = color; ctx.beginPath();
|
| 1018 |
+
ctx.arc(T.px(x), T.py(y), Math.max(6, 0.35 * T.s), 0, 7); ctx.fill();
|
| 1019 |
+
};
|
| 1020 |
+
const idx = a => {
|
| 1021 |
+
let k = a.frame.findIndex(f => f >= frame);
|
| 1022 |
+
if (k < 0) k = a.frame.length - 1;
|
| 1023 |
+
return k;
|
| 1024 |
+
};
|
| 1025 |
+
|
| 1026 |
+
// actors: background traffic faint and trail-less; scene actors with trails
|
| 1027 |
+
// without a scene graph, anything not tagged as traffic counts as scene
|
| 1028 |
+
const anyScene = sc.actors.some(o => o.scene);
|
| 1029 |
+
for (const a of sc.actors) {
|
| 1030 |
+
const k = idx(a);
|
| 1031 |
+
const isScene = a.scene || (!anyScene && !a.background);
|
| 1032 |
+
const color = a.type === "pedestrian" ? css("--series-5")
|
| 1033 |
+
: isScene ? css("--text-secondary") : css("--baseline");
|
| 1034 |
+
if (isScene) {
|
| 1035 |
+
ctx.globalAlpha = 0.45;
|
| 1036 |
+
trail(a.x, a.y, a.x.length - 1, color, 2);
|
| 1037 |
+
ctx.globalAlpha = 1;
|
| 1038 |
+
}
|
| 1039 |
+
if (a.type === "pedestrian") walker(a.x[k], a.y[k], color);
|
| 1040 |
+
else footprint(a.x[k], a.y[k], a.yaw[k], a.extent || nominalExtent(a), color, false);
|
| 1041 |
+
}
|
| 1042 |
+
|
| 1043 |
+
// the policy's plan: the selected replan, else the latest one at this frame
|
| 1044 |
+
let rp = S.selectedReplan;
|
| 1045 |
+
if (!rp) for (const r of sc.replans) if (r.t0 <= frame && r.waypoints_world) rp = r;
|
| 1046 |
+
if (rp && rp.waypoints_world) {
|
| 1047 |
+
ctx.globalAlpha = S.selectedReplan ? 1 : 0.85;
|
| 1048 |
+
ctx.strokeStyle = css("--series-2"); ctx.lineWidth = 3;
|
| 1049 |
+
ctx.setLineDash([8, 6]); ctx.beginPath();
|
| 1050 |
+
rp.waypoints_world.forEach(([x, y], i) => {
|
| 1051 |
+
const X = T.px(x), Y = T.py(y);
|
| 1052 |
+
i ? ctx.lineTo(X, Y) : ctx.moveTo(X, Y);
|
| 1053 |
+
});
|
| 1054 |
+
ctx.stroke(); ctx.setLineDash([]);
|
| 1055 |
+
ctx.fillStyle = css("--series-2");
|
| 1056 |
+
for (const [x, y] of rp.waypoints_world) {
|
| 1057 |
+
ctx.beginPath(); ctx.arc(T.px(x), T.py(y), 4, 0, 7); ctx.fill();
|
| 1058 |
+
}
|
| 1059 |
+
ctx.globalAlpha = 1;
|
| 1060 |
+
}
|
| 1061 |
+
|
| 1062 |
+
// the other arm's ego, hollow, so the two runs of one scene overlay
|
| 1063 |
+
const sib = S.compare ? sibling(sc) : null;
|
| 1064 |
+
if (sib) {
|
| 1065 |
+
const se = sib.ego, j = Math.min(frame, se.x.length - 1);
|
| 1066 |
+
ctx.setLineDash([10, 8]); ctx.globalAlpha = 0.8;
|
| 1067 |
+
trail(se.x, se.y, se.x.length - 1, css("--series-3"), 3);
|
| 1068 |
+
ctx.setLineDash([]); ctx.globalAlpha = 1;
|
| 1069 |
+
footprint(se.x[j], se.y[j], se.yaw[j], se.extent || [2.4, 1.05], css("--series-3"), true);
|
| 1070 |
+
}
|
| 1071 |
+
|
| 1072 |
+
// ego: trail up to current frame + full faint remainder
|
| 1073 |
+
ctx.globalAlpha = 0.3;
|
| 1074 |
+
trail(ego.x, ego.y, ego.x.length - 1, css("--series-1"), 2);
|
| 1075 |
+
ctx.globalAlpha = 1;
|
| 1076 |
+
const k = Math.min(frame, ego.x.length - 1);
|
| 1077 |
+
trail(ego.x, ego.y, k, css("--series-1"), 4);
|
| 1078 |
+
footprint(ego.x[k], ego.y[k], ego.yaw[k], ego.extent || [2.4, 1.05], css("--series-1"), false);
|
| 1079 |
+
|
| 1080 |
+
BEV.lastFrame = frame;
|
| 1081 |
+
}
|
| 1082 |
+
|
| 1083 |
+
$("bev-canvas").addEventListener("mousemove", ev => {
|
| 1084 |
+
const canvas = $("bev-canvas");
|
| 1085 |
+
const rect = canvas.getBoundingClientRect();
|
| 1086 |
+
const mx = (ev.clientX - rect.left) * canvas.width / rect.width;
|
| 1087 |
+
const my = (ev.clientY - rect.top) * canvas.height / rect.height;
|
| 1088 |
+
const T = bevTransform(canvas);
|
| 1089 |
+
const frame = BEV.lastFrame || 0;
|
| 1090 |
+
const tip = $("tooltip");
|
| 1091 |
+
let best = null, bestD = 26 * 26;
|
| 1092 |
+
const consider = (name, sub, x, y) => {
|
| 1093 |
+
const d = (T.px(x) - mx) ** 2 + (T.py(y) - my) ** 2;
|
| 1094 |
+
if (d < bestD) { bestD = d; best = { name, sub, x, y }; }
|
| 1095 |
+
};
|
| 1096 |
+
const sc = S.scen;
|
| 1097 |
+
const k = Math.min(frame, sc.ego.x.length - 1);
|
| 1098 |
+
consider("ego", `${fmt(sc.ego.speed[k])} m/s`, sc.ego.x[k], sc.ego.y[k]);
|
| 1099 |
+
for (const a of sc.actors) {
|
| 1100 |
+
let j = a.frame.findIndex(f => f >= frame);
|
| 1101 |
+
if (j < 0) j = a.frame.length - 1;
|
| 1102 |
+
const role = a.scene ? "scene" : a.background ? "traffic" : "";
|
| 1103 |
+
consider(a.type === "vehicle" ? a.label : "pedestrian", `id ${a.id}${role ? " · " + role : ""}`, a.x[j], a.y[j]);
|
| 1104 |
+
}
|
| 1105 |
+
for (const sg of (sc.map && sc.map.signs) || [])
|
| 1106 |
+
consider(`plate ${sg.id}`, Object.entries(sg.seen || {}).map(([v, n]) => `${v}: ${n} frames`).join(", ") || "never in view", sg.x, sg.y);
|
| 1107 |
+
if (best) {
|
| 1108 |
+
tip.innerHTML = `<div class="t-title">${best.name}</div><div class="t-row"><span>${best.sub}</span></div>` +
|
| 1109 |
+
`<div class="t-row"><span class="num">x ${fmt(best.x)} · y ${fmt(best.y)}</span></div>`;
|
| 1110 |
+
tip.style.display = "block";
|
| 1111 |
+
tip.style.left = Math.min(window.innerWidth - 190, ev.clientX + 14) + "px";
|
| 1112 |
+
tip.style.top = (ev.clientY + 14) + "px";
|
| 1113 |
+
} else tip.style.display = "none";
|
| 1114 |
+
});
|
| 1115 |
+
$("bev-canvas").addEventListener("mouseleave", () => { $("tooltip").style.display = "none"; });
|
| 1116 |
+
|
| 1117 |
+
/* ============================== replans ============================== */
|
| 1118 |
+
function renderReplans() {
|
| 1119 |
+
const box = $("replan-cards");
|
| 1120 |
+
box.innerHTML = "";
|
| 1121 |
+
$("cosmos-grid").innerHTML = "";
|
| 1122 |
+
$("cosmos-toolbar").style.display = "none";
|
| 1123 |
+
const cosmosOn = (S.scen.config || {}).cosmos_enabled !== false;
|
| 1124 |
+
for (const r of S.scen.replans) {
|
| 1125 |
+
const stats = [
|
| 1126 |
+
`sim t = ${fmt(r.sim_time_s)} s`,
|
| 1127 |
+
...(cosmosOn ? [`Cosmos ${fmt(r.cosmos_s, 0)} s`] : []),
|
| 1128 |
+
`policy ${fmt(r.policy_s)} s`,
|
| 1129 |
+
`v = ${fmt(r.speed_mps)} m/s`,
|
| 1130 |
+
];
|
| 1131 |
+
// LEAD has no chain-of-thought; its own outputs say what it decided
|
| 1132 |
+
const said = [].concat(r.cot || []).join(" ") || (r.target_speed != null
|
| 1133 |
+
? `target ${fmt(r.target_speed, 2)} m/s${r.brake_flag ? " · brake flag set" : ""}` +
|
| 1134 |
+
(r.steer_modality ? ` · steering from ${r.steer_modality}` : "")
|
| 1135 |
+
: "(no chain-of-thought)");
|
| 1136 |
+
const card = el("div", { class: "replan-card", onclick: () => selectReplan(r, card) },
|
| 1137 |
+
el("div", { class: "rc-head" },
|
| 1138 |
+
el("b", { class: "num" }, `replan @ frame ${r.t0}`),
|
| 1139 |
+
...stats.map(t => el("span", { class: "rc-stat num" }, t)),
|
| 1140 |
+
),
|
| 1141 |
+
el("div", { class: "rc-cot" }, said),
|
| 1142 |
+
);
|
| 1143 |
+
box.append(card);
|
| 1144 |
+
}
|
| 1145 |
+
}
|
| 1146 |
+
|
| 1147 |
+
function selectReplan(r, card) {
|
| 1148 |
+
const was = S.selectedReplan === r;
|
| 1149 |
+
S.selectedReplan = was ? null : r;
|
| 1150 |
+
document.querySelectorAll(".replan-card").forEach(c => c.classList.remove("active"));
|
| 1151 |
+
const grid = $("cosmos-grid");
|
| 1152 |
+
grid.innerHTML = "";
|
| 1153 |
+
$("cosmos-toolbar").style.display = "none";
|
| 1154 |
+
if (!was) {
|
| 1155 |
+
card.classList.add("active");
|
| 1156 |
+
for (const [view, vids] of Object.entries(r.views || {})) {
|
| 1157 |
+
for (const [key, path] of Object.entries(vids)) {
|
| 1158 |
+
const v = el("video", { src: media(path), preload: "metadata", muted: "", loop: "", playsinline: "", controls: "" });
|
| 1159 |
+
v.currentTime = 0.001; // decode + paint the first frame
|
| 1160 |
+
grid.append(el("div", { class: "cosmos-cell" }, v,
|
| 1161 |
+
el("span", { class: "cam-label" }, `${view} · ${COSMOS_LABELS[key] || key}`)));
|
| 1162 |
+
}
|
| 1163 |
+
}
|
| 1164 |
+
if (grid.children.length) $("cosmos-toolbar").style.display = "flex";
|
| 1165 |
+
// jump the main playback to the replan moment
|
| 1166 |
+
const t = r.t0 / S.scen.fps;
|
| 1167 |
+
seekAll(t); updateAtTime(t);
|
| 1168 |
+
}
|
| 1169 |
+
drawBEV(BEV.lastFrame || 0);
|
| 1170 |
+
}
|
| 1171 |
+
|
| 1172 |
+
$("cosmos-play").addEventListener("click", () => {
|
| 1173 |
+
const vids = document.querySelectorAll("#cosmos-grid video");
|
| 1174 |
+
const anyPaused = [...vids].some(v => v.paused);
|
| 1175 |
+
vids.forEach(v => anyPaused ? v.play().catch(() => {}) : v.pause());
|
| 1176 |
+
$("cosmos-play").textContent = anyPaused ? "❚❚ pause all" : "▶ play all";
|
| 1177 |
+
});
|
| 1178 |
+
$("cosmos-restart").addEventListener("click", () => {
|
| 1179 |
+
document.querySelectorAll("#cosmos-grid video").forEach(v => { v.currentTime = 0; v.play().catch(() => {}); });
|
| 1180 |
+
$("cosmos-play").textContent = "❚❚ pause all";
|
| 1181 |
+
});
|
| 1182 |
+
</script>
|
| 1183 |
+
</body>
|
| 1184 |
+
</html>
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000019/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b3c0a6eaad8326bc4fd79d6d43674464e87d3292538862ff37902ef02a4f9f1
|
| 3 |
+
size 519537
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000019/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fff7b0774d37a85ccc10d156f28f4f54a0acbbefce76322afe636ed31ad86f3e
|
| 3 |
+
size 1980108
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000039/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b927a52ae16200a9550454909df7d270d99d283c0c7529c85747354974749ed5
|
| 3 |
+
size 605939
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000039/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9844766a546e8d75043178c4cc118a3e769e64c54c5abf68bf4c4daa39cbe3ff
|
| 3 |
+
size 968654
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000059/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9b25cf1bdb148e7cc46f8a972b51dca03da58e96c89fdb04571b408f7c284267
|
| 3 |
+
size 442767
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000059/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e684300ccce9ac5db193ca6016d1701479b26c78ddda3d302b2d463cc07fde7e
|
| 3 |
+
size 698019
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000079/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:941484706a8dfad9675ab1773e8d541c7c2a1705b5de4eaff800f64b672d32b2
|
| 3 |
+
size 661545
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000079/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10c221a75dfd63f61bbd33ac5741c642cb3abc96f5558de31b94809affa34d8f
|
| 3 |
+
size 1517871
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000099/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:436c6830ff5ce7e8a2431bd7419dfc6c550bd5b387cf521b3d360a98d55c1fc7
|
| 3 |
+
size 285618
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000099/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46dd551a40e7f423a80d694a08462480f35174a78375b729d1ead0ae8da5d61b
|
| 3 |
+
size 459463
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000119/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04a3fa8b3b39e7dd48d678333466927a8cd6336ac7b359fc17494176dd780d7b
|
| 3 |
+
size 203764
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000119/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc75d4948d1c1dca3b8c2d4e3e83b9229aa3e66763cadd6fd4abd968649ae46d
|
| 3 |
+
size 337314
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000139/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:088ca1792978871fdc45d98fc393077d2acdd49035843c67c69f953379aa6804
|
| 3 |
+
size 239454
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000139/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10cc7be82291add5f827bcee96939230fb12f5bc3b96e56cf3b9e2783bd5c8d0
|
| 3 |
+
size 450734
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000159/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f522d860a3f37b9af8c588670d4248812985df615c8fc4a88b05224d421467f3
|
| 3 |
+
size 527685
|
dualworld/anat_s0_alpamayo/redlight/dualworld/cosmos/replan_000159/ft_front_wide/protected_exact/vision.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ee9cc45d48143ce4b5e02f3f5f1bbee095074db85482bbd9d591250b3f0ff6a4
|
| 3 |
+
size 1451180
|
dualworld/anat_s0_alpamayo/redlight/videos/cosmos_ft_front_wide_stitched_restored.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13907d1ccb9af738fc4d81ea2b49dde798ceb06108616fbac9ac6aed651bfed4
|
| 3 |
+
size 6052835
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_front.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b24ee392e3f024dd1aa06f44075164c428f7d5691b32733b3f07c5ca3b8596b
|
| 3 |
+
size 5581603
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_front_tele.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d205105abeb0eb52c737d67b44f874a90dea99e435a33aeb8b283d16e861b981
|
| 3 |
+
size 8164205
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_cross_left.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:912d89dfab6e3245a22a27ce181ed1ef8ca507f4fb1694b6f6e54d130170eb5b
|
| 3 |
+
size 17571243
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_cross_right.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7e50b15d09c38647a7aa8215d6318f3e71ab54df5a71f81a5c9339035d7ed9d
|
| 3 |
+
size 20309216
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_front_tele.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b6c03e24fe01cc82696e1694af55ff97358706157943638fb61186222d40e19
|
| 3 |
+
size 416434
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_hv_front_wide.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f424eaf46b296070583842dc1ce2f9c75d784a0731644babf690f4bea7d596de
|
| 3 |
+
size 19418892
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_left.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19071ba42f7dc5a4c220058991068d2de9519a3d3a86787bd8306f07eaf15652
|
| 3 |
+
size 5034455
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_f0.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc6c06612d4824114c1ba08cad87a06f413a0fd73d599a4b62fcc2367c7320a0
|
| 3 |
+
size 5744834
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_l0.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efc7d5b9ef5f06c5d6f90a4e6cbbeeaf8c26d1dbb133bf258a8d5dd04de53441
|
| 3 |
+
size 7527043
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_l1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8920ac905f39c3507756655b95168cc50d15d9dc66dd45b6ce5973353c2e88eb
|
| 3 |
+
size 7303694
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_r0.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15264f4e37ebd1c425d9073beebbb2e85266174f7cfa0c0970b160008b0df1da
|
| 3 |
+
size 9490045
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_nuplan_r1.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6dfa6a5bdfde41a081fe4349d02bd1fe45e8c41f135bd85a7ecd2f5e62090a3
|
| 3 |
+
size 12262430
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_rear.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45915a18b238c829cd0ecb6464b4747827608ee76b38e25e6a4c79df719a0b0b
|
| 3 |
+
size 6106069
|
dualworld/anat_s0_alpamayo/redlight/videos/rgb_right.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5db3e46ba2e87ce6796edb8993bb04674d96edcf770921a2b65f19d2ddfcf6d6
|
| 3 |
+
size 6862396
|
dualworld/anat_s0_alpamayo/redlight/videos/web/depth_front.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb72e81a073a1e0b6191fe9c3ca6eb415b24b1a1191f719100f298897fc6eee5
|
| 3 |
+
size 367934
|
dualworld/anat_s0_alpamayo/redlight/videos/web/depth_hv_front_wide.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:92387024b26548b57430d50708508f8f0be624dcf4fc9dc691e3aee3fd97a62c
|
| 3 |
+
size 385722
|
dualworld/anat_s0_alpamayo/redlight/videos/web/depth_left.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd80cdfcc72a450c6989745e932d7a67594dce35decdbac60171764bcf8e7289
|
| 3 |
+
size 185724
|
dualworld/anat_s0_alpamayo/redlight/videos/web/depth_nuplan_f0.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a993c3f51958bdb4af8163ce6e57e8d6012ea8170cc5f56272c7b882063661e5
|
| 3 |
+
size 316632
|
dualworld/anat_s0_alpamayo/redlight/videos/web/depth_rear.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:807f8581b50ec6ca6d7ece0d33b042c74ae3e883adb797fc4035254c32a3e4f1
|
| 3 |
+
size 119313
|
dualworld/anat_s0_alpamayo/redlight/videos/web/depth_right.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9d9e688822450202f7927b41d9d7f6e868aa46a5f1fce4c699002a71879d703
|
| 3 |
+
size 515156
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_front.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:385face37c22c00448111e3b0ed9aa426ab1d03b55429f4ac23a3a983f6d6b82
|
| 3 |
+
size 498849
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_front_tele.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79a022ac706edaf8b2e9c8991a0c44136a86014b2d07ca2f0ebd596bbc68b91d
|
| 3 |
+
size 651677
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_cross_left.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28de3b6cf0ad5fc4f54b40d9252cb458f2b377d2c5e2e433a0a90987578829f3
|
| 3 |
+
size 248255
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_cross_right.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62d2b521e4115fb182de12b6cd86f6a8b6d71634bc6e171f13f0f0fc042840c0
|
| 3 |
+
size 331752
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_front_tele.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e3272f7eaa0e46722d1c2da54144383ed758c2f46e84a707ecc614a79309cb1c
|
| 3 |
+
size 744207
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_hv_front_wide.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:151be238b3ec08b9f4c1da302e205e5cbc1f3f4f3281b05424c2c32377f4671f
|
| 3 |
+
size 413354
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_left.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3970205b0809a95ebbd4c33730dfd17b3cac05894d3eb08174385c0a4a5c1524
|
| 3 |
+
size 272985
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_nuplan_f0.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d06061d1592213dc264c65bb1a2e313b4c690331010f715b8d9a920a552dfe19
|
| 3 |
+
size 535900
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_rear.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0040dc89ddc92c523ef6e799b4f8150eb44fe7cf7261b280ab26aff78fd3b22f
|
| 3 |
+
size 487934
|
dualworld/anat_s0_alpamayo/redlight/videos/web/semseg_right.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7ddabe2be3623963cf8d64c0c09d64f3d47c2b35747ca3b02132f2119e046e9
|
| 3 |
+
size 474887
|
dualworld/anat_s0_alpamayo/suite.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "anat_s0_alpamayo",
|
| 3 |
+
"scenarios": [
|
| 4 |
+
{
|
| 5 |
+
"name": "redlight",
|
| 6 |
+
"group": "rule_red_light_or",
|
| 7 |
+
"arm": "USA_Oregon",
|
| 8 |
+
"arm_label": "A",
|
| 9 |
+
"policy": "alpamayo",
|
| 10 |
+
"evaluation_status": "Execution validated; rule scoring incomplete",
|
| 11 |
+
"town": "Town05",
|
| 12 |
+
"length_s": 16.0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"name": "town10turn",
|
| 16 |
+
"group": "01_curb_turn_on_red_signalized_intersection_default",
|
| 17 |
+
"arm": "US",
|
| 18 |
+
"arm_label": null,
|
| 19 |
+
"policy": "alpamayo",
|
| 20 |
+
"evaluation_status": "Execution and rule scoring validated",
|
| 21 |
+
"town": "Town10HD",
|
| 22 |
+
"length_s": 12.0
|
| 23 |
+
}
|
| 24 |
+
]
|
| 25 |
+
}
|
dualworld/anat_s0_alpamayo/town10turn/dualworld/cosmos/replan_000019/ft_front_wide/input_rgb.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be15723a33ef4a94253d87a577b8c52476fa27c06cae80146ea184e2b41a9fe4
|
| 3 |
+
size 517914
|