var isDragging = false;
function connect() {
- ros.connect('ws://wildthumper:9090');
+ ros.connect('ws://'+robothostname+':9090');
}
ros.on('connection', function() {
ros.on('close', function() {
information.alerts.push({message: "Connection to websocket server closed.", info: true});
- setTimeout(function() {
- connect();
- }, 2000);
+ //setTimeout(function() {
+ // connect();
+ //}, 2000);
});
//tfClient.subscribe('base_link', function(tf) {
});
$("input[type='number']").spinner();
+ $("#usb_cam").attr("src", "http://"+robothostname+":8080/stream?topic=/camera/color/image_raw");
}
Vue.component('input-value', {