Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not find the 'robot' element in the xml file #9

Open
Zhehui-Huang opened this issue Jun 24, 2022 · 3 comments
Open

Error: Could not find the 'robot' element in the xml file #9

Zhehui-Huang opened this issue Jun 24, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Zhehui-Huang
Copy link

When I transfer sdf model to usd model. I met the issue below.
Error: Could not find the 'robot' element in the xml file at line 109 in /build/urdfdom-VnCcob/urdfdom-1.0.4+ds/urdf_parser/src/model.cpp Errors encountered: Error Code 1: Msg: Unable to read file:model.sdf

Here is the sdf file:
https://github.com/bitcraze/crazyflie-simulation/blob/main/gazebo-ignition/crazyflie/model.sdf

@Zhehui-Huang Zhehui-Huang added the enhancement New feature or request label Jun 24, 2022
@scpeters
Copy link
Member

scpeters commented Jul 7, 2022

What software are you using to load this model?

I noticed some inconsistencies by running ign sdf --check on this file and it complains about the unrecognized frame attribute used with <pose> elements. This attribute has been renamed to relative_to in SDFormat version 1.7+, and this file is using 1.8. If you are not actually using any features from SDFormat 1.8 you can try setting the version to 1.6 or just deleting the empty frame attributes.

@chapulina chapulina transferred this issue from gazebosim/sdformat Aug 8, 2022
@joshuacv
Copy link
Contributor

Try changing the name of your file from model.sdf to something else. I dont know why but this made a difference for me. An issue for this has been raised.

refer to #8

@ashBabu
Copy link

ashBabu commented Jun 14, 2024

I had the same issue. ROS2 humble, Gazebo garden. I cloned sdformat_urdf in my ros2_ws, built and it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants