Rendering issue with custom collada model

asked 2020-07-13 09:41:59 -0500

R6 gravatar image

Hello,

For the purpose of my simulation, I have created a custom 3D model.

When I start gazebo with my world in my "/usr/share/gazebo-11/worlds" folder:

gazebo test.world

<?xml version="1.0"?>
<sdf version="1.4">
  <world name="default">
    <include>
      <uri>model://ground_plane</uri>
    </include>
    <include>
      <uri>model://sun</uri>
    </include>
    <include>
      <uri>model://my_model</uri>

    </include>
  </world>
</sdf>

The model is loaded but appears entirely black.

image description

When I load the .dae file directly in the world file:

<model name="my_model">
      <static>true</static>
      <link name="body">
        <visual name="visual">
          <geometry>
            <mesh><uri>file://my_model.dae</uri></mesh>
          </geometry>
        </visual>
      </link>
 </model>

The model is invisible, it appears on the left panel under the "models" section but that's it.

However, when I use the same code as above, in a random folder such as Documents, the model is loaded and looks exactly as it should:

image description

My model's folder is located in /usr/share/gazebo-11/models:

my_model/
├── meshes
│   └── my_model.dae
├── model.config
└── model.sdf

Whenever I tried to directly import I made sure the dae file was present in the folder I was calling gazebo from

I am running out of ideas to troubleshoot this issue.. I suspect there is an issue with the paths within my files but I don't know... Does someone have any suggestions ?

edit retag flag offensive close merge delete