]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - www/assets/javascripts/application.js
asr_vosk: Allow to handle keyword and command in one sentence
[ros_wild_thumper.git] / www / assets / javascripts / application.js
index 2fc417603ea6f876252041e5240209263a38e466..1a61324e4492bf7744c2e88b3112582eafc6dabf 100644 (file)
@@ -4,7 +4,7 @@ function init() {
        var isDragging = false;
 
        function connect() {
-               ros.connect('ws://wildthumper:9090');
+               ros.connect('ws://'+robothostname+':9090');
        }
 
        ros.on('connection', function() {
@@ -240,6 +240,7 @@ function init() {
        });
 
        $("input[type='number']").spinner();
+       $("#usb_cam").attr("src", "http://"+robothostname+":8080/stream?topic=/camera/color/image_raw");
 }
 
 Vue.component('input-value', {