[GUI] [Err] [SystemPaths.cc:425] Unable to find file with URI [model://model_pkg/models/base.dae]
Im trying to load an sdf of a model in a project structure like this:
src/
model_pkg/
urdf/
diff_bot.sdf
diff_bot.xml
models/
base.dae
with this this sdf:
<sdf version='1.10'>
<model name='diff_bot'>
<link name='base_link'>
<inertial>
<pose>0 0 0 0 0 0</pose>
<mass>0.010288200184753521</mass>
<inertia>
<ixx>9.2e-05</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>4.8999999999999998e-05</iyy>
<iyz>0</iyz>
<izz>0.000111</izz>
</inertia>
</inertial>
<visual name='base_link_visual'>
<pose>0 0 0 0 0 0</pose>
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>model://model_pkg/models/base.dae</uri>
</mesh>
</geometry>
</visual>
</link>
</model>
</sdf>
with this bash script:
#!/bin/bash
export GAZEBO_MODEL_PATH=<insert path to project here>/src/model_pkg/models:
export GAZEBO_RESOURCE_PATH=<insert path to project here>/src/model_pkg/models:
gz sim <insert path to project here>/src/model_pkg/urdf/diff_bot.sdf
However, when I try to load the model with the .bash script, I get the error in the title, and other errors all relating to not being able to find the model, base.dae
. Every post ive found thus far has said editing gazebo paths to lead to the model's location would fix the error(s), but editing the bash script to export GAZEBO_MODEL_PATH and GAZEBO_RESOURCE_PATH hasn't fixed that for me.
Is there something I'm missing?