# The model doesn't load properly.

Hi all,

This is my first question on this forum, hope it is all good :) I'm working on a drone simulation. I have created the model, divided into smaller parts and now I want to use it in gazebo. Problem appears when I want to run it.

When I'm loading the model within gazebo it crashes every single time, unless gazebo was called from the model directory. When gazebo was called from my model dir "example_model" everything works as expected. Since I want to use the model further on, I cannot keep this problem as it is. So my guess is that gazebo cannot find the proper path to a mesh or material and that's causing the error. Could anybody take a peek at the sdf file and suggest anything?? I am using gazebo 9.13.0.

<sdf version="1.6"> <model name="Fronts"> <static>true</static> <link name="robot_link"> <collision name="body_collision"> <geometry> <box> <size>1 1 1</size> </box> </geometry> </collision> <visual name="visual"> <pose>0 0 0.5 1.57079 0 0</pose> <geometry> <mesh> <uri>model://example_model/meshes/tank_fronts.DAE</uri> </mesh> </geometry> <material> <script> <uri>model://example_model/materials/scripts/repeated.material</uri> <name>FrontMaterial</name> </script> </material> </visual> </link>

<model name="Floors">
<static>true</static>
<collision name="body_collision">
<geometry>
<box>
<size>1 1 1</size>
</box>
</geometry>
</collision>
<visual name="visual">
<pose>0 0 0.5 1.57079 0 0</pose>
<geometry>
<mesh>
<uri>model://example_model/meshes/floors.DAE</uri>
</mesh>
</geometry>
<material>
<script>
<uri>model://example_model/materials/scripts/repeated.material</uri>
<name>FloorsMaterial </name>
</script>
</material>
</visual>