From 1f5ddc99fe8b4757ad6b061dcf2f49441279fb57 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Mon, 25 Feb 2019 16:54:05 -0500 Subject: [PATCH] Initial coordinator commit. --- coordinator/coordinator.html | 72 +++++++++++++++++++++++++++++++++++ coordinator/js/ros_scripts.js | 38 ++++++++++++++++++ coordinator/js/update_guis.js | 0 index.html | 54 ++++++++++---------------- 4 files changed, 131 insertions(+), 33 deletions(-) create mode 100644 coordinator/coordinator.html create mode 100644 coordinator/js/ros_scripts.js create mode 100644 coordinator/js/update_guis.js diff --git a/coordinator/coordinator.html b/coordinator/coordinator.html new file mode 100644 index 0000000..ac90eea --- /dev/null +++ b/coordinator/coordinator.html @@ -0,0 +1,72 @@ + + +
+
+ Select Operation Mode +
+
+ + +
+
+
+
+ Teaching Mode Operations +
+
+ + +
+
+ +
+
+ Execution Mode Operations +
+
+ + + +
+ +
+ +
+
+ Execution Recording Operations +
+
+ + +
+
\ No newline at end of file diff --git a/coordinator/js/ros_scripts.js b/coordinator/js/ros_scripts.js new file mode 100644 index 0000000..a09b009 --- /dev/null +++ b/coordinator/js/ros_scripts.js @@ -0,0 +1,38 @@ +/////////////////////////////////////////////////////////////////////////////////// +// Publishers +/////////////////////////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////// +// Topics +//////////////////////////////////////////////////////////////// + + +//////////////////////////////////////////////////////////////// +// Subscribers +//////////////////////////////////////////////////////////////// + + + +//////////////////////////////////////////////////////////////// +// Services +//////////////////////////////////////////////////////////////// + + +function triggerService(serviceName) +{ + var service = new ROSLIB.Service({ + ros : ros, + name : serviceName, + serviceType : 'std_srvs/Trigger' + }); + + var request = new ROSLIB.ServiceRequest({}); + + service.callService(request, function(result) { + console.log('Result for service call on ' + + serviceName + + ': ' + + result.sum); + }); +} \ No newline at end of file diff --git a/coordinator/js/update_guis.js b/coordinator/js/update_guis.js new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/index.html index 6dfd9a3..2d77342 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@ Tutorials can be found here: http://www.w3schools.com/bootstrap/default.asp @@ -40,6 +40,14 @@ Tutorials can be found here: http://www.w3schools.com/bootstrap/default.asp + + + +
@@ -58,7 +66,11 @@ Tutorials can be found here: http://www.w3schools.com/bootstrap/default.asp Data Display - +
  • + + Coordinator + +
  • @@ -67,46 +79,22 @@ Tutorials can be found here: http://www.w3schools.com/bootstrap/default.asp -
    +
    - - - -
    - -
    - ROS Bag -
    -
    -
    -
    - Bagfile name must not start with "/" -
    - - - - -
    -
    -
    -
    - -
    - +
    +
    + +
    +
    - -
    +
    Predefined Masters Connections