Model is valid only if not saved as "model.sdf"!!

asked 2017-05-15 17:34:12 -0500

I am using "gz sdf -p <file>" (or with "-k") to check the validity of a model. I was always getting errors, even when I removed pretty much everything from my model. I ended up with just the following, but still without a successful validation:

<?xml version='1.0' ?>
<sdf version='1.6'>
  <model name='forklift'>
    <!-- Base/Support link -->
    <link name='base_link'>
      <pose>0 0 0 0 0 0</pose>
        <pose>0.237624 0 0.122112 0 0 0</pose>
      <collision name='base_link_collision'>
        <pose>0.24 0 0.123333 0 0 0</pose>
            <size>0.06 0.2 0.06</size>
      <visual name='base_link_visual'>
        <pose>0.24 0 0.123333 0 0 0</pose>
            <size>0.06 0.2 0.06</size>

The strange thing is, if I save this as anything but "model.sdf", it says it is valid. If I save it as "model.sdf", it says it has errors (although they do not include any relevante information, as stated in ).

Any ideia why is this?

edit retag flag offensive close merge delete


humm... I saved your example as model.sdf and it checked fine...

chapulina gravatar imagechapulina ( 2017-05-15 17:57:17 -0500 )edit

It seems to me that when I write "model.sdf" it uses another (maybe somewhere in the path) model. If I input the full path into the command line, it parses OK.

Hugo Costelha gravatar imageHugo Costelha ( 2017-05-15 18:22:24 -0500 )edit