diff --git a/coordinator/coordinator.html b/coordinator/coordinator.html index cacee22..cffdcda 100644 --- a/coordinator/coordinator.html +++ b/coordinator/coordinator.html @@ -10,8 +10,11 @@ - + diff --git a/coordinator/js/ros_scripts.js b/coordinator/js/ros_scripts.js index 1b1d7eb..1233562 100644 --- a/coordinator/js/ros_scripts.js +++ b/coordinator/js/ros_scripts.js @@ -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"