Error when import urdf file into simulink.

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!

回答 (1 件)

Nathan Hardenberg
Nathan Hardenberg 2021 年 6 月 4 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeModel Import についてさらに検索

製品

リリース

R2019b

タグ

質問済み:

2020 年 6 月 21 日

回答済み:

2021 年 6 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by