importrobot but can not show visual geometries.
16 views (last 30 days)
Show older comments
Chuguang Pan on 10 Mar 2022
Answered: Hannes Daepp on 10 Mar 2022
I try to import a robot model by using importrobot function with the input is a Simscape Multibody model. However, when I show the imported rigidBodyTree model, it only shows a skeleton model without any visual geometries. I suspect that visual meshs should be STL format, since that my geometries files are STEP format.
Hannes Daepp on 10 Mar 2022
You're correct -- in order for the visuals to appear in the import, they need to be STL or DAE format (DAE format requires R2021b or newer).
If, after converting to either of these formats you still face issues, make sure that importrobot is finding the directory correctly; you can set the directory explicitly via the MeshPath Name-Value pair:
Import rigid body tree model from URDF, SDF file, text, or Simscape Multibody model - MATLAB importrobot (mathworks.com)
We are aware of the need to support other files and are considering supporting those in the future.
More Answers (0)
Find more on Robot Models 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!