diff --git a/coordinator/coordinator.html b/coordinator/coordinator.html index 2024196..d3ef36b 100644 --- a/coordinator/coordinator.html +++ b/coordinator/coordinator.html @@ -164,26 +164,25 @@ None -
- - - - -
-
+
+ + + + +
Bagfile name must not start with "/"
-
+ + +
+ +
+
+ + + + + + + + + + + +
+
+ +
diff --git a/coordinator/js/ros_scripts.js b/coordinator/js/ros_scripts.js index d4b7fa5..8af295c 100644 --- a/coordinator/js/ros_scripts.js +++ b/coordinator/js/ros_scripts.js @@ -302,3 +302,10 @@ function triggerMessageService(serviceName, textInput) }); } + +// function executeBagForm() +function updateSelectedBagFile(newFile) +{ + // var newFile = document.getElementById(newFileInput).innerHTML + document.getElementById("bagNameText").value = newFile +} diff --git a/coordinator/js/update_guis.js b/coordinator/js/update_guis.js index e69de29..af46d5f 100644 --- a/coordinator/js/update_guis.js +++ b/coordinator/js/update_guis.js @@ -0,0 +1,47 @@ +var bagList = Array(); + +function getBagList() +{ + var service = new ROSLIB.Service({ + ros : ros, + name : '/aescape/bags/getBagList', + serviceType : 'demobot/TriggerList' + }); + + var request = new ROSLIB.ServiceRequest({}); + + service.callService(request, function(result) { + // console.log('Result for service call on ' + // + serviceName + // + ': ' + // + result.message); + + bagList = result.message; + }); +} + + +function updateRecordingsList() +{ + getBagList(); + + if(bagList != null){ + var innerHTML = ""; + for (var i = 0; i < bagList.length; i++ ) + { + // innerHTML = innerHTML.concat(bagList[i]); + // innerHTML = innerHTML.concat("
"); + + + innerHTML += ""; + // innerHTML += ""; + } + document.getElementById("bagList").innerHTML = innerHTML; + } + document.getElementById("bagNameText").value = message.data +}; + + +window.setInterval(function(){ + updateRecordingsList(); +}, 1000); \ No newline at end of file