Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
84 lines
3.7 KiB
HTML
84 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
|
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
|
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
|
|
<script>
|
|
$(document).bind('pageinit', function () {
|
|
function controlHandlerMaker(name) {
|
|
return function (event, ui) {
|
|
var val = $('#' + name).val();
|
|
var checked = $('#' + name).is(":checked");
|
|
EventBridge.emitWebEvent({name: name, val: val, checked: checked});
|
|
};
|
|
}
|
|
var controls = [
|
|
"current-foot-position-cost",
|
|
"current-foot-rotation-cost",
|
|
"current-foot-velocity-cost",
|
|
"current-foot-angular-velocity-cost",
|
|
"future-hips-velocity-cost",
|
|
"future-hips-angular-velocity-cost",
|
|
"future-cost",
|
|
"same-location-window"
|
|
];
|
|
controls.forEach(function (name) {
|
|
$('#' + name).bind('change', controlHandlerMaker(name));
|
|
});
|
|
EventBridge.scriptEventReceived.connect(function (msg) {
|
|
var array = JSON.parse(msg);
|
|
array.forEach(function (obj) {
|
|
var widget = $('#' + obj.name);
|
|
if (widget) {
|
|
if (widget.attr('type') === "checkbox") {
|
|
$('#' + obj.name).prop('checked', obj.checked).checkboxradio('refresh');
|
|
} else if (widget.attr('type') === "number") {
|
|
$('#' + obj.name).val(obj.val).slider('refresh');
|
|
} else {
|
|
$('#' + obj.name).val(obj.val).slider('refresh');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
EventBridge.emitWebEvent({name: 'init-complete'});
|
|
});
|
|
</script>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<body>
|
|
<div style="margin:10px">
|
|
|
|
<h1>Current Foot Matching</h1>
|
|
|
|
<label for="current-foot-position-cost">current-foot-position-cost</label>
|
|
<input type="range" name="current-foot-position-cost" id="current-foot-position-cost" value="1" min="0" max="1" step="0.01">
|
|
|
|
<label for="current-foot-rotation-cost">current-foot-rotation-cost</label>
|
|
<input type="range" name="current-foot-rotation-cost" id="current-foot-rotation-cost" value="1" min="0" max="1" step="0.01">
|
|
|
|
<label for="current-foot-velocity-cost">current-foot-velocity-cost</label>
|
|
<input type="range" name="current-foot-velocity-cost" id="current-foot-velocity-cost" value="1" min="0" max="1" step="0.01">
|
|
|
|
<label for="current-foot-angular-velocity-cost">current-foot-angular-velocity-cost</label>
|
|
<input type="range" name="current-foot-angular-velocity-cost" id="current-foot-angular-velocity-cost" value="1" min="0" max="1" step="0.01">
|
|
|
|
<h1>Future Hip Matching</h1>
|
|
|
|
<label for="future-hips-velocity-cost">future-hips-velocity-cost</label>
|
|
<input type="range" name="future-hips-velocity-cost" id="future-hips-velocity-cost" value="1" min="0" max="1" step="0.01">
|
|
|
|
<label for="future-hips-angular-velocity-cost">future-hips-angular-velocity-cost</label>
|
|
<input type="range" name="future-hips-angular-velocity-cost" id="future-hips-angular-velocity-cost" value="1" min="0" max="1" step="0.01">
|
|
|
|
<h1>Misc</h1>
|
|
|
|
<label for="future-cost">future-cost</label>
|
|
<input type="range" name="future-cost" id="future-cost" value="1" min="0" max="5" step="0.01">
|
|
|
|
<label for="same-location-window">same-location-window (sec)</label>
|
|
<input type="range" name="same-location-window" id="same-location-window" value="1" min="0" max="1" step="0.01">
|
|
|
|
</div>
|
|
</body>
|
|
</head>
|
|
</html>
|