Cannot load Mesh Marker in ros3djs
Continuation from here
Attempting to load a mesh marker in the browser results in the following errors:
XMLHttpRequest cannot load file:///pr2_description/meshes/base_v0/base.dae. Cross origin requests are only supported for HTTP. index.html:1
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///pr2_description/meshes/base_v0/base.dae'. ColladaLoader2.min.js:1
Edit:
The above error message occurs when trying to access file:///home/dlu/.../index.html
. Accessing http://localhost/.../index.html
results in the following error.
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/pr2_description/meshes/base_v0/base.dae
As noted on the linked page, the mesh_resource given is "package://pr2_description/meshes/base_v0/base.dae"
.
Can you describe how you access the webpage? You might need to open the page with webserver. Accessing html file directly from filesystem may cause problem.
Updated to reflect webpage access.