Error when import urdf file into simulink.

22 vues (au cours des 30 derniers jours)
HANYU GAN
HANYU GAN le 21 Juin 2020
I am trying to import an urdf file into simulink by the function 'smimport'.
>> smimport('open_manipulator.urdf')
However, there is an error, which shows:
Error using smimport_implementation
The robot element must have a "name" attribute.
I feel confused about this error and really want to solve it.
Thanks in advance!

Réponses (1)

Nathan Hardenberg
Nathan Hardenberg le 4 Juin 2021
This error happens if no robot name is defined in the urdf file!
The first line of the urdf file should look something like this:
<robot name="Name of my Robot">
I'm guessing here, but you probably just have <robot> there without a defined name. Adding a name should resolve the problem.

Catégories

En savoir plus sur Simscape Multibody dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by