ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
ros3djs
assumes that the mesh resources begin with a package://
URL, note a file URL like in your example. What the library will do is replace package://
with whatever argument you give to path
(e.g., https://github.com/RobotWebTools/ros3djs/blob/develop/examples/urdf.html#L47). If you do not provide a path, it will use localhost by default. For example, if a resource is package://robottt/robots/base_link.dae
, roslibjs will replace this with http://localhost/robottt/robots/base_link.dae
by default. Again, you can change the preface with an optional argument.
Browsers cannot natively access the file system for security reasons, so you will need to host your HTML page and the Collada file on a web server (Apache is easy enough to set up).
2 | No.2 Revision |
ros3djs
assumes that the mesh resources begin with a package://
URL, note not a file URL like in your example. What the library will do is replace package://
with whatever argument you give to path
(e.g., https://github.com/RobotWebTools/ros3djs/blob/develop/examples/urdf.html#L47). If you do not provide a path, it will use localhost by default. For example, if a resource is package://robottt/robots/base_link.dae
, roslibjs will replace this with http://localhost/robottt/robots/base_link.dae
by default. Again, you can change the preface with an optional argument.
Browsers cannot natively access the file system for security reasons, so you will need to host your HTML page and the Collada file on a web server (Apache is easy enough to set up).