Divyanshudiv commited on
Commit
e2d1c49
·
verified ·
1 Parent(s): ad5265e

dualworld viewer: axle_s2_autovla (6 runs)

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