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 --> +