gazebosim / gz-usd

Command line tools to convert SDFormat to USD and viceversa
Apache License 2.0
24 stars 5 forks source link

While running sdf2usd URDF parser throws an error if the input file is named "model.sdf" #8

Open joshuacv opened 2 years ago

joshuacv commented 2 years ago

While trying to convert an sdf file, I came across this problem that if the model is named model.sdf, the gz-usdf throws this an error. The error seems to be coming from the urdf parser (I dont see a reason why the urdf parser is called for parsing the sdf file)

Environment

Description

Steps to reproduce

Output

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

Other details