Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the javascript import #671

Open
binarywolff opened this issue Jun 11, 2024 · 3 comments
Open

Change the javascript import #671

binarywolff opened this issue Jun 11, 2024 · 3 comments

Comments

@binarywolff
Copy link

binarywolff commented Jun 11, 2024

Hello all,
I'm following the tutorial at: https://wiki.ros.org/ros3djs/Tutorials/VisualizingAURDF
I realized that the import links in the javascript file are not working anymore and i solved it using:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/eventemitter2.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/roslib@1/build/roslib.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/ros3d.min.js"></script>
<script src="https://robotwebtools.github.io/ros3djs/"></script>

I spent quite a long time finding them, there's no reason why other people should do it too, we should update them.

Thank you :)

@MatthijsBurgh
Copy link
Contributor

I am not able to create a wiki account, so I can't update them.

The code snippet you provided, is also outdated. Please check the examples for the current imports.

@binarywolff
Copy link
Author

I don't know why but the ones in the examples don't work for me.

The browser console give the error: Uncaught ReferenceError: ROS3D is not defined

@MatthijsBurgh
Copy link
Contributor

Those only work when you have the examples in the repo...

So when you need more help, you need to provide more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants