SDF parse information [closed]

asked 2015-10-13 12:03:11 -0600

alf gravatar image

updated 2015-10-14 07:11:59 -0600

Hi there,

I was wondering if it is possible to output some debug information when loading models via SDF files into Gazebo?

My problem is typically that I load a model that is incompletely parsed, and I have to locate the error by trial and error.

EDIT: Gazebo version 5.1.0

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by alf
close date 2015-10-16 06:41:50.526765

Comments

Have you tried running Gazebo in verbose mode? `gazebo --verbose` Are there no error outputs or are the errors not descriptive enough?

chapulina gravatar imagechapulina ( 2015-10-13 16:57:51 -0600 )edit

Thanks for the suggestion, I had not tried that. It did however not give me any more info. As an example, I tried to remove the closing tag for a </friction> property in my model. Visually this seems to abort the parsing of the rest of the model (i.e. several items are missing from the model), but there is no output from Gazebo in my terminal when running with the --verbose flag.

alf gravatar imagealf ( 2015-10-14 07:10:54 -0600 )edit

Hi, I am running gzserver and gzclient separately and when I have an SDF issue, it's not displaying in gzserver but in gzclient, even without --verbose ! Eg : Warning [parser.cc:713] XML Element[collision], child of element[visual] not defined in SDF. Ignoring[collision]. You may have an incorrect SDF file, or an sdformat version that doesn't support this element.

Titozzz gravatar imageTitozzz ( 2015-10-15 05:03:07 -0600 )edit

Hi, I am running gzserver and gzclient separately and when I have an SDF issue, it's not displaying in gzserver but in gzclient, even without --verbose !

Titozzz gravatar imageTitozzz ( 2015-10-15 05:03:08 -0600 )edit

I have noticed a few error messages from gzclient lately, but I still find it strange that it loads a model which obviously fails to parse correctly without notifying me. I guess I could file a bug-report somewhere. In any case I'm closing this question.

alf gravatar imagealf ( 2015-10-16 06:41:17 -0600 )edit