Clear Filters
Clear Filters

importrobot with Simscape model has no visual geometries

17 views (last 30 days)
William Li
William Li on 19 Jul 2024 at 5:56
Edited: William Li on 19 Jul 2024 at 5:57
Hi all, I have a simscape model that was exported from Creo using the multi-link plugin. It is configured to work with STL as its geometry files in Simscape and correctly displays them.
When I use the importrobot command from the robotics toolbox, it successfully completes this, however it lacks any geometry meshes, using the show command, it only shows a skeleton model and a bunch of coordinate systems.
I have seen some solutions floating around using the name valued pair (Taken from here)
robot = importrobot(URDFtext, "MeshPath", {"../arm_meshes", "../body_meshes"});
However this does not work, and the documentation points out that this is for URDF, Xacro or SDf imports, while Simscape Multibody Model imports lack this option. The code then throws an error.
'MeshPath' is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.
How can I import a simscape model into the robotics toolbox alongside its STL's as collision or visual geometry? The ultimate goal is to then export as URDF with STL's (Currently the URDF also lacks STL's).
Thanks

Answers (0)

Categories

Find more on Model Import in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!