How to add a STL file to the backend ? #348
Unanswered
jordyBonnet
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I just had to put the STL model into a folder inside the main working folder: . . . |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm able to use a robot that is not embedded by using its URDF file (and meshes) and making a class:
Then when I want to view it in Swift, everything works fine with:
and we can add simple elements with spatialgeometry:
Ok 👍
But if I want to import some custom made 3D objects (which are not robots) I'm struggling a bit.
"Swift displays in a web browser table using three.js. At the moment it only works with models defined using URDF and can use STL or Collada meshes."
That means we also need to import the STL with a URDF file.
So I built one, with 2 objects inside:
Is this file ok ?
I also created a class asociated to it:
The import works well, print gives me:
But when I want to use it in Swift with:
The web app says it encountered a problem (I have no other information except that it comes from backend.add(others) line)
Do you see something i'm doing wrong here ?
Does obstacle = SG.Cuboid([1, 1, 1]) create a urdf behind the scene ?
Suggestion:
PS: This work is awesome, Thanks a lot ! 👏
Beta Was this translation helpful? Give feedback.
All reactions