Error when import urdf file into simulink.
9 views (last 30 days)
I am trying to import an urdf file into simulink by the function 'smimport'.
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！
Nathan Hardenberg on 4 Jun 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.