function init() {
var ros = new ROSLIB.Ros();
- ros.connect('ws://wildthumper:9090');
+ connect();
var isDragging = false;
+ function connect() {
+ ros.connect('ws://wildthumper:9090');
+ }
+
ros.on('connection', function() {
information.alerts.push({message: "Connected to websocket server.", success: true});
});
ros.on('close', function() {
information.alerts.push({message: "Connection to websocket server closed.", info: true});
+ setTimeout(function() {
+ connect();
+ }, 2000);
});
//tfClient.subscribe('base_link', function(tf) {
}
})
+ $(".imagelink").on('click',function(){
+ // reload
+ $("img").attr("src", $("img").attr("src"))
+ });
}
Vue.component('input-value', {