Gazebo | Ignition | Community
Ask Your Question

Error Code 12 Msg: Unable to find uri

asked 2021-06-15 12:17:51 -0600

sudiv gravatar image

Hi! I'm new to gazebo, I'm trying to build a world for my four wheeled bot. I followed TheConstruct tutorial, where i downloaded models from 3dwarehouse and added to world. When I tried to launch my world file I keep getting this error

Error Code 12 Msg: Unable to find uri[model://road]

and I'm unable to see my model in gazebo. I added file as well to my bash and tried exporting GAZEBO_MODEL_PATH. my file:

<?xml version="1.0" ?>
<sdf version="1.5">
<world name="default">
    <!-- A global light source -->



my road.sdf file:

 <?xml version="1.0" ?>
 <sdf version="1.5">
 <model name="road">
  <link name="road_link">
      <collision name="road_collision">  
            <size>10.5156 10.5156 8.7122 </size>

  <visual name="road_mesh">

my launch file:

    <include file="$(find gazebo_ros)/launch/empty_world.launch">
        <arg name="world_name" value="$(find m4wr_gazebo)/world/"/>

my config file:

<?xml version="1.0"?>
 <sdf version="1.5">road.sdf</sdf>

I do not understand what is the problem. Can you help me? Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-06-18 08:27:16 -0600

sudiv gravatar image

updated 2021-06-18 08:27:53 -0600

I haven't set the model paths. The problem is solved once I edited .bashrc file and added:

export GAZEBO_PLUGIN_PATH=~/<path>/my_package_example/lib:${GAZEBO_PLUGIN_PATH}

export GAZEBO_MODEL_PATH=~/<path>/my_package_example/models:${GAZEBO_MODEL_PATH}

export GAZEBO_RESOURCE_PATH=~/<path>/my_package_example/models:${GAZEBO_RESOURCE_PATH}

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2021-06-15 12:14:38 -0600

Seen: 6,147 times

Last updated: Jun 18 '21