Error when import urdf file into simulink.

조회 수: 13 (최근 30일)
HANYU GAN
HANYU GAN 2020년 6월 21일
답변: Nathan Hardenberg 2021년 6월 4일
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일
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.

카테고리

Help CenterFile Exchange에서 Simscape Multibody에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by