gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.17k stars 477 forks source link

confusing error message when trying to spawn invalid SDF file #1541

Open osrf-migration opened 9 years ago

osrf-migration commented 9 years ago

Original report (archived issue) by Morgan Quigley (Bitbucket: Morgan Quigley, GitHub: codebot).


If the SDF that is attempting to be spawned does not include the "name" attribute for a tag, it seems to try to parse it as URDF instead (?) giving the following error message:

Could not find the 'robot' element in the xml file

Location: /build/buildd/urdfdom-0.2.10+dfsg/urdf_parser/src/model.cpp::81

this is somewhat confusing. it's not really a bug, but it would be nice if there was a nicer error message, like "it looks like you forgot the name attribute in your visual tag. have a nice day." or something similar.

osrf-migration commented 9 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


This was using the ros indigo versions of gazebo 2.2 and sdformat 1.4 right? I think we have changed the behavior a bit since then, but there's still a lot of room for improvement (see #306 for example).

osrf-migration commented 9 years ago

Original comment by Morgan Quigley (Bitbucket: Morgan Quigley, GitHub: codebot).


yes, gazebo 2.2 on sdformat 1.4 (ROS Indigo default install).

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).