Added standby mode.

This commit is contained in:
David Walsh
2019-03-24 23:52:04 -04:00
parent ef335863c9
commit 39ebd35247
2 changed files with 10 additions and 3 deletions

View File

@@ -24,13 +24,17 @@ var modeStatus = new ROSLIB.Topic({
});
modeStatus.subscribe(function(message) {
document.getElementById("stoppedModeButton").className = "btn btn-secondary"
document.getElementById("standbyModeButton").className = "btn btn-primary"
document.getElementById("teachingModeButton").className = "btn btn-primary"
document.getElementById("executionModeButton").className = "btn btn-primary"
if (message.data === "standby") {
document.getElementById("standbyModeButton").className = "btn btn-success"
if (message.data === "stopped") {
document.getElementById("stoppedModeButton").className = "btn btn-warning"
} else if (message.data === "standby")
{
document.getElementById("standbyModeButton").className = "btn btn-primary btn-success"
} else if (message.data === "teach")
{
document.getElementById("teachingModeButton").className = "btn btn-primary btn-success"