From 5a822a592795a850540fb605be23cf98b2c16da1 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Tue, 16 Apr 2019 19:30:41 -0400 Subject: [PATCH] Added Rhea lab_ui config. --- backend/js/ros_scripts.js | 2 ++ index.html | 8 +++++++- launch/lab_ui_rhea.launch | 9 +++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100755 launch/lab_ui_rhea.launch diff --git a/backend/js/ros_scripts.js b/backend/js/ros_scripts.js index c41ec39..4132230 100644 --- a/backend/js/ros_scripts.js +++ b/backend/js/ros_scripts.js @@ -119,6 +119,7 @@ bagNotifier.subscribe(function(message) { // attept to connect to the ros master from the IP given orgrab it from the form ros.attemptConnection = function(ipAddress) { + ros.close(); if( typeof ipAddress !== "undefined") { ros.connectionName = ipAddress; @@ -129,6 +130,7 @@ ros.attemptConnection = function(ipAddress) } console.log('Connection = ' + ros.connectionName); ros.connect(ros.connectionName); + getMasterName(); } function toggleRecording() diff --git a/index.html b/index.html index d38d517..59b5f8b 100644 --- a/index.html +++ b/index.html @@ -162,7 +162,13 @@ Tutorials can be found here: http://www.w3schools.com/bootstrap/default.asp --> +