]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - www/assets/javascripts/application.js
www: properly set image hostname
[ros_wild_thumper.git] / www / assets / javascripts / application.js
index 7a87c12532d0fbb8bafc74d1cfa05702f5d29a0c..1a61324e4492bf7744c2e88b3112582eafc6dabf 100644 (file)
@@ -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', {