Robotics StackExchange | Archived questions

Keep Getting "Error Code: 11 Msg: Unable to find uri[model://bin]" When Running Gazebo

I am typing the Linux command, gazebo aisle.world to try and start a gazebo simulation world. Gazebo doesn't open, but instead outputs the following error:

Error Code: 11 Msg: Unable to find uri[model://bin]

Below is a snippet of my aisle.world file where I think the error is coming from

<include>
  <name>bin_1</name>
  <pose>-1.0 -1.5 0.5 0 0 3.1415</pose>
  <uri>model://bin</uri>
</include>
<model name="bin_1_tag">
  <static>true</static>
  <pose>-1.0 -1.6875 0.63 0 0 3.1415</pose>
  <link name="link">
    <visual name="visual">
      <geometry><box><size>0.2 0.01 0.2</size></box></geometry>
      <material>
        <script>
          <uri>model://bin/tags</uri>
          <!--<uri>model://bin/materials/textures</uri>-->
          <name>product_1</name>
        </script>
      </material>
    </visual>
  </link>
</model>

I think the issue is something with the 4th line: <uri>model://bin</uri>. The bin directory it is referring to is located in ~/ws/src/stockroom_bot/worlds. This directory holds a model.config file (shown below) as well as my model.sdf file.

<?xml version="1.0"?>
<model>
  <name>Bin</name>
  <sdf version="1.4">model.sdf</sdf>
</model>

I've also added the below code to my ./bashrc file. This way I can just type sb and it should source my .bash file and allow my code to reference my stockroom_bot package.

alias sb='source ~/ws/devel/setup.bash; \
export GAZEBO_MODEL_PATH=${HOME}/ws/src/stockroom_bot'

Any other guidance as to why my code can't seem to find my model.sdf file will be much appreciated.

Linux 5.3.0-62-generic #56 18.04.1-Ubuntu

Asked by BesterJester on 2021-01-18 07:13:41 UTC

Comments

hello, I am having the same problem. Have you found any answer?

Asked by TheClem on 2021-02-21 13:16:06 UTC

Hi! I'm having the same problem. https://answers.gazebosim.org/question/27075/error-code-12-msg-unable-to-find-uri/

Asked by sudiv on 2021-06-17 02:09:55 UTC

Answers