Gazebo | Ignition | Community
Ask Your Question

How to delete model path

asked 2017-09-19 08:20:19 -0600

l4ncelot gravatar image


I have ROS project with some models. I export the path through package.xml file using this export:

<gazebo_ros plugin_path="${prefix}/lib" gazebo_media_path="${prefix}"

I no longer have models in this path so I deleted this and rebuild the ROS project. However Gazebo is still looking for this path for some reason. I also tried to just source the default setup script /usr/share/gazebo-7/ But it doesn't work. When doing e.g. echo $GAZEBO_MODEL_PATH it gives me only this path /usr/share/gazebo-7/models which should be correct. But in gazebo I can still see in insert tab folders which shouldn't be there anymore.

Am I missing something?

Thank you for advice.

edit retag flag offensive close merge delete


How are you running gazebo?

nkoenig gravatar imagenkoenig ( 2017-09-19 08:56:23 -0600 )edit

Using roslaunch gazebo_ros empty_world.launch.

l4ncelot gravatar imagel4ncelot ( 2017-09-20 00:38:03 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-20 16:52:50 -0600

check your .gazebo/gui.ini and your /usr/share/gazebo-8/ Exact paths may differ but those are also capable of changing your model path.

edit flag offensive delete link more


So I edited .gazebo/gui.ini file so that it contains only the model path I want. File /usr/share/gazebo-7/ is fine. But I can still see old model directories in Gazebo.

l4ncelot gravatar imagel4ncelot ( 2017-09-21 00:39:49 -0600 )edit

Is there e.g. some way to reset everything to default values without reinstalling the whole simulator?

l4ncelot gravatar imagel4ncelot ( 2017-09-21 03:32:35 -0600 )edit

there is for sure, I just don't remember what it is. You should check the code to see what paths it checks. There might be other files or environment variables

Peter Mitrano gravatar imagePeter Mitrano ( 2017-09-23 11:53:37 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-19 08:20:19 -0600

Seen: 1,461 times

Last updated: Sep 20 '17