Blog/content/runaway_planning/results/_index.md

59 lines
1.5 KiB
Markdown
Raw Normal View History

2023-02-09 17:23:41 +00:00
---
title: Runaway Planning Results
---
{{< dummy >}}
<input type="number" id="resultId" min="0" max="99" default="0">
<input type="submit" id="showResultButton">
<p>If the video does not load for a given algorithm, that means it failed to
compute a solution (within the 10s timeout).</p>
<div>
<p>Raw CBS</p>
<video id="cbs" controls width="560" class="videoTag">
<source type="video/mp4" />
</video>
</div>
<div>
<p>Scheduler + CBS</p>
<video id="scheduling_cbs" controls width="560" class="videoTag">
<source type="video/mp4" />
</video>
</div>
<div>
<p>Subproblems + Scheduler + CBS</p>
<video id="subproblem_scheduling_cbs" controls width="560" class="videoTag">
<source type="video/mp4" />
</video>
</div>
<script charset="utf-8">
var idField = document.getElementById("resultId");
var button = document.getElementById("showResultButton");
button.addEventListener("click", () => show_all_videos(idField.value));
function show_one_video(videoDiv, n) {
const videoLoc = "./" + videoDiv.id + "/from_generated_" + n + ".mp4";
videoDiv.children[0].src = videoLoc;
videoDiv.load();
videoDiv.play();
}
function show_all_videos(n) {
const videoDivs = document.getElementsByClassName("videoTag")
for (var i = 0; i < videoDivs.length; i++) {
show_one_video(videoDivs.item(i), n);
}
}
if (n != null) {
show_all_videos(n);
}
</script>
{{< /dummy >}}