diff --git a/coordinator/coordinator.html b/coordinator/coordinator.html index 7a482b9..40eae11 100644 --- a/coordinator/coordinator.html +++ b/coordinator/coordinator.html @@ -10,6 +10,9 @@ + @@ -89,6 +92,9 @@ Bag manager not connected! + @@ -117,6 +123,9 @@ None
+ diff --git a/coordinator/js/ros_scripts.js b/coordinator/js/ros_scripts.js index f761d76..8a8a335 100644 --- a/coordinator/js/ros_scripts.js +++ b/coordinator/js/ros_scripts.js @@ -27,22 +27,37 @@ 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("readyModeButton").className = "btn btn-primary" document.getElementById("teachingModeButton").className = "btn btn-primary" document.getElementById("executionModeButton").className = "btn btn-primary" + + document.getElementById("recordingStartButton").disabled = true + document.getElementById("executionStartButton").disabled = true - if (message.data == "stopped") { + + if (message.data == "stopped") + { document.getElementById("stoppedModeButton").className = "btn btn-warning" - } else if (message.data == "standby") + } + else if (message.data == "standby") { document.getElementById("standbyModeButton").className = "btn btn-primary btn-success" - } else if (message.data == "teach") + } + else if (message.data == "teach") { document.getElementById("teachingModeButton").className = "btn btn-primary btn-success" - } else if (message.data == "execution") + } + else if (message.data == "execution") { document.getElementById("executionModeButton").className = "btn btn-primary btn-success" } + else if (message.data == "ready") + { + document.getElementById("readyModeButton").className = "btn btn-primary btn-success" + document.getElementById("recordingStartButton").disabled = false + document.getElementById("executionStartButton").disabled = false + } });