How to add .stl file to a robot?
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi! I would like to add an .stl file to a robot link created with the robotic toolbox. I checked the Visuals field of the body and the model has been loaded properly, but when I use show(robot) nothing happens. How can I fix it?
%body1
body1 = rigidBody('body1');
addVisual(body1, "Mesh", 'IRB 910SC_IRC5C_Arm1_450_rev0.STL');
3 Commenti
Risposte (1)
Yiping Liu
il 13 Mag 2021
Spostato: Remo Pillat
il 29 Mar 2024 alle 14:27
Valeria,
It might be a scaling issue, i.e. the dimension of the meshes is too small to be seen when rendered.
If you importrobot from URDF, and if the URDF file specifies the scaling for the mesh, the scaling of the mesh will be handled automatically. But if you do it from addVisual, you have to do the scaling on the mesh file yourself, which is not that straighforward.
But that's just a guess, please share your mesh file and the robot description, so we can take a closer look.
0 Commenti
Vedere anche
Categorie
Scopri di più su Robotics System Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!