Gazebo | Ignition | Community
Ask Your Question
0

Unable to find uri[model://model:://sun]

asked 2018-07-08 11:50:50 -0500

VansFannel gravatar image

I've just started learning ROS and GAZEBO. I'm using Ubuntu 16.04.4, ROS Lunar and Gazebo 7.

The following world:

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

        <include>
            <uri>model://model:://ground_plane</uri>
        </include>
    </world>
</sdf>

Throws these errors:

Error [parser.cc:581] Unable to find uri[model://model:://sun]
Error [parser.cc:581] Unable to find uri[model://model:://ground_plane]

Both models are in ~/.gazebo/models/.

I have also tried this world file:

<sdf version="1.4">
    <world name="myworld">
        <include>
            <uri>model:://sun</uri>
        </include>

        <include>
            <uri>model:://ground_plane</uri>
        </include>
    </world>
</sdf>

Getting the same error.

Do I need to do anything else? Like adding the GAZEBO_MODEL_PATH env var into the world file.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-07-09 01:24:10 -0500

Raskkii gravatar image

The correct syntax is: <uri>model://sun</uri>

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-07-08 11:50:50 -0500

Seen: 11,154 times

Last updated: Jul 09 '18