You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connection to websocket server closed. [map:72:15](http://127.0.0.1:8000/map)
GET
http://127.0.0.1:8000/home/dario/catkin_ws/src/ros3d.js
[HTTP/1.1 404 NOT FOUND 83ms]
The script from “https://robotwebtools.github.io/ros3djs/” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.
[map](http://127.0.0.1:8000/map)
GET
http://127.0.0.1:8000/js/ColladaLoader.js
[HTTP/1.1 404 NOT FOUND 22ms]
A resource is blocked by OpaqueResponseBlocking, please check browser console for details. [ros3djs](https://robotwebtools.github.io/ros3djs/)
Source map error: NetworkError when attempting to fetch resource.
Resource URL: https://unpkg.com/eventemitter3@latest/dist/eventemitter3.umd.min.js
Source Map URL: eventemitter3.umd.min.js.map
GET
http://127.0.0.1:8000/home/dario/catkin_ws/src/ros3d.js
[HTTP/1.1 404 NOT FOUND 19ms]
Loading failed for the <script> with source “http://127.0.0.1:8000/home/dario/catkin_ws/src/ros3d.js”. [map:50:50](http://127.0.0.1:8000/map)
GET
http://127.0.0.1:8000/js/ColladaLoader.js
[HTTP/1.1 404 NOT FOUND 12ms]
Loading failed for the <script> with source “http://127.0.0.1:8000/js/ColladaLoader.js”. [map:51:35](http://127.0.0.1:8000/map)
THREE.WebGLRenderer 89 2 [ros3d.min.js:1:291584](https://cdn.jsdelivr.net/npm/[email protected]/build/ros3d.min.js)
Connected to websocket server. [map:64:15](http://127.0.0.1:8000/map)
THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead. 10 [ros3d.min.js:5:28543](https://cdn.jsdelivr.net/npm/[email protected]/build/ros3d.min.js)
error { target: XMLHttpRequest, isTrusted: true, lengthComputable: false, loaded: 0, total: 0, srcElement: XMLHttpRequest, currentTarget: XMLHttpRequest, eventPhase: 2, bubbles: false, cancelable: false, … }
And my html file is:
% extends 'base.html' %}
{% block header %}
<h2>{% block title %}Map{% endblock title %}</h2>
{% endblock header %}
{% block content %}
<bodyonload="init()"
<divid="map"></div><divid="urdf"></div></body><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/lib/eventemitter2.min.js"></script><scriptsrc="https://cdn.jsdelivr.net/npm/roslib@1/build/roslib.min.js"></script><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/build/ros3d.min.js"></script><scriptsrc="https://robotwebtools.github.io/ros3djs/"></script><scriptsrc="https://unpkg.com/eventemitter3@latest/dist/eventemitter3.umd.min.js"></script><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/lib/eventemitter2.js"></script><scriptsrc="https://cdn.jsdelivr.net/npm/roslib@1/build/roslib.js"></script><scriptsrc="/home/dario/catkin_ws/src/ros3d.js"></script><scriptsrc="js/ColladaLoader.js"></script><scripttype="text/javascript">functioninit(){varros=newROSLIB.Ros({url : 'ws://localhost:9090'});ros.on('connection',function(){console.log('Connected to websocket server.');});ros.on('error',function(error){console.log('Error connecting to websocket server: ',error);});ros.on('close',function(){console.log('Connection to websocket server closed.');});// Create the main viewer.varviewer=newROS3D.Viewer({divID : 'map',width : 800,height : 600,antialias : true});// Setup the map client.vargridClient=newROS3D.OccupancyGridClient({ros : ros,rootObject : viewer.scene});// Create the main viewer.varviewer=newROS3D.Viewer({divID : 'urdf',width : 800,height : 600,antialias : true});// Add a grid.viewer.addObject(newROS3D.Grid());// Setup a client to listen to TFs.vartfClient=newROSLIB.TFClient({ros : ros,angularThres : 0.01,transThres : 0.01,rate : 10.0});// Setup the URDF client.varurdfClient=newROS3D.UrdfClient({ros : ros,tfClient : tfClient,path : 'localhost:8000/dsr_description/meshes/m1013/MF1013_0_0.dae',rootObject : viewer.scene,loader : ROS3D.COLLADA_LOADER_2});}</script>
{% endblock content %}
Do you have any idea of where the error could be?
Thank you very much.
I'm using:
ROS Noetic
Ubuntu 20.04
The text was updated successfully, but these errors were encountered:
Hi everybody,
I'd like to show my robot simulation on a web application (using Flask) and I followed the instructions of the next tutorial: https://wiki.ros.org/ros3djs/Tutorials/VisualizingAURDF.
The 2D map visualization works fine (https://wiki.ros.org/ros3djs/Tutorials/VisualizingAMap) while the URDF visualization gives me an error when i run:
The console error is:
The browser console gives me the error:
The complete browser console message is:
And my html file is:
Do you have any idea of where the error could be?
Thank you very much.
I'm using:
The text was updated successfully, but these errors were encountered: