gazebosim / gazebo-classic

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

The same mesh file is loaded multiple times #2478

Open osrf-migration opened 6 years ago

osrf-migration commented 6 years ago

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


While working on pull request #2962, we noticed that when loading a model that has an OBJ mesh as a visual, and no collisions, i.e:

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="coffee_maker">
    <static>true</static>
    <link name="link">
      <visual name="visual">
        <geometry>
          <mesh>
            <uri>https://api.ignitionfuel.org/1.0/chapulina/models/Coffee Maker/tip/files/meshes/coffee_maker.obj</uri>
            <scale>0.01 0.01 0.01</scale>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

gzclient makes 4 requests for the mesh's path on disk:

And if you then add a camera to the world, gzserver makes 2 more requests.


These requests are asking for the mesh's path on disk, I didn't do any further investigation to find out how the path is being used

osrf-migration commented 6 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).